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

Bertrand Delacretaz resolved SLING-6139.
----------------------------------------
    Resolution: Invalid

[~cziegeler] you're right, these tests pass at revision 1764466, sorry for the 
noise, marking this invalid.

I see other failures now however, see below. Are you still working on this 
resourceresolver stuff, or should I analyze more?

Running 
org.apache.sling.launchpad.webapp.integrationtest.ResourceResolverProxyTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 26.294 sec <<< 
FAILURE! - in 
org.apache.sling.launchpad.webapp.integrationtest.ResourceResolverProxyTest
runWriteableResourcesTest(org.apache.sling.launchpad.webapp.integrationtest.ResourceResolverProxyTest)
  Time elapsed: 26.247 sec  <<< FAILURE!
java.lang.AssertionError: 4 tests 
failed:[test_resolve_extension(org.apache.sling.launchpad.testservices.serversidetests.ResourceResolverTest):
 expected:</child/[grandchild].html> but was:</child/[enkel].html>, 
test_resolve_selectors_extension(org.apache.sling.launchpad.testservices.serversidetests.ResourceResolverTest):
 expected:</child/[grandchild].sel1.sel2.html> but 
was:</child/[enkel].sel1.sel2.html>, 
test_resolve(org.apache.sling.launchpad.testservices.serversidetests.ResourceResolverTest):
 expected:</child/[grandchild]> but was:</child/[enkel]>, 
test_resolve_with_sling_alias_limited_access(org.apache.sling.launchpad.testservices.serversidetests.ResourceResolverTest):
 expected:</child/[enkel]> but was:</child/[grandChild]>]
        at org.junit.Assert.fail(Assert.java:88)
        at 
org.apache.sling.launchpad.webapp.integrationtest.util.ServerSideTestClient.assertTestsPass(ServerSideTestClient.java:109)
        at 
org.apache.sling.launchpad.webapp.integrationtest.ResourceResolverProxyTest.runWriteableResourcesTest(ResourceResolverProxyTest.java:26)




> Updates to sling:alias property breaks aliases
> ----------------------------------------------
>
>                 Key: SLING-6139
>                 URL: https://issues.apache.org/jira/browse/SLING-6139
>             Project: Sling
>          Issue Type: Bug
>          Components: ResourceResolver
>            Reporter: Bertrand Delacretaz
>            Assignee: Bertrand Delacretaz
>
> I've found another issue with the MapEntries changes (I assume), see below 
> for the failure scenario. Tentatively assigning to Carsten.
> This is breaking the testResolveResourceAliasWithUpdate and 
> testResolveResourceAliasJcrContentWithUpdate tests in the 
> launchpad/testservices ResourceResolverTest - I will commit the below changes 
> in launchpad setup with those tests @Ignored as I need the tests to run with 
> the latest bundles for SLING-5135.
> h4. Failure scenario
> a) Adding both foo and bar aliases from scratch works
> {code}
> curl -u admin:admin -Ftitle=whatever http://localhost:8080/tmp
> curl -u admin:admin -X DELETE http://localhost:8080/tmp
> curl -u admin:admin -F"sling:alias=foo" -F"sling:alias=bar" 
> http://localhost:8080/tmp
> curl http://localhost:8080/bar.json ; echo
> curl http://localhost:8080/foo.json ; echo
> {code}
> b) Adding foo first and then updating to foo and bar breaks both foo and bar 
> aliases
> {code}
> curl -u admin:admin -Ftitle=whatever http://localhost:8080/tmp
> curl -u admin:admin -X DELETE http://localhost:8080/tmp
> curl -u admin:admin -F"sling:alias=foo" http://localhost:8080/tmp
> curl http://localhost:8080/foo.json ; echo
> curl -u admin:admin -F"sling:alias=foo" -F"sling:alias=bar" 
> http://localhost:8080/tmp
> # getting a 404 for both of these now
> curl http://localhost:8080/bar.json ; echo
> curl http://localhost:8080/foo.json ; echo
> {code}
> h4. Patch which uses the latest snapshots in launchpad
> With this patch the {{ResourceResolverTest}} mentioned above fails.
> {code}
> Index: launchpad/builder/src/main/provisioning/oak.txt
> ===================================================================
> --- launchpad/builder/src/main/provisioning/oak.txt   (revision 1764392)
> +++ launchpad/builder/src/main/provisioning/oak.txt   (working copy)
> @@ -42,7 +42,7 @@
>  # start the Oak server instance after all components have been configured
>  # and started to avoid restarting that component ( see SLING-4556 )
>  [artifacts startLevel=16]
> -    org.apache.sling/org.apache.sling.jcr.oak.server/1.1.0
> +    org.apache.sling/org.apache.sling.jcr.oak.server/1.1.1-SNAPSHOT
>  
>  [configurations]
>    org.apache.felix.jaas.Configuration.factory-GuestLoginModule
> Index: launchpad/builder/src/main/provisioning/sling.txt
> ===================================================================
> --- launchpad/builder/src/main/provisioning/sling.txt (revision 1764392)
> +++ launchpad/builder/src/main/provisioning/sling.txt (working copy)
> @@ -59,7 +59,7 @@
>      org.apache.sling/org.apache.sling.installer.console/1.0.1-SNAPSHOT
>      org.apache.sling/org.apache.sling.installer.provider.jcr/3.1.19-SNAPSHOT
>      org.apache.sling/org.apache.sling.jcr.contentloader/2.1.11-SNAPSHOT
> -    org.apache.sling/org.apache.sling.jcr.resource/2.8.0
> +    org.apache.sling/org.apache.sling.jcr.resource/2.8.1-SNAPSHOT
>      org.apache.sling/org.apache.sling.launchpad.content/2.0.8
>      org.apache.sling/org.apache.sling.models.api/1.2.2
>      org.apache.sling/org.apache.sling.models.impl/1.2.8
> @@ -104,7 +104,7 @@
>  [artifacts startLevel=15]
>      org.apache.sling/org.apache.sling.jcr.jcr-wrapper/2.0.0
>      org.apache.sling/org.apache.sling.jcr.api/2.4.0
> -    org.apache.sling/org.apache.sling.jcr.base/2.4.0
> +    org.apache.sling/org.apache.sling.jcr.base/2.4.1-SNAPSHOT
>      org.apache.sling/org.apache.sling.jcr.registration/1.0.2
>      org.apache.jackrabbit/jackrabbit-api/${jackrabbit.version}
>      org.apache.jackrabbit/jackrabbit-jcr-commons/${jackrabbit.version}
> Index: launchpad/testing/src/main/provisioning/model.txt
> ===================================================================
> --- launchpad/testing/src/main/provisioning/model.txt (revision 1764392)
> +++ launchpad/testing/src/main/provisioning/model.txt (working copy)
> @@ -32,6 +32,9 @@
>      # Set the servlet resolver's cache size to zero for testing
>      servletresolver.cacheSize=I"0"
>  
> +  org.apache.sling.jcr.base.internal.LoginAdminWhitelistImpl
> +    whitelist.regexp="org.apache.sling.(launchpad|junit).*"
> +
>  [settings]
>    org.apache.sling.commons.log.julenabled=true
>    
> @@ -41,4 +44,4 @@
>   [:repoinit]
>  create path /repoinit/provisioningModelTest
>  
> -create service user provisioningModelUser
> \ No newline at end of file
> +create service user provisioningModelUser
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to