[
https://issues.apache.org/jira/browse/SLING-3076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bertrand Delacretaz resolved SLING-3076.
----------------------------------------
Resolution: Fixed
Fixed in http://svn.apache.org/r1524703 by refreshing the long-lived Session
that ScriptableTestsProvider uses, before querying it.
This wasn't a problem with Jackrabbit, but Oak handles that differently.
> Missing session.refresh() on long-lived Session in ScriptableTestsProvider
> --------------------------------------------------------------------------
>
> Key: SLING-3076
> URL: https://issues.apache.org/jira/browse/SLING-3076
> Project: Sling
> Issue Type: Bug
> Components: Oak
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
> Priority: Minor
>
> The /jcr:root/apps//element(*, sling:Test) query in the
> ScriptableTestsProvider class returns nothing even though we have
> curl -u admin:admin
> http://localhost:8080/apps/testing/sling/scripted-tests/resourceresolver-api.tidy.json
> {
> "jcr:primaryType": "sling:Folder",
> "jcr:mixinTypes": ["sling:Test"],
> "jcr:createdBy": "admin",
> "jcr:created": "Tue Sep 17 2013 17:20:55 GMT+0200",
> "sling:resourceType": "testing/sling/scripted-tests/resourceresolver-api"
> }
> I have added a similar test to the SLING-2788 SlingRepositoryITBase and it
> passes, but that's but using a builtin mixin (mix:title), I'll need to verify
> that with a custom mixin.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira