Re: Sling Declarative Dynamic Resources

2021-04-22 Thread Carsten Ziegeler

Thanks Ruben,

in my opinion /apps belongs to developers. In our case its immutable for 
good reasons. Drilling a hole into this and allowing non developers 
contribute to /apps, especially in a dynamic fashion circumventing the 
immutability sounds very risky and can result in security problems.


I understand that extra configuration options are added to partially 
address this, but then it comes down to how effective these are and what 
holes they might have.


Now, in general I'm not against a feature like dynamic resources - but 
making something immutable mutable especially for a different audience 
is too dangerous.


Regards
Carsten

Am 22.04.2021 um 18:27 schrieb Ruben Reusser:

Carsten,  see inline

On 4/22/2021 6:55 AM, Carsten Ziegeler wrote:


Am 21.04.2021 um 15:30 schrieb Ruben Reusser:
- for each website that is created we have to create a corresponding 
/apps folder for rendering purposes


I assume the ddr solution is temporary and eventually the information 
is added to /apps directly? In this case I would do that immediately.


we try to live in a composite nodestore world where /apps is not 
writable - so no, we can't write to apps when creating a website


- we also want to give editors a certain control over group names, 
labels and the component variations an editor can pick from when 
creating a page



That sounds as if that is part of content not stored in /apps?

the default node structure we want to create if a user adds a component 
to a page is currently under apps but we would like to keep it somewhere 
in /content in the future


our big motivation for DDR is to make authoring and maintaining a 
website less dependent on developers and allow for better customization 
options after the initial effort to build a site has been completed.



Carsten


Ruben


--
--
Carsten Ziegeler
Adobe Research Switzerland
cziege...@apache.org


[Jenkins] Sling » Modules » sling-org-apache-sling-launchpad-testing » master #438 is FIXED

2021-04-22 Thread Apache Jenkins Server
Please see 
https://ci-builds.apache.org/job/Sling/job/modules/job/sling-org-apache-sling-launchpad-testing/job/master/438/
 for details.

No further emails will be sent until the status of the build is changed.

[jira] [Commented] (SLING-10204) Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated repository

2021-04-22 Thread Eric Norman (Jira)


[ 
https://issues.apache.org/jira/browse/SLING-10204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17329466#comment-17329466
 ] 

Eric Norman commented on SLING-10204:
-

[~stefanegli] I can confirm that the changes in your proposed patch do fix the 
regressions I was seeing so that looks good to me.

> Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated 
> repository
> 
>
> Key: SLING-10204
> URL: https://issues.apache.org/jira/browse/SLING-10204
> Project: Sling
>  Issue Type: Task
>  Components: Discovery
>Reporter: Stefan Egli
>Assignee: Stefan Egli
>Priority: Minor
> Fix For: Discovery Oak 1.2.32
>
> Attachments: SLING-10204-2.git.patch
>
>  Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> The following exception has been witnessed during resource resolver factory 
> unregistration:
> {noformat}
> java.lang.IllegalArgumentException: Can't create child on a synthetic root
> at 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl.create(ResourceResolverImpl.java:979)
>  [org.apache.sling.resourceresolver:1.7.2]
> ...
> at 
> org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:571)
>  [org.apache.sling.api:2.22.0]
> at 
> org.apache.sling.discovery.commons.providers.util.ResourceHelper.getOrCreateResource(ResourceHelper.java:45)
>  [org.apache.sling.discovery.commons:1.0.20]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.doUpdateProperties(OakDiscoveryService.java:492)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.bindPropertyProviderInteral(OakDiscoveryService.java:406)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.updatedPropertyProvider(OakDiscoveryService.java:421)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at jdk.internal.reflect.GeneratedMethodAccessor65.invoke(Unknown 
> Source){noformat}
> Under normal circumstances osgi should not invoke any of the 
> updatedPropertyProvider/unbindPropertyProvider methods after the 
> resourceResolverFactory is deactivated - but it has been seen nevertheless.
> What can be done in OakDiscoveryService is to tolerate this and not issue a 
> log.warn instead of throwing an uncaught IllegalArgumentException.
> Edit: more cases with the same root cause:
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@3e685b17
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.cluster.OakClusterViewService.getLocalClusterView(OakClusterViewService.java:113)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.BaseDiscoveryService.getTopology(BaseDiscoveryService.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.oak.OakDiscoveryService.checkForTopologyChange(OakDiscoveryService.java:660)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.discoveryLiteCheck(OakViewChecker.java:217)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.access$000(OakViewChecker.java:62)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker$1.run(OakViewChecker.java:193)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.safelyRun(PeriodicBackgroundJob.java:86)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.run(PeriodicBackgroundJob.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at java.base/java.lang.Thread.run(Thread.java:834)
> {noformat}
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@215bf7ef
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.TopologyWebConsolePlugin.updateDiscoveryLiteHistory(TopologyWebConsolePlugin.java:778)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.TopologyWebConsolePlugin.handleTopologyEvent(TopologyWebConsolePlugin.java:728)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> 

[GitHub] [sling-org-apache-sling-servlets-resolver] sonarcloud[bot] removed a comment on pull request #7: [SLING-9230] - Servlet should not be allowed to register with invalid…

2021-04-22 Thread GitBox


sonarcloud[bot] removed a comment on pull request #7:
URL: 
https://github.com/apache/sling-org-apache-sling-servlets-resolver/pull/7#issuecomment-824045589


   SonarCloud Quality Gate failed.
   
   [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=BUG)
 [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=BUG)
 [0 
Bugs](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=BUG)
  
   [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=VULNERABILITY)
 [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=VULNERABILITY)
 [0 
Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=VULNERABILITY)
  
   [](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-servlets-resolver=7=false=SECURITY_HOTSPOT)
 [](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-servlets-resolver=7=false=SECURITY_HOTSPOT)
 [0 Security 
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-servlets-resolver=7=false=SECURITY_HOTSPOT)
  
   [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=CODE_SMELL)
 [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=CODE_SMELL)
 [0 Code 
Smells](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=CODE_SMELL)
   
   [](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-servlets-resolver=7=new_coverage=list)
 [70.0% 
Coverage](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-servlets-resolver=7=new_coverage=list)
  
   [](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-servlets-resolver=7=new_duplicated_lines_density=list)
 [0.0% 
Duplication](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-servlets-resolver=7=new_duplicated_lines_density=list)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [sling-org-apache-sling-servlets-resolver] sonarcloud[bot] commented on pull request #7: [SLING-9230] - Servlet should not be allowed to register with invalid…

2021-04-22 Thread GitBox


sonarcloud[bot] commented on pull request #7:
URL: 
https://github.com/apache/sling-org-apache-sling-servlets-resolver/pull/7#issuecomment-825121992


   SonarCloud Quality Gate failed.
   
   [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=BUG)
 [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=BUG)
 [0 
Bugs](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=BUG)
  
   [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=VULNERABILITY)
 [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=VULNERABILITY)
 [0 
Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=VULNERABILITY)
  
   [](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-servlets-resolver=7=false=SECURITY_HOTSPOT)
 [](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-servlets-resolver=7=false=SECURITY_HOTSPOT)
 [0 Security 
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-servlets-resolver=7=false=SECURITY_HOTSPOT)
  
   [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=CODE_SMELL)
 [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=CODE_SMELL)
 [0 Code 
Smells](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-servlets-resolver=7=false=CODE_SMELL)
   
   [](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-servlets-resolver=7=new_coverage=list)
 [70.0% 
Coverage](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-servlets-resolver=7=new_coverage=list)
  
   [](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-servlets-resolver=7=new_duplicated_lines_density=list)
 [0.0% 
Duplication](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-servlets-resolver=7=new_duplicated_lines_density=list)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[jira] [Commented] (SLING-10204) Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated repository

2021-04-22 Thread Stefan Egli (Jira)


[ 
https://issues.apache.org/jira/browse/SLING-10204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17329310#comment-17329310
 ] 

Stefan Egli commented on SLING-10204:
-

Attached an example patch that would fix it ( [^SLING-10204-2.git.patch] ) - 
but I first need to write a test case to reproduce it before committing this.

> Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated 
> repository
> 
>
> Key: SLING-10204
> URL: https://issues.apache.org/jira/browse/SLING-10204
> Project: Sling
>  Issue Type: Task
>  Components: Discovery
>Reporter: Stefan Egli
>Assignee: Stefan Egli
>Priority: Minor
> Fix For: Discovery Oak 1.2.32
>
> Attachments: SLING-10204-2.git.patch
>
>  Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> The following exception has been witnessed during resource resolver factory 
> unregistration:
> {noformat}
> java.lang.IllegalArgumentException: Can't create child on a synthetic root
> at 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl.create(ResourceResolverImpl.java:979)
>  [org.apache.sling.resourceresolver:1.7.2]
> ...
> at 
> org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:571)
>  [org.apache.sling.api:2.22.0]
> at 
> org.apache.sling.discovery.commons.providers.util.ResourceHelper.getOrCreateResource(ResourceHelper.java:45)
>  [org.apache.sling.discovery.commons:1.0.20]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.doUpdateProperties(OakDiscoveryService.java:492)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.bindPropertyProviderInteral(OakDiscoveryService.java:406)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.updatedPropertyProvider(OakDiscoveryService.java:421)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at jdk.internal.reflect.GeneratedMethodAccessor65.invoke(Unknown 
> Source){noformat}
> Under normal circumstances osgi should not invoke any of the 
> updatedPropertyProvider/unbindPropertyProvider methods after the 
> resourceResolverFactory is deactivated - but it has been seen nevertheless.
> What can be done in OakDiscoveryService is to tolerate this and not issue a 
> log.warn instead of throwing an uncaught IllegalArgumentException.
> Edit: more cases with the same root cause:
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@3e685b17
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.cluster.OakClusterViewService.getLocalClusterView(OakClusterViewService.java:113)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.BaseDiscoveryService.getTopology(BaseDiscoveryService.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.oak.OakDiscoveryService.checkForTopologyChange(OakDiscoveryService.java:660)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.discoveryLiteCheck(OakViewChecker.java:217)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.access$000(OakViewChecker.java:62)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker$1.run(OakViewChecker.java:193)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.safelyRun(PeriodicBackgroundJob.java:86)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.run(PeriodicBackgroundJob.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at java.base/java.lang.Thread.run(Thread.java:834)
> {noformat}
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@215bf7ef
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.TopologyWebConsolePlugin.updateDiscoveryLiteHistory(TopologyWebConsolePlugin.java:778)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.TopologyWebConsolePlugin.handleTopologyEvent(TopologyWebConsolePlugin.java:728)
>  

[jira] [Updated] (SLING-10204) Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated repository

2021-04-22 Thread Stefan Egli (Jira)


 [ 
https://issues.apache.org/jira/browse/SLING-10204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Egli updated SLING-10204:

Attachment: SLING-10204-2.git.patch

> Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated 
> repository
> 
>
> Key: SLING-10204
> URL: https://issues.apache.org/jira/browse/SLING-10204
> Project: Sling
>  Issue Type: Task
>  Components: Discovery
>Reporter: Stefan Egli
>Assignee: Stefan Egli
>Priority: Minor
> Fix For: Discovery Oak 1.2.32
>
> Attachments: SLING-10204-2.git.patch
>
>  Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> The following exception has been witnessed during resource resolver factory 
> unregistration:
> {noformat}
> java.lang.IllegalArgumentException: Can't create child on a synthetic root
> at 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl.create(ResourceResolverImpl.java:979)
>  [org.apache.sling.resourceresolver:1.7.2]
> ...
> at 
> org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:571)
>  [org.apache.sling.api:2.22.0]
> at 
> org.apache.sling.discovery.commons.providers.util.ResourceHelper.getOrCreateResource(ResourceHelper.java:45)
>  [org.apache.sling.discovery.commons:1.0.20]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.doUpdateProperties(OakDiscoveryService.java:492)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.bindPropertyProviderInteral(OakDiscoveryService.java:406)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.updatedPropertyProvider(OakDiscoveryService.java:421)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at jdk.internal.reflect.GeneratedMethodAccessor65.invoke(Unknown 
> Source){noformat}
> Under normal circumstances osgi should not invoke any of the 
> updatedPropertyProvider/unbindPropertyProvider methods after the 
> resourceResolverFactory is deactivated - but it has been seen nevertheless.
> What can be done in OakDiscoveryService is to tolerate this and not issue a 
> log.warn instead of throwing an uncaught IllegalArgumentException.
> Edit: more cases with the same root cause:
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@3e685b17
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.cluster.OakClusterViewService.getLocalClusterView(OakClusterViewService.java:113)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.BaseDiscoveryService.getTopology(BaseDiscoveryService.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.oak.OakDiscoveryService.checkForTopologyChange(OakDiscoveryService.java:660)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.discoveryLiteCheck(OakViewChecker.java:217)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.access$000(OakViewChecker.java:62)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker$1.run(OakViewChecker.java:193)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.safelyRun(PeriodicBackgroundJob.java:86)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.run(PeriodicBackgroundJob.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at java.base/java.lang.Thread.run(Thread.java:834)
> {noformat}
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@215bf7ef
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.TopologyWebConsolePlugin.updateDiscoveryLiteHistory(TopologyWebConsolePlugin.java:778)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.TopologyWebConsolePlugin.handleTopologyEvent(TopologyWebConsolePlugin.java:728)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.commons.providers.base.AsyncTopologyEvent.trigger(AsyncTopologyEvent.java:53)
>  

Re: Sling Declarative Dynamic Resources

2021-04-22 Thread Ruben Reusser

Carsten,  see inline

On 4/22/2021 6:55 AM, Carsten Ziegeler wrote:


Am 21.04.2021 um 15:30 schrieb Ruben Reusser:
- for each website that is created we have to create a corresponding 
/apps folder for rendering purposes


I assume the ddr solution is temporary and eventually the information 
is added to /apps directly? In this case I would do that immediately.


we try to live in a composite nodestore world where /apps is not 
writable - so no, we can't write to apps when creating a website


- we also want to give editors a certain control over group names, 
labels and the component variations an editor can pick from when 
creating a page



That sounds as if that is part of content not stored in /apps?

the default node structure we want to create if a user adds a component 
to a page is currently under apps but we would like to keep it somewhere 
in /content in the future


our big motivation for DDR is to make authoring and maintaining a 
website less dependent on developers and allow for better customization 
options after the initial effort to build a site has been completed.



Carsten


Ruben


[jira] [Commented] (SLING-10204) Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated repository

2021-04-22 Thread Stefan Egli (Jira)


[ 
https://issues.apache.org/jira/browse/SLING-10204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17329208#comment-17329208
 ] 

Stefan Egli commented on SLING-10204:
-

bq. Perhaps you intended to wrap the whole section with a try/finally and close 
the resourceResolver at the end of the block, rather than closing it in the 
middle (and again at the end)?  

Good point, absolutely, that finally block breaks it..!

> Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated 
> repository
> 
>
> Key: SLING-10204
> URL: https://issues.apache.org/jira/browse/SLING-10204
> Project: Sling
>  Issue Type: Task
>  Components: Discovery
>Reporter: Stefan Egli
>Assignee: Stefan Egli
>Priority: Minor
> Fix For: Discovery Oak 1.2.32
>
>  Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> The following exception has been witnessed during resource resolver factory 
> unregistration:
> {noformat}
> java.lang.IllegalArgumentException: Can't create child on a synthetic root
> at 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl.create(ResourceResolverImpl.java:979)
>  [org.apache.sling.resourceresolver:1.7.2]
> ...
> at 
> org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:571)
>  [org.apache.sling.api:2.22.0]
> at 
> org.apache.sling.discovery.commons.providers.util.ResourceHelper.getOrCreateResource(ResourceHelper.java:45)
>  [org.apache.sling.discovery.commons:1.0.20]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.doUpdateProperties(OakDiscoveryService.java:492)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.bindPropertyProviderInteral(OakDiscoveryService.java:406)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.updatedPropertyProvider(OakDiscoveryService.java:421)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at jdk.internal.reflect.GeneratedMethodAccessor65.invoke(Unknown 
> Source){noformat}
> Under normal circumstances osgi should not invoke any of the 
> updatedPropertyProvider/unbindPropertyProvider methods after the 
> resourceResolverFactory is deactivated - but it has been seen nevertheless.
> What can be done in OakDiscoveryService is to tolerate this and not issue a 
> log.warn instead of throwing an uncaught IllegalArgumentException.
> Edit: more cases with the same root cause:
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@3e685b17
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.cluster.OakClusterViewService.getLocalClusterView(OakClusterViewService.java:113)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.BaseDiscoveryService.getTopology(BaseDiscoveryService.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.oak.OakDiscoveryService.checkForTopologyChange(OakDiscoveryService.java:660)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.discoveryLiteCheck(OakViewChecker.java:217)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.access$000(OakViewChecker.java:62)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker$1.run(OakViewChecker.java:193)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.safelyRun(PeriodicBackgroundJob.java:86)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.run(PeriodicBackgroundJob.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at java.base/java.lang.Thread.run(Thread.java:834)
> {noformat}
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@215bf7ef
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.TopologyWebConsolePlugin.updateDiscoveryLiteHistory(TopologyWebConsolePlugin.java:778)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> 

[GitHub] [sling-aggregator] klcodanr commented on pull request #3: fix badged link for groups

2021-04-22 Thread GitBox


klcodanr commented on pull request #3:
URL: https://github.com/apache/sling-aggregator/pull/3#issuecomment-824850746


   Looks like the effected projects are: 
   ```org-apache-sling-scripting-javascript
   org-apache-sling-installer-provider-jcr
   org-apache-sling-karaf-features
   org-apache-sling-junit-core
   org-apache-sling-installer-provider-installhook
   org-apache-sling-servlets-get
   org-apache-sling-nosql-mongodb-resourceprovider
   org-apache-sling-launchpad-contrib-testing
   org-apache-sling-models-caconfig
   org-apache-sling-testing-logging-mock
   org-apache-sling-testing-email
   org-apache-sling-caconfig-integration-tests
   org-apache-sling-jobs-it
   org-apache-sling-distribution-sample
   org-apache-sling-scripting-sightly-js-provider
   org-apache-sling-repoinit-it
   org-apache-sling-testing-sling-mock
   org-apache-sling-testing-clients
   org-apache-sling-installer-hc
   org-apache-sling-discovery-oak
   org-apache-sling-scripting-sightly-repl
   org-apache-sling-feature-diff
   org-apache-sling-scripting-console
   org-apache-sling-discovery-base
   org-apache-sling-installer-provider-file
   org-apache-sling-scripting-jsp-taglib-compat
   org-apache-sling-distribution-core
   org-apache-sling-jcr-webdav
   org-apache-sling-jcr-davex
   org-apache-sling-tooling-support-install
   org-apache-sling-jcr-filetransfer
   org-apache-sling-models-validation-impl
   org-apache-sling-jcr-jackrabbit-accessmanager
   org-apache-sling-feature-extension-content
   org-apache-sling-junit-teleporter
   org-apache-sling-launchpad-test-services
   org-apache-sling-feature-analyser
   org-apache-sling-installer-factory-deploymentpackage
   org-apache-sling-junit-performance
   org-apache-sling-testing-paxexam
   org-apache-sling-event-api
   org-apache-sling-fragment-nashorn
   org-apache-sling-launchpad-base
   org-apache-sling-jcr-resourcesecurity
   org-apache-sling-contentparser-testutils
   org-apache-sling-models-impl
   org-apache-sling-scripting-sightly-runtime
   org-apache-sling-distribution-journal-it
   org-apache-sling-caconfig-impl
   org-apache-sling-scripting-xproc
   org-apache-sling-feature-apiregions
   org-apache-sling-launchpad-test-fragment
   org-apache-sling-starter-content
   org-apache-sling-hapi-client
   org-apache-sling-hc-support
   org-apache-sling-testing-rules
   org-apache-sling-servlets-resolver
   org-apache-sling-feature-inventoryprinter
   org-apache-sling-jcr-api
   org-apache-sling-caconfig-spi
   org-apache-sling-auth-xing-oauth
   org-apache-sling-validation-test-services
   org-apache-sling-scripting-jsp-taglib
   org-apache-sling-scripting-el-api
   org-apache-sling-installer-factory-configuration
   org-apache-sling-jcr-contentparser
   org-apache-sling-scripting-esx
   org-apache-sling-testing-caconfig-mock-plugin
   org-apache-sling-feature-extension-apiregions
   org-apache-sling-caconfig-bnd-plugin
   org-apache-sling-feature-modelconverter
   org-apache-sling-auth-form
   org-apache-sling-testing-serversetup
   org-apache-sling-nosql-couchbase-resourceprovider
   org-apache-sling-adapter-annotations
   org-apache-sling-launchpad-installer
   org-apache-sling-karaf-configs
   org-apache-sling-testing-jcr-mock
   org-apache-sling-launchpad-startupmanager
   org-apache-sling-hc-samples
   org-apache-sling-jcr-js-nodetypes
   org-apache-sling-servlets-annotations
   org-apache-sling-discovery-commons
   org-apache-sling-feature-cpconverter
   org-apache-sling-fragment-activation
   org-apache-sling-installer-factory-model
   org-apache-sling-launchpad-testing
   org-apache-sling-auth-core
   org-apache-sling-jcr-oak-server
   org-apache-sling-feature-karaf
   org-apache-sling-karaf-integration-tests
   org-apache-sling-installer-factory-subsystems-base
   org-apache-sling-scripting-jsp-jstl
   org-apache-sling-hapi-samplecontent
   org-apache-sling-caconfig-api
   org-apache-sling-testing-hamcrest
   org-apache-sling-feature-resolver
   org-apache-sling-jcr-repository-it-resource-versioning
   org-apache-sling-junit-scriptable
   org-apache-sling-installer-it
   org-apache-sling-contentparser-api
   org-apache-sling-nosql-generic
   org-apache-sling-scripting-sightly
   org-apache-sling-jcr-classloader
   org-apache-sling-jcr-presence
   org-apache-sling-distribution-avro-serializer
   org-apache-sling-fragment-transaction
   org-apache-sling-scripting-freemarker
   org-apache-sling-auth-saml2
   org-apache-sling-fragment-xml
   org-apache-sling-testing-osgi-mock
   org-apache-sling-jcr-repoinit
   org-apache-sling-feature-launcher
   org-apache-sling-feature-r2f
   org-apache-sling-auth-xing-login
   org-apache-sling-jcr-packageinit
   org-apache-sling-scripting-jsp
   org-apache-sling-jobs-it-services
   org-apache-sling-auth-xing-api
   org-apache-sling-jcr-registration
   org-apache-sling-feature-apiregions-model
   org-apache-sling-scripting-jsp-api
   org-apache-sling-discovery-standalone
   

Re: Sling Declarative Dynamic Resources

2021-04-22 Thread Carsten Ziegeler

Am 21.04.2021 um 15:30 schrieb Ruben Reusser:

Bertrand, Carsten,

On 4/20/2021 10:57 PM, Carsten Ziegeler wrote:
I totally agree that we should try to avoid overlapping solutions and 
as mentioned superimposing and ddr sound pretty similar.


I understand the use cases on a higher level. However - similar to 
Bertrand - I'm a little bit worried. The readme for ddr talks about 
circumventing an immutable repository. If its possible to basically 
make immutable parts mutable, then this is entering dangerous territory.


I understand your concern - that is one of the reasons why we made sure 
we allow blocking of resource types in ddr.


we tried to outline our usecase we need to solve:

- for each website that is created we have to create a corresponding 
/apps folder for rendering purposes


I assume the ddr solution is temporary and eventually the information is 
added to /apps directly? In this case I would do that immediately.


- we also want to give editors a certain control over group names, 
labels and the component variations an editor can pick from when 
creating a page



That sounds as if that is part of content not stored in /apps?

Carsten

--
Carsten Ziegeler
Adobe Research Switzerland
cziege...@apache.org


[jira] [Comment Edited] (SLING-10204) Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated repository

2021-04-22 Thread Eric Norman (Jira)


[ 
https://issues.apache.org/jira/browse/SLING-10204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17329102#comment-17329102
 ] 

Eric Norman edited comment on SLING-10204 at 4/22/21, 1:12 PM:
---

[~stefanegli] Yes, there was definitely broken functionality which is how I 
noticed it wasn't working. 

It appears to me that the main problem appears to be that 
"resourceResolver.close()" is called in the finally block of 
OakClusterViewService#getLocalClusterView after populating the "descriptor" 
variable and then the same "resourceResolver" variable is used in the next 
try/catch block without getting a fresh instance.   So the "resourceResolver" 
seems to be prematurely closed there.   Perhaps you intended to wrap the whole 
section with a try/finally and close the resourceResolver at the end of the 
block, rather than closing it in the middle (and again at the end)?  


was (Author: enorman):
[~stefanegli] Yes, there was definitely broken functionality which is how I 
noticed it wasn't working. 

It appears to me that the main problem appears to be that 
"resourceResolver.close()" is called in the finally block after populating the 
"descriptor" variable and then the same "resourceResolver" variable is used in 
the next try/catch block without getting a fresh instance.   So the 
"resourceResolver" seems to be prematurely closed there.   Perhaps you intended 
to wrap the whole section with a try/finally and close the resourceResolver at 
the end of the block, rather than closing it in the middle (and again at the 
end)?  

> Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated 
> repository
> 
>
> Key: SLING-10204
> URL: https://issues.apache.org/jira/browse/SLING-10204
> Project: Sling
>  Issue Type: Task
>  Components: Discovery
>Reporter: Stefan Egli
>Assignee: Stefan Egli
>Priority: Minor
> Fix For: Discovery Oak 1.2.32
>
>  Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> The following exception has been witnessed during resource resolver factory 
> unregistration:
> {noformat}
> java.lang.IllegalArgumentException: Can't create child on a synthetic root
> at 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl.create(ResourceResolverImpl.java:979)
>  [org.apache.sling.resourceresolver:1.7.2]
> ...
> at 
> org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:571)
>  [org.apache.sling.api:2.22.0]
> at 
> org.apache.sling.discovery.commons.providers.util.ResourceHelper.getOrCreateResource(ResourceHelper.java:45)
>  [org.apache.sling.discovery.commons:1.0.20]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.doUpdateProperties(OakDiscoveryService.java:492)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.bindPropertyProviderInteral(OakDiscoveryService.java:406)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.updatedPropertyProvider(OakDiscoveryService.java:421)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at jdk.internal.reflect.GeneratedMethodAccessor65.invoke(Unknown 
> Source){noformat}
> Under normal circumstances osgi should not invoke any of the 
> updatedPropertyProvider/unbindPropertyProvider methods after the 
> resourceResolverFactory is deactivated - but it has been seen nevertheless.
> What can be done in OakDiscoveryService is to tolerate this and not issue a 
> log.warn instead of throwing an uncaught IllegalArgumentException.
> Edit: more cases with the same root cause:
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@3e685b17
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.cluster.OakClusterViewService.getLocalClusterView(OakClusterViewService.java:113)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.BaseDiscoveryService.getTopology(BaseDiscoveryService.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.oak.OakDiscoveryService.checkForTopologyChange(OakDiscoveryService.java:660)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.discoveryLiteCheck(OakViewChecker.java:217)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.access$000(OakViewChecker.java:62)
>  [org.apache.sling.discovery.oak:1.2.30]
> 

[jira] [Comment Edited] (SLING-10204) Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated repository

2021-04-22 Thread Eric Norman (Jira)


[ 
https://issues.apache.org/jira/browse/SLING-10204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17329102#comment-17329102
 ] 

Eric Norman edited comment on SLING-10204 at 4/22/21, 1:13 PM:
---

[~stefanegli] Yes, there was definitely broken functionality (the JobConsumer 
components weren't getting triggered anymore) which is how I noticed it wasn't 
working. 

It appears to me that the main problem appears to be that 
"resourceResolver.close()" is called in the finally block of 
OakClusterViewService#getLocalClusterView after populating the "descriptor" 
variable and then the same "resourceResolver" variable is used in the next 
try/catch block without getting a fresh instance.   So the "resourceResolver" 
seems to be prematurely closed there.   Perhaps you intended to wrap the whole 
section with a try/finally and close the resourceResolver at the end of the 
block, rather than closing it in the middle (and again at the end)?  


was (Author: enorman):
[~stefanegli] Yes, there was definitely broken functionality which is how I 
noticed it wasn't working. 

It appears to me that the main problem appears to be that 
"resourceResolver.close()" is called in the finally block of 
OakClusterViewService#getLocalClusterView after populating the "descriptor" 
variable and then the same "resourceResolver" variable is used in the next 
try/catch block without getting a fresh instance.   So the "resourceResolver" 
seems to be prematurely closed there.   Perhaps you intended to wrap the whole 
section with a try/finally and close the resourceResolver at the end of the 
block, rather than closing it in the middle (and again at the end)?  

> Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated 
> repository
> 
>
> Key: SLING-10204
> URL: https://issues.apache.org/jira/browse/SLING-10204
> Project: Sling
>  Issue Type: Task
>  Components: Discovery
>Reporter: Stefan Egli
>Assignee: Stefan Egli
>Priority: Minor
> Fix For: Discovery Oak 1.2.32
>
>  Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> The following exception has been witnessed during resource resolver factory 
> unregistration:
> {noformat}
> java.lang.IllegalArgumentException: Can't create child on a synthetic root
> at 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl.create(ResourceResolverImpl.java:979)
>  [org.apache.sling.resourceresolver:1.7.2]
> ...
> at 
> org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:571)
>  [org.apache.sling.api:2.22.0]
> at 
> org.apache.sling.discovery.commons.providers.util.ResourceHelper.getOrCreateResource(ResourceHelper.java:45)
>  [org.apache.sling.discovery.commons:1.0.20]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.doUpdateProperties(OakDiscoveryService.java:492)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.bindPropertyProviderInteral(OakDiscoveryService.java:406)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.updatedPropertyProvider(OakDiscoveryService.java:421)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at jdk.internal.reflect.GeneratedMethodAccessor65.invoke(Unknown 
> Source){noformat}
> Under normal circumstances osgi should not invoke any of the 
> updatedPropertyProvider/unbindPropertyProvider methods after the 
> resourceResolverFactory is deactivated - but it has been seen nevertheless.
> What can be done in OakDiscoveryService is to tolerate this and not issue a 
> log.warn instead of throwing an uncaught IllegalArgumentException.
> Edit: more cases with the same root cause:
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@3e685b17
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.cluster.OakClusterViewService.getLocalClusterView(OakClusterViewService.java:113)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.BaseDiscoveryService.getTopology(BaseDiscoveryService.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.oak.OakDiscoveryService.checkForTopologyChange(OakDiscoveryService.java:660)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.discoveryLiteCheck(OakViewChecker.java:217)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> 

[GitHub] [sling-aggregator] klcodanr merged pull request #3: fix badged link for groups

2021-04-22 Thread GitBox


klcodanr merged pull request #3:
URL: https://github.com/apache/sling-aggregator/pull/3


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[Jenkins] Sling » Modules » sling-org-apache-sling-launchpad-testing » master #437 is BROKEN

2021-04-22 Thread Apache Jenkins Server
p.whiteboard.filter.pattern=[/], request.max=-1, service.bundleid=132, 
service.description=Filter for request parameter support, service.id=466, 
service.ranking=2147483647, service.scope=bundle, service.vendor=The Apache 
Software Foundation, sling.default.max.parameters=1, 
sling.default.parameter.checkForAdditionalContainerParameters=false, 
sling.default.parameter.encoding=ISO-8859-1}] Ignoring unmatching Filter service
[DEBUG] [ServiceReference 451 from bundle 132 : org.apache.sling.engine:2.7.2 
ref=[javax.servlet.Servlet] properties={objectClass=[javax.servlet.Servlet], 
osgi.http.whiteboard.context.select=(osgi.http.whiteboard.context.name=org.apache.sling),
 osgi.http.whiteboard.servlet.name=ApacheSling/2.7, 
osgi.http.whiteboard.servlet.pattern=/, service.bundleid=132, 
service.description=Apache Sling Engine Main Servlet, service.id=451, 
service.scope=singleton, service.vendor=The Apache Software Foundation}] 
Ignoring unmatching Servlet service
[DEBUG] [ServiceReference 78 from bundle 38 : 
org.apache.sling.launchpad.test-services:12.0.0.SNAPSHOT 
ref=[javax.servlet.Servlet] properties={component.id=53, 
component.name=org.apache.sling.launchpad.testservices.servlets.R6WhiteboardServlet,
 objectClass=[javax.servlet.Servlet], 
osgi.http.whiteboard.context.select=(osgi.http.whiteboard.context.name=org.apache.sling),
 osgi.http.whiteboard.servlet.pattern=/whiteboard_r6, service.bundleid=38, 
service.id=78, 
service.pid=org.apache.sling.launchpad.testservices.servlets.R6WhiteboardServlet,
 service.scope=bundle, service.vendor=The Apache Software Foundation}] Ignoring 
unmatching Servlet service
[DEBUG] [ServiceReference 463 from bundle 132 : org.apache.sling.engine:2.7.2 
ref=[javax.servlet.Filter] properties={component.id=223, 
component.name=org.apache.sling.engine.impl.log.RequestLoggerFilter, 
objectClass=[javax.servlet.Filter], 
osgi.http.whiteboard.context.select=(osgi.http.whiteboard.context.name=org.apache.sling),
 osgi.http.whiteboard.filter.pattern=[/], service.bundleid=132, 
service.description=Request Logger Filter, service.id=463, 
service.ranking=32768, service.scope=bundle, service.vendor=The Apache Software 
Foundation}] Ignoring unmatching Filter service
[INFO] Apachde Felix Http Whiteboard Service stopped
[INFO] Stopped Jetty.
[INFO] 
[INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @ 
org.apache.sling.launchpad.testing ---
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
org.codehaus.groovy.reflection.CachedConstructor 
(file:/home/jenkins/.m2/repository/org/codehaus/groovy/groovy-all-minimal/1.5.6/groovy-all-minimal-1.5.6.jar)
 to constructor java.io.File(java.lang.String,java.io.File)
WARNING: Please consider reporting this to the maintainers of 
org.codehaus.groovy.reflection.CachedConstructor
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Checking legal files in: 
org.apache.sling.launchpad.testing-12-SNAPSHOT.jar
[INFO] Checking legal files in: 
org.apache.sling.launchpad.testing-12-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- apache-rat-plugin:0.11:check (default) @ 
org.apache.sling.launchpad.testing ---
[INFO] 51 implicit excludes (use -debug for more details).
[INFO] Exclude: DEPENDENCIES
[INFO] Exclude: src/main/appended-resources/META-INF/*
[INFO] Exclude: velocity.log
[INFO] Exclude: target/*
[INFO] Exclude: README.md
[INFO] Exclude: maven-eclipse.xml
[INFO] Exclude: .*
[INFO] Exclude: .*/**
[INFO] Exclude: **/*.json
[INFO] Exclude: DEPENDENCIES
[INFO] Exclude: **/*.rej
[INFO] Exclude: hs_err_*.log
[INFO] Exclude: **/repository/index/*/index-details.txt
[INFO] Exclude: bnd.bnd
[INFO] 6 resources included (use -debug for more details)
[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 
approved: 5 licence.
[INFO] 
[INFO] --- maven-failsafe-plugin:2.21.0:verify (default) @ 
org.apache.sling.launchpad.testing ---
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time:  02:58 min
[INFO] Finished at: 2021-04-22T11:29:58Z
[INFO] 
[WARNING] The requested profile "ci" could not be activated because it does not 
exist.
[INFO] [jenkins-event-spy] Generated 
/home/jenkins/jenkins-agent/workspace/e-sling-launchpad-testing_master@tmp/withMaven96b2293f/maven-spy-20210422-112659-5162997852325259085861.log
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-failsafe-plugin:2.21.0:verify (default) on 
project org.apache.sling.launchpad.testing: There are test failures.
[ERROR] 
[ERROR] Please refer to 
/home/jenkins/jenkins-agent/workspace/e-sling-launchpad-testing_master/target/failsafe-reports
 for the individual test results.
[ERROR

[jira] [Commented] (SLING-10204) Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated repository

2021-04-22 Thread Eric Norman (Jira)


[ 
https://issues.apache.org/jira/browse/SLING-10204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17329102#comment-17329102
 ] 

Eric Norman commented on SLING-10204:
-

[~stefanegli] Yes, there was definitely broken functionality which is how I 
noticed it wasn't working. 

It appears to me that the main problem appears to be that 
"resourceResolver.close()" is called in the finally block after populating the 
"descriptor" variable and then the same "resourceResolver" variable is used in 
the next try/catch block without getting a fresh instance.   So the 
"resourceResolver" seems to be prematurely closed there.   Perhaps you intended 
to wrap the whole section with a try/finally and close the resourceResolver at 
the end of the block, rather than closing it in the middle (and again at the 
end)?  

> Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated 
> repository
> 
>
> Key: SLING-10204
> URL: https://issues.apache.org/jira/browse/SLING-10204
> Project: Sling
>  Issue Type: Task
>  Components: Discovery
>Reporter: Stefan Egli
>Assignee: Stefan Egli
>Priority: Minor
> Fix For: Discovery Oak 1.2.32
>
>  Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> The following exception has been witnessed during resource resolver factory 
> unregistration:
> {noformat}
> java.lang.IllegalArgumentException: Can't create child on a synthetic root
> at 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl.create(ResourceResolverImpl.java:979)
>  [org.apache.sling.resourceresolver:1.7.2]
> ...
> at 
> org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:571)
>  [org.apache.sling.api:2.22.0]
> at 
> org.apache.sling.discovery.commons.providers.util.ResourceHelper.getOrCreateResource(ResourceHelper.java:45)
>  [org.apache.sling.discovery.commons:1.0.20]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.doUpdateProperties(OakDiscoveryService.java:492)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.bindPropertyProviderInteral(OakDiscoveryService.java:406)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.updatedPropertyProvider(OakDiscoveryService.java:421)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at jdk.internal.reflect.GeneratedMethodAccessor65.invoke(Unknown 
> Source){noformat}
> Under normal circumstances osgi should not invoke any of the 
> updatedPropertyProvider/unbindPropertyProvider methods after the 
> resourceResolverFactory is deactivated - but it has been seen nevertheless.
> What can be done in OakDiscoveryService is to tolerate this and not issue a 
> log.warn instead of throwing an uncaught IllegalArgumentException.
> Edit: more cases with the same root cause:
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@3e685b17
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.cluster.OakClusterViewService.getLocalClusterView(OakClusterViewService.java:113)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.BaseDiscoveryService.getTopology(BaseDiscoveryService.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.oak.OakDiscoveryService.checkForTopologyChange(OakDiscoveryService.java:660)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.discoveryLiteCheck(OakViewChecker.java:217)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.access$000(OakViewChecker.java:62)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker$1.run(OakViewChecker.java:193)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.safelyRun(PeriodicBackgroundJob.java:86)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.run(PeriodicBackgroundJob.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at java.base/java.lang.Thread.run(Thread.java:834)
> {noformat}
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@215bf7ef
>   at 
> 

[GitHub] [sling-aggregator] klcodanr commented on pull request #3: fix badged link for groups

2021-04-22 Thread GitBox


klcodanr commented on pull request #3:
URL: https://github.com/apache/sling-aggregator/pull/3#issuecomment-824817904


   Thanks for the patch @stbischof! IMO it'd be better to identify and fix the 
affected projects to avoid having broken links. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[jira] [Commented] (SLING-10204) Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated repository

2021-04-22 Thread Stefan Egli (Jira)


[ 
https://issues.apache.org/jira/browse/SLING-10204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17327244#comment-17327244
 ] 

Stefan Egli commented on SLING-10204:
-

* tempered this log.error to warn similar to the other cases in [this 
branch|https://github.com/stefan-egli/sling-org-apache-sling-discovery-oak/tree/SLING-10204-2]
 
[commit|https://github.com/stefan-egli/sling-org-apache-sling-discovery-oak/commit/42278021f649c12d4b3fec560139ab8d9ac20239]

> Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated 
> repository
> 
>
> Key: SLING-10204
> URL: https://issues.apache.org/jira/browse/SLING-10204
> Project: Sling
>  Issue Type: Task
>  Components: Discovery
>Reporter: Stefan Egli
>Assignee: Stefan Egli
>Priority: Minor
> Fix For: Discovery Oak 1.2.32
>
>  Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> The following exception has been witnessed during resource resolver factory 
> unregistration:
> {noformat}
> java.lang.IllegalArgumentException: Can't create child on a synthetic root
> at 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl.create(ResourceResolverImpl.java:979)
>  [org.apache.sling.resourceresolver:1.7.2]
> ...
> at 
> org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:571)
>  [org.apache.sling.api:2.22.0]
> at 
> org.apache.sling.discovery.commons.providers.util.ResourceHelper.getOrCreateResource(ResourceHelper.java:45)
>  [org.apache.sling.discovery.commons:1.0.20]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.doUpdateProperties(OakDiscoveryService.java:492)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.bindPropertyProviderInteral(OakDiscoveryService.java:406)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.updatedPropertyProvider(OakDiscoveryService.java:421)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at jdk.internal.reflect.GeneratedMethodAccessor65.invoke(Unknown 
> Source){noformat}
> Under normal circumstances osgi should not invoke any of the 
> updatedPropertyProvider/unbindPropertyProvider methods after the 
> resourceResolverFactory is deactivated - but it has been seen nevertheless.
> What can be done in OakDiscoveryService is to tolerate this and not issue a 
> log.warn instead of throwing an uncaught IllegalArgumentException.
> Edit: more cases with the same root cause:
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@3e685b17
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.cluster.OakClusterViewService.getLocalClusterView(OakClusterViewService.java:113)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.BaseDiscoveryService.getTopology(BaseDiscoveryService.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.oak.OakDiscoveryService.checkForTopologyChange(OakDiscoveryService.java:660)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.discoveryLiteCheck(OakViewChecker.java:217)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.access$000(OakViewChecker.java:62)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker$1.run(OakViewChecker.java:193)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.safelyRun(PeriodicBackgroundJob.java:86)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.run(PeriodicBackgroundJob.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at java.base/java.lang.Thread.run(Thread.java:834)
> {noformat}
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@215bf7ef
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.TopologyWebConsolePlugin.updateDiscoveryLiteHistory(TopologyWebConsolePlugin.java:778)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> 

[jira] [Reopened] (SLING-10204) Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated repository

2021-04-22 Thread Stefan Egli (Jira)


 [ 
https://issues.apache.org/jira/browse/SLING-10204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Egli reopened SLING-10204:
-

> Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated 
> repository
> 
>
> Key: SLING-10204
> URL: https://issues.apache.org/jira/browse/SLING-10204
> Project: Sling
>  Issue Type: Task
>  Components: Discovery
>Reporter: Stefan Egli
>Assignee: Stefan Egli
>Priority: Minor
> Fix For: Discovery Oak 1.2.32
>
>  Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> The following exception has been witnessed during resource resolver factory 
> unregistration:
> {noformat}
> java.lang.IllegalArgumentException: Can't create child on a synthetic root
> at 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl.create(ResourceResolverImpl.java:979)
>  [org.apache.sling.resourceresolver:1.7.2]
> ...
> at 
> org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:571)
>  [org.apache.sling.api:2.22.0]
> at 
> org.apache.sling.discovery.commons.providers.util.ResourceHelper.getOrCreateResource(ResourceHelper.java:45)
>  [org.apache.sling.discovery.commons:1.0.20]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.doUpdateProperties(OakDiscoveryService.java:492)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.bindPropertyProviderInteral(OakDiscoveryService.java:406)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.updatedPropertyProvider(OakDiscoveryService.java:421)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at jdk.internal.reflect.GeneratedMethodAccessor65.invoke(Unknown 
> Source){noformat}
> Under normal circumstances osgi should not invoke any of the 
> updatedPropertyProvider/unbindPropertyProvider methods after the 
> resourceResolverFactory is deactivated - but it has been seen nevertheless.
> What can be done in OakDiscoveryService is to tolerate this and not issue a 
> log.warn instead of throwing an uncaught IllegalArgumentException.
> Edit: more cases with the same root cause:
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@3e685b17
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.cluster.OakClusterViewService.getLocalClusterView(OakClusterViewService.java:113)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.BaseDiscoveryService.getTopology(BaseDiscoveryService.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.oak.OakDiscoveryService.checkForTopologyChange(OakDiscoveryService.java:660)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.discoveryLiteCheck(OakViewChecker.java:217)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.access$000(OakViewChecker.java:62)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker$1.run(OakViewChecker.java:193)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.safelyRun(PeriodicBackgroundJob.java:86)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.run(PeriodicBackgroundJob.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at java.base/java.lang.Thread.run(Thread.java:834)
> {noformat}
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@215bf7ef
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.TopologyWebConsolePlugin.updateDiscoveryLiteHistory(TopologyWebConsolePlugin.java:778)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.TopologyWebConsolePlugin.handleTopologyEvent(TopologyWebConsolePlugin.java:728)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.commons.providers.base.AsyncTopologyEvent.trigger(AsyncTopologyEvent.java:53)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> 

[jira] [Commented] (SLING-10204) Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated repository

2021-04-22 Thread Stefan Egli (Jira)


[ 
https://issues.apache.org/jira/browse/SLING-10204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17327221#comment-17327221
 ] 

Stefan Egli commented on SLING-10204:
-

Thx [~enorman] for reporting. Besides the fact that there was this log.error, 
did you notice some broken functionality?
(I think it might "just" be another loud exception that you encountered that 
should also be tempered, same as the other cases.)

> Make OakDiscoveryService.updatedPropertyProvider tolerate deactivated 
> repository
> 
>
> Key: SLING-10204
> URL: https://issues.apache.org/jira/browse/SLING-10204
> Project: Sling
>  Issue Type: Task
>  Components: Discovery
>Reporter: Stefan Egli
>Assignee: Stefan Egli
>Priority: Minor
> Fix For: Discovery Oak 1.2.32
>
>  Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> The following exception has been witnessed during resource resolver factory 
> unregistration:
> {noformat}
> java.lang.IllegalArgumentException: Can't create child on a synthetic root
> at 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl.create(ResourceResolverImpl.java:979)
>  [org.apache.sling.resourceresolver:1.7.2]
> ...
> at 
> org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:571)
>  [org.apache.sling.api:2.22.0]
> at 
> org.apache.sling.discovery.commons.providers.util.ResourceHelper.getOrCreateResource(ResourceHelper.java:45)
>  [org.apache.sling.discovery.commons:1.0.20]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.doUpdateProperties(OakDiscoveryService.java:492)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.bindPropertyProviderInteral(OakDiscoveryService.java:406)
>  [org.apache.sling.discovery.oak:1.2.30]
> at 
> org.apache.sling.discovery.oak.OakDiscoveryService.updatedPropertyProvider(OakDiscoveryService.java:421)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at jdk.internal.reflect.GeneratedMethodAccessor65.invoke(Unknown 
> Source){noformat}
> Under normal circumstances osgi should not invoke any of the 
> updatedPropertyProvider/unbindPropertyProvider methods after the 
> resourceResolverFactory is deactivated - but it has been seen nevertheless.
> What can be done in OakDiscoveryService is to tolerate this and not issue a 
> log.warn instead of throwing an uncaught IllegalArgumentException.
> Edit: more cases with the same root cause:
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@3e685b17
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.cluster.OakClusterViewService.getLocalClusterView(OakClusterViewService.java:113)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.BaseDiscoveryService.getTopology(BaseDiscoveryService.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.oak.OakDiscoveryService.checkForTopologyChange(OakDiscoveryService.java:660)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.discoveryLiteCheck(OakViewChecker.java:217)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker.access$000(OakViewChecker.java:62)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.oak.pinger.OakViewChecker$1.run(OakViewChecker.java:193)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.safelyRun(PeriodicBackgroundJob.java:86)
>  [org.apache.sling.discovery.base:2.0.8]
>   at 
> org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.run(PeriodicBackgroundJob.java:77)
>  [org.apache.sling.discovery.base:2.0.8]
>   at java.base/java.lang.Thread.run(Thread.java:834)
> {noformat}
> {noformat}
> java.lang.Exception: Could not adapt resourceResolver to session: 
> org.apache.sling.resourceresolver.impl.ResourceResolverImpl@215bf7ef
>   at 
> org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor.getDescriptorFrom(DiscoveryLiteDescriptor.java:54)
>  [org.apache.sling.discovery.commons:1.0.20]
>   at 
> org.apache.sling.discovery.oak.TopologyWebConsolePlugin.updateDiscoveryLiteHistory(TopologyWebConsolePlugin.java:778)
>  [org.apache.sling.discovery.oak:1.2.30]
>   at 
> 

[GitHub] [sling-org-apache-sling-feature-launcher] stbischof edited a comment on pull request #28: Badge-Link fix

2021-04-22 Thread GitBox


stbischof edited a comment on pull request #28:
URL: 
https://github.com/apache/sling-org-apache-sling-feature-launcher/pull/28#issuecomment-824668818


   fix script PR: https://github.com/apache/sling-aggregator/pull/3
   
   An other option would be to move the docs/groups folder in aggregate to 
docs/group. Then we do not need to fix all projects


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [sling-org-apache-sling-feature-launcher] stbischof commented on pull request #28: Badge-Link fix

2021-04-22 Thread GitBox


stbischof commented on pull request #28:
URL: 
https://github.com/apache/sling-org-apache-sling-feature-launcher/pull/28#issuecomment-824668818


   fix script PR: https://github.com/apache/sling-aggregator/pull/3


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [sling-aggregator] stbischof opened a new pull request #3: fix badged link for groups

2021-04-22 Thread GitBox


stbischof opened a new pull request #3:
URL: https://github.com/apache/sling-aggregator/pull/3


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [sling-org-apache-sling-feature-launcher] rombert edited a comment on pull request #28: Badge-Link fix

2021-04-22 Thread GitBox


rombert edited a comment on pull request #28:
URL: 
https://github.com/apache/sling-org-apache-sling-feature-launcher/pull/28#issuecomment-824663422


   @stbischof  - do you think you can then send a PR for the aggregator? I am 
not sure how many projects need a rebuild, but all the _feature_ ones I checked 
need it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [sling-org-apache-sling-feature-launcher] rombert commented on pull request #28: Badge-Link fix

2021-04-22 Thread GitBox


rombert commented on pull request #28:
URL: 
https://github.com/apache/sling-org-apache-sling-feature-launcher/pull/28#issuecomment-824663422


   @stbischof  - I think you can then send a PR for the aggregator? I am not 
sure how many projects need a rebuild, but all the _feature_ ones I checked 
need it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [sling-org-apache-sling-feature-launcher] stbischof commented on pull request #28: Badge-Link fix

2021-04-22 Thread GitBox


stbischof commented on pull request #28:
URL: 
https://github.com/apache/sling-org-apache-sling-feature-launcher/pull/28#issuecomment-824661382


   Ok, good to know that a script does this.
   
   The line with the missing `s`.
   
https://github.com/apache/sling-aggregator/blob/59881f915e3a1b7f51cb0e1e69eb6b6e438d89c1/generate-badges.groovy#L60


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [sling-org-apache-sling-feature-launcher] rombert commented on pull request #28: Badge-Link fix

2021-04-22 Thread GitBox


rombert commented on pull request #28:
URL: 
https://github.com/apache/sling-org-apache-sling-feature-launcher/pull/28#issuecomment-824651435


   Thanks for the PR @stbischof . IIRC we generate these badges with the 
scripts from https://github.com/apache/sling-aggregator . @klcodanr  - is this 
something we should fix in the scripts instead?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[CANCEL}[VOTE] Release Apache Sling Oak-Based Discovery Service 1.2.32

2021-04-22 Thread Stefan Egli

Hi Eric,

Thanks, and appologies for this!

I'm cancelling the release then.

Seems the fix in SLING-10204 was not enough. I will look into 
reproducing this, ideally with a pax-exam, which this bundle doesn't 
have yet unfortunately. But it might be good to have anyway.


Cheers,
Stefan

On 21.04.21 23:35, Eric Norman wrote:

-1 for me as switching to this release appears to cause some regressions
related to the changes from SLING-10204

Specifically, I noticed some of my local automated tests started to fail
with what appeared to be a problem with some of my JobConsumer components
no longer getting triggered.  I took a look at the error.log and there are
numerous "java.lang.IllegalStateException: Resource resolver is already
closed." exceptions being reported with various stacktraces related
to OakClusterViewService.

I believe the following is the stack trace related to the JobConsumer
troubles:

21.04.2021 14:24:06.617 *ERROR* [Apache Sling Repository Startup Thread #1]
org.apache.sling.discovery.oak.cluster.OakClusterViewService
getLocalClusterView: repository exception: java.lang.IllegalStateException:
Resource resolver is already closed.
java.lang.IllegalStateException: Resource resolver is already closed.
at
org.apache.sling.resourceresolver.impl.ResourceResolverImpl.checkClosed(ResourceResolverImpl.java:196)
[org.apache.sling.resourceresolver:1.7.4]
at
org.apache.sling.resourceresolver.impl.ResourceResolverImpl.getResource(ResourceResolverImpl.java:447)
[org.apache.sling.resourceresolver:1.7.4]
at
org.apache.sling.api.resource.ResourceUtil.getOrCreateResourceInternal(ResourceUtil.java:644)
[org.apache.sling.api:2.23.1.SNAPSHOT]
at
org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:603)
[org.apache.sling.api:2.23.1.SNAPSHOT]
at
org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:571)
[org.apache.sling.api:2.23.1.SNAPSHOT]
at
org.apache.sling.discovery.commons.providers.util.ResourceHelper.getOrCreateResource(ResourceHelper.java:45)
[org.apache.sling.discovery.commons:1.0.20]
at
org.apache.sling.discovery.commons.providers.spi.base.IdMapService.readIdMap(IdMapService.java:302)
[org.apache.sling.discovery.commons:1.0.20]
at
org.apache.sling.discovery.commons.providers.spi.base.IdMapService.toSlingId(IdMapService.java:280)
[org.apache.sling.discovery.commons:1.0.20]
at
org.apache.sling.discovery.oak.cluster.OakClusterViewService.asClusterView(OakClusterViewService.java:187)
[org.apache.sling.discovery.oak:1.2.32]
at
org.apache.sling.discovery.oak.cluster.OakClusterViewService.getLocalClusterView(OakClusterViewService.java:137)
[org.apache.sling.discovery.oak:1.2.32]
at
org.apache.sling.discovery.base.commons.BaseDiscoveryService.getTopology(BaseDiscoveryService.java:77)
[org.apache.sling.discovery.base:2.0.8]
at
org.apache.sling.discovery.oak.OakDiscoveryService.checkForTopologyChange(OakDiscoveryService.java:678)
[org.apache.sling.discovery.oak:1.2.32]
at
org.apache.sling.discovery.oak.OakDiscoveryService.bindPropertyProviderInteral(OakDiscoveryService.java:414)
[org.apache.sling.discovery.oak:1.2.32]
at
org.apache.sling.discovery.oak.OakDiscoveryService.updatedPropertyProvider(OakDiscoveryService.java:428)
[org.apache.sling.discovery.oak:1.2.32]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:244)
[org.apache.felix.scr:2.1.26]
at
org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41)
[org.apache.felix.scr:2.1.26]
at
org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:685)
[org.apache.felix.scr:2.1.26]
at
org.apache.felix.scr.impl.inject.methods.BaseMethod$NotResolved.invoke(BaseMethod.java:639)
[org.apache.felix.scr:2.1.26]
at
org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:529)
[org.apache.felix.scr:2.1.26]
at
org.apache.felix.scr.impl.inject.methods.BindMethod.invoke(BindMethod.java:42)
[org.apache.felix.scr:2.1.26]
at
org.apache.felix.scr.impl.manager.DependencyManager.invokeUpdatedMethod(DependencyManager.java:2135)
[org.apache.felix.scr:2.1.26]
at
org.apache.felix.scr.impl.manager.SingleComponentManager.invokeUpdatedMethod(SingleComponentManager.java:454)
[org.apache.felix.scr:2.1.26]
at
org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.modifiedService(DependencyManager.java:374)
[org.apache.felix.scr:2.1.26]
at
org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.modifiedService(DependencyManager.java:301)
[org.apache.felix.scr:2.1.26]
at

[jira] [Commented] (SLING-10321) Deprecate service mapping by userID

2021-04-22 Thread Angela Schreiber (Jira)


[ 
https://issues.apache.org/jira/browse/SLING-10321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17327160#comment-17327160
 ] 

Angela Schreiber commented on SLING-10321:
--

Sling Site updated to reflect the deprecation together with fixing SLING-10324.

> Deprecate service mapping by userID
> ---
>
> Key: SLING-10321
> URL: https://issues.apache.org/jira/browse/SLING-10321
> Project: Sling
>  Issue Type: Improvement
>  Components: Service User Mapper
>Affects Versions: Service User Mapper 1.5.2
>Reporter: Angela Schreiber
>Assignee: Angela Schreiber
>Priority: Major
> Fix For: Service User Mapper 1.5.4
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> [~cziegeler], [~kpauls], for security reasons I would like to deprecate the 
> old service user mapping by a single userID in favor of the new format that 
> takes one or multiple principal names.
> The new format allows to keep service permissions limited to service-users as 
> declared in the mapping and doesn't resolve declare or inherited group 
> permissions. This gives full control over the effective permissions granted 
> to each service and doesn't risk unrelated permission changes (e.g. to a base 
> group like 'everyone') impacting service security.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Resolved] (SLING-10324) ServiceUserMapper documentation is incomplete

2021-04-22 Thread Angela Schreiber (Jira)


 [ 
https://issues.apache.org/jira/browse/SLING-10324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Angela Schreiber resolved SLING-10324.
--
Resolution: Fixed

> ServiceUserMapper documentation is incomplete
> -
>
> Key: SLING-10324
> URL: https://issues.apache.org/jira/browse/SLING-10324
> Project: Sling
>  Issue Type: Bug
>  Components: Documentation
>Reporter: Angela Schreiber
>Assignee: Angela Schreiber
>Priority: Major
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> for SLING-10321 i was looking for the corresponding documentation and found 
> that the description of the {{ServiceUserMapper}} at 
> https://sling.apache.org/documentation/the-sling-engine/service-authentication.html#serviceusermapper
>  doesn't correctly reflect the current status of the {{ServiceUserMapper}}, 
> which first resolves mapping by principal names. In addition it doesn't 
> describe the validator interfaces and their effect.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[GitHub] [sling-site] anchela merged pull request #58: SLING-10324 : ServiceUserMapper documentation is incomplete

2021-04-22 Thread GitBox


anchela merged pull request #58:
URL: https://github.com/apache/sling-site/pull/58


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [sling-site] anchela commented on pull request #58: SLING-10324 : ServiceUserMapper documentation is incomplete

2021-04-22 Thread GitBox


anchela commented on pull request #58:
URL: https://github.com/apache/sling-site/pull/58#issuecomment-824596020


   @karlpauls , unless you have any concerns or objections, i would go ahead 
and merge the doc changes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org