Re: [Question] API Regions Report

2021-12-17 Thread Daniel Klco
ckage that it's between the > exported packages, but that doesn't mean anything anymore if its not in the > global api region) > > Will think about how it should look like if I find the time > > On Mon, Aug 23, 2021 at 2:02 PM Daniel Klco wrote: > > > There's a reason for tha

Re: [Question] API Regions Report

2021-08-23 Thread Daniel Klco
ns.properties=.../regions.properties >> >> These files are the definition of the API Regions behaviour, so you can >> use them to generate a report, or look at them to see how the service is >> configured. >> >> Kind regards, >> >> David >> &g

[Question] API Regions Report

2021-08-22 Thread Daniel Klco
All, Is there a way to see a report on the API regions for an instance as a consumer / extender of Sling? It seems like all of the information you'd need is in the API Regions Runtime RegionConfiguration[1] class, but that's not in an exposed package. The case I'm thinking of is if you are a

Re: JSP - location of generated Java file

2021-05-24 Thread Daniel Klco
Juerg, The JSP .java files are now saved in the Apache Sling Commons FileSystem ClassLoader bundle's data directory. You can find them with the Apache Sling FileSystem Web Console: http://localhost:8080/system/console/fsclassloader or at OSGi Console > Sling > File System Class Loader Regards,

ReSolve 2021 - May 18th, 2021

2021-03-09 Thread Daniel Klco
We’re excited to announce ReSolve 2021 - a showcase of projects and solutions built with Apache Sling. .The purpose of ReSolve is to bring together developers, engineers, architects, innovators, designers, and adopters of Apache Sling based products and solutions. ReSolve Conference is taking

Re: Apache Sling Commons Messaging Mail

2020-12-28 Thread Daniel Klco
excuse me ... but ... > > https://github.com/klcodanr/danklco.com-site-cna/blob/cloud-native-sling/feature/src/main/features/site.json > link is broken :-( > > Il 12/26/20 5:19 PM, Daniel Klco ha scritto: > > Hey Nicola, > > > > The Apache Sling Commons Messaging Mail bundle uses

Re: Apache Sling Commons Messaging Mail

2020-12-26 Thread Daniel Klco
Hey Nicola, The Apache Sling Commons Messaging Mail bundle uses Commons Crypto to encrypt the password for the SMTP server. You'll need to provide the configuration for Commons Crypto including: - org.apache.sling.commons.crypto.jasypt.internal.JasyptRandomIvGeneratorRegistrar -

Re: Session state management

2020-11-16 Thread Daniel Klco
ct you mention - is sticky load > balancing a requirement for that to work? We are facing that exact issue > with our project's setup. > > Thanks, > Ben > > On Fri, Nov 13, 2020 at 8:24 AM Daniel Klco wrote: > > > Answers inline below. > > > > On Thu, Nov 1

Re: Session state management

2020-11-13 Thread Daniel Klco
Answers inline below. On Thu, Nov 12, 2020 at 11:22 AM Nicola Cisternino wrote: > > Hi all > We are newbies and come from world of web containers (which manage the > http session state) so, my question is: > in Sling what is the best (and standard) way to: > 1) login via WS (Servlet) called by a

Re: Localized Content

2020-09-04 Thread Daniel Klco
Thanks for clarifying the use case. Sling CMS uses the Sling i18n library as Robert provided. The Sling GET servlet which is serving the JSON response is simply reading the resource value, it will not invoke i18n. To get your message localized, you would need to either write a script and use the

Re: Resource to json serializing

2020-05-11 Thread Daniel Klco
Sounds like a use case for Sling Models Exporter: https://sling.apache.org/documentation/bundles/models.html#exporter-framework-since-130-1 https://blogs.perficient.com/2018/07/26/no-servlets-required-exporting-data-with-sling-models/ The only caveat is that it's designed for named parameters,

Re: Nodetype management

2020-05-01 Thread Daniel Klco
system", it makes no difference if a set > the filter switch to on or off. > > Any thoughts? > > > On 28.04.20 14:20, Daniel Klco wrote: > > Juerg, > > > > Try changing the filter (the second icon to the right on below the tree) > to > > "unfiltere

Re: Nodetype management

2020-04-28 Thread Daniel Klco
ed in as admin). > Any filtering/setting in the browser to make it visible? > > -Juerg > > On 26.04.20 18:31, Daniel Klco wrote: > > Juerg, > > > > In Sling 11, there's a status console in the OSGi Console which shows the > > JCR namespaces: > > http://localh

Re: Nodetype management

2020-04-26 Thread Daniel Klco
Juerg, In Sling 11, there's a status console in the OSGi Console which shows the JCR namespaces: http://localhost:8080/system/console/status-JCR%20Namespaces And you can see the node types via the Composum Node Browser: http://localhost:8080/bin/browser.html/_jcr_system/jcr%3AnodeTypes On

Re: Sling Slack Channel

2020-04-21 Thread Daniel Klco
Chris, I agree, I'd be 100% on board with a Slack channel for Sling. A couple thoughts: - There is already a slack org for the ASF: the-asf.slack.com we could use rather than setting up another slack org - We probably should call a formal vote rather than asking for replies in this thread

Re: [VOTE] Release Apache Sling CMS version 0.16.2

2020-04-14 Thread Daniel Klco
+1 On Tue, Apr 14, 2020, 2:43 PM Daniel Klco wrote: > Hi, > > We solved 3 issues in this release: > https://issues.apache.org/jira/projects/SLING/versions/12347829 > > Staging repository: > https://repository.apache.org/content/repositories/orgapachesling-2239/ > > Y

Repoinit Classpath

2020-04-06 Thread Daniel Klco
I'm looking into executing a Repoinit script from the classpath of a bundle upon installation using the references property, but can't work out the correct format. According to the docs: https://sling.apache.org/documentation/bundles/repository-initialization.html It looks like I should be able

Re: OIDC or SAML2 for Sling

2020-02-25 Thread Daniel Klco
Hey Chris, This looks like a really good start! A couple of thoughts: - It looks like a lot of exceptions are re-thrown as Runtime exceptions which IMO tends to obscure expected exception handling, it looks like this is WIP, but wanted to call it out - You may want to look at the

Re: org.apache.sling.api.resource.Resource from Image File

2020-01-22 Thread Daniel Klco
oject should probably > build a test jar itself. > > John Kramer > Java Software Engineer > E-Commerce Web Team > e: john.kra...@panerabread.com <mailto:john.kra...@panera.com> > m: 314-435-2370 > > On 1/22/20, 13:02, "Daniel Klco" wrote: > > Warnin

Re: org.apache.sling.api.resource.Resource from Image File

2020-01-22 Thread Daniel Klco
Assuming you are using Sling Mocks, you can load the file in as a resource into the Sling Context, see: https://github.com/apache/sling-org-apache-sling-app-cms/blob/master/transformer/src/test/java/org/apache/sling/cms/transformer/helpers/SlingCMSContextHelper.java

Re: Content Security Policy Headers

2020-01-10 Thread Daniel Klco
Jason, Rather than putting the headers in Sling, I'd recommend supplying the CSP in your caching (httpd etc) layer. Something like this: Header set X-Frame-Options "ALLOW-FROM https://launch.adobe.com; Header set X-XSS-Protection "1; mode=block" Header set X-Content-Type-Options

Re: Hosting Sling

2019-11-07 Thread Daniel Klco
I have a bit, honestly I'd just run it in the cloud. I'm using a reserved t3a.micro instance for my personal website. I would say you need at least 1 vCPU and 1GB of memory to keep it up and stable any less than that and you have to do swapping and that's bad. With a 1-year reservation it's

Re: A maven archetype for apache sling cms

2019-10-04 Thread Daniel Klco
different or should be incorporated into the consolidated archetype. On Thu, Oct 3, 2019 at 4:50 PM Daniel Klco wrote: > Thanks Chris for bringing this back up. I'd meant to implement such an > archetype earlier and unfortunately I got distracted. More or less, the > sling-bundle-

Re: A maven archetype for apache sling cms

2019-10-03 Thread Daniel Klco
Thanks Chris for bringing this back up. I'd meant to implement such an archetype earlier and unfortunately I got distracted. More or less, the sling-bundle-archetype or the sling-initial-content-archetype would be good starting points, but neither are quite tailored to use with Sling CMS. I'll

Re: Different Login Landing Page

2019-04-22 Thread Daniel Klco
For the Sling CMS reference, I was able to set the jcr:root with Sling-Initial-Content in an OSGi bundle: https://github.com/apache/sling-org-apache-sling-app-cms/blob/master/ui/pom.xml https://github.com/apache/sling-org-apache-sling-app-cms/blob/master/ui/src/main/resources/jcr_root/ROOT.json

Re: users@sling.apache.org

2018-09-22 Thread Daniel Klco
For the reference CMS app I put together a vagrant script with Apache httpd proxying and caching content from Apache Sling using mod_proxy and mod_cache. You can find it here: https://github.com/apache/sling-org-apache-sling-app-cms/tree/master/vagrant On Sat, Sep 22, 2018, 3:51 PM Eric Norman

Re: [DISCUSSION] markdown support for Sling CMS

2018-08-30 Thread Daniel Klco
The Flexmark OSGi Bundle has now been released: https://search.maven.org/search?q=a:flexmark-osgi On Sat, Aug 25, 2018 at 8:26 AM Daniel Klco wrote: > I just provided a PR against Flexmark to add OSGi support. Assuming that > gets merged and released, adding markdown support to

Re: [DISCUSSION] markdown support for Sling CMS

2018-08-25 Thread Daniel Klco
-java/pull/261 On Mon, Aug 13, 2018 at 11:07 AM Robert Munteanu wrote: > Hi Dan, > > On Thu, 2018-08-09 at 14:06 -0400, Daniel Klco wrote: > > Unfortunately, I'm not going to be at adapt.to :-( wrong side of the > > pond. > > > > So for commonmark, I'm assuming

Re: [DISCUSSION] markdown support for Sling CMS

2018-08-09 Thread Daniel Klco
https://issues.apache.org/jira/browse/SLING-7819 > > Do you want to create a PR for integrating this? How can I help? > > Thanks, > Dan > > On Wed, Jun 20, 2018 at 10:16 PM Daniel Klco wrote: > >> >> >> On Sun, Jun 17, 2018, 9:26 PM Eugen Stan wrote: >&g

Re: [DISCUSSION] markdown support for Sling CMS

2018-08-09 Thread Daniel Klco
to create a PR for integrating this? How can I help? Thanks, Dan On Wed, Jun 20, 2018 at 10:16 PM Daniel Klco wrote: > > > On Sun, Jun 17, 2018, 9:26 PM Eugen Stan wrote: > >> Hello Daniel and all, >> >> I've been working to deliver a piece of functionality that lever

Re: [DISCUSSION] markdown support for Sling CMS

2018-06-20 Thread Daniel Klco
On Sun, Jun 17, 2018, 9:26 PM Eugen Stan wrote: > Hello Daniel and all, > > I've been working to deliver a piece of functionality that leverages > Markdown support and I think it can be a great addition for managing > content inside a Sling, more specifically Sling CMS. > > My work is by no

Re: SQL Resource Provider?

2018-05-02 Thread Daniel Klco
I've been down the path BTW Jason, fun may not be the best description ;-) Granted this was about 4 years ago now so who knows what has changed. The biggest problem I had, by far, was that the proprietary API I needed to use was based on the assumption that it was dealing with JCR backed

Re: Daily content sync between environments

2017-10-23 Thread Daniel Klco
On a similar vein, another fun one we did a while back was to vlt co into a git repo and then blanket add and commit any changes on the hour. That way we had a snapshot of exactly what was going on in the repository and the ability to snapshot back any portion of the tree at any time (at a

Re: Daily content sync between environments

2017-10-23 Thread Daniel Klco
I've used VLT for this as well. It's nice as you can target the path to update but it is clunky. From a speed perspective, you could also use an S3 bucket to transfer the content if you are using AWS so each script only cares about its local environment and you don't need to allow direct access

Re: Bundle based JCR File

2017-03-19 Thread Daniel Klco
Hey Andreas, Have you checked the log files? The Sling Content Importer will log any errors encountered in installing content when the bundle is installed. In general, that concept should be fine, but it would depend on the exact structure. There are a couple of Sling-based apps out there which

Re: json support

2017-02-23 Thread Daniel Klco
Yep, this is supported via the Sling Content Importer: https://sling.apache.org/documentation/bundles/content-loading-jcr-contentloader.html As a note, you can do this via bundles or it is also supported via the import operation in the Sling Post Servlet:

Re: Sling Model and Request Parameters

2016-10-10 Thread Daniel Klco
Agreed, it'd be nice to have, but request parameters cannot be included in the default injectors list for the reason which Stefan lists. Would it make sense to use the @Source annotation and add support for injectors which are not considered by default? On Fri, Oct 7, 2016 at 8:40 AM, Stefan

Re: Sling models adaptTo taglib

2016-08-19 Thread Daniel Klco
Roy, You can pretty safely upgrade the version of Sling Taglibs without upgrading the overall application version. If you include the newer version of the bundle into your build package in a folder like /apps/[app-name]/install, Sling will pick up the more recent version of the bundle and install