You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (Created) (JIRA)" <ji...@apache.org> on 2011/11/22 10:42:39 UTC
[jira] [Created] (SLING-2296) Transient ResourceResolver bundle
build failure on Linux
Transient ResourceResolver bundle build failure on Linux
--------------------------------------------------------
Key: SLING-2296
URL: https://issues.apache.org/jira/browse/SLING-2296
Project: Sling
Issue Type: Bug
Components: JCR
Affects Versions: JCR Resource 2.0.10
Reporter: Felix Meschberger
Assignee: Felix Meschberger
Fix For: JCR Resource 2.1.0
Often times I get build failures of the JCR ResourceResolver Bundle:
testDefaultWorkspace(org.apache.sling.jcr.resource.internal.JcrResourceListenerTest): expected:<3> but was:<1>
testInWs2(org.apache.sling.jcr.resource.internal.JcrResourceListenerTest): expected:<3> but was:<1>
Looking and tracing the code it seems that the JcrResourceListener gets the JCR events and handles them correctly. But the sendOsgiEvent method does not actually forward the event. This is caused by the JcrResourceListener's internal resource resolver not (yet ?) knowing the added or changed resource and thus not being able to read it to get the resource type.
The sendOsgiEvent method should be modified to make sure the event is sent regardless of whether the resource type can be resolved or not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (SLING-2296) Transient ResourceResolver bundle
build failure on Linux
Posted by "Felix Meschberger (Reopened) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger reopened SLING-2296:
--------------------------------------
The fix is not entirely correct: If the event is for a jar:content node and the resource is available to the sendOsgiEvent method, the check is done whether it is an nt:file content but this has no consequence for the path set on the event.
This causes JSP changes to not be properly reflected and thus the JspScriptingTest.testChangingJsp (SLING-2297) to fail.
> Transient ResourceResolver bundle build failure on Linux
> --------------------------------------------------------
>
> Key: SLING-2296
> URL: https://issues.apache.org/jira/browse/SLING-2296
> Project: Sling
> Issue Type: Bug
> Components: JCR
> Affects Versions: JCR Resource 2.0.10
> Reporter: Felix Meschberger
> Assignee: Felix Meschberger
> Fix For: JCR Resource 2.1.0
>
>
> Often times I get build failures of the JCR ResourceResolver Bundle:
> testDefaultWorkspace(org.apache.sling.jcr.resource.internal.JcrResourceListenerTest): expected:<3> but was:<1>
> testInWs2(org.apache.sling.jcr.resource.internal.JcrResourceListenerTest): expected:<3> but was:<1>
> Looking and tracing the code it seems that the JcrResourceListener gets the JCR events and handles them correctly. But the sendOsgiEvent method does not actually forward the event. This is caused by the JcrResourceListener's internal resource resolver not (yet ?) knowing the added or changed resource and thus not being able to read it to get the resource type.
> The sendOsgiEvent method should be modified to make sure the event is sent regardless of whether the resource type can be resolved or not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (SLING-2296) Transient ResourceResolver bundle
build failure on Linux
Posted by "Felix Meschberger (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154984#comment-13154984 ]
Felix Meschberger commented on SLING-2296:
------------------------------------------
Committed a fix in Rev. 1204886. This also makes use of the sendOsgiEvent for removal events and thus consolidates the generation of the OSGi Event object in a single method.
> Transient ResourceResolver bundle build failure on Linux
> --------------------------------------------------------
>
> Key: SLING-2296
> URL: https://issues.apache.org/jira/browse/SLING-2296
> Project: Sling
> Issue Type: Bug
> Components: JCR
> Affects Versions: JCR Resource 2.0.10
> Reporter: Felix Meschberger
> Assignee: Felix Meschberger
> Fix For: JCR Resource 2.1.0
>
>
> Often times I get build failures of the JCR ResourceResolver Bundle:
> testDefaultWorkspace(org.apache.sling.jcr.resource.internal.JcrResourceListenerTest): expected:<3> but was:<1>
> testInWs2(org.apache.sling.jcr.resource.internal.JcrResourceListenerTest): expected:<3> but was:<1>
> Looking and tracing the code it seems that the JcrResourceListener gets the JCR events and handles them correctly. But the sendOsgiEvent method does not actually forward the event. This is caused by the JcrResourceListener's internal resource resolver not (yet ?) knowing the added or changed resource and thus not being able to read it to get the resource type.
> The sendOsgiEvent method should be modified to make sure the event is sent regardless of whether the resource type can be resolved or not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (SLING-2296) Transient ResourceResolver bundle
build failure on Linux
Posted by "Felix Meschberger (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155157#comment-13155157 ]
Felix Meschberger commented on SLING-2296:
------------------------------------------
Committed another fix in Rev. 1205007 which updates the path on the event properly for nt:file's content.
> Transient ResourceResolver bundle build failure on Linux
> --------------------------------------------------------
>
> Key: SLING-2296
> URL: https://issues.apache.org/jira/browse/SLING-2296
> Project: Sling
> Issue Type: Bug
> Components: JCR
> Affects Versions: JCR Resource 2.0.10
> Reporter: Felix Meschberger
> Assignee: Felix Meschberger
> Fix For: JCR Resource 2.1.0
>
>
> Often times I get build failures of the JCR ResourceResolver Bundle:
> testDefaultWorkspace(org.apache.sling.jcr.resource.internal.JcrResourceListenerTest): expected:<3> but was:<1>
> testInWs2(org.apache.sling.jcr.resource.internal.JcrResourceListenerTest): expected:<3> but was:<1>
> Looking and tracing the code it seems that the JcrResourceListener gets the JCR events and handles them correctly. But the sendOsgiEvent method does not actually forward the event. This is caused by the JcrResourceListener's internal resource resolver not (yet ?) knowing the added or changed resource and thus not being able to read it to get the resource type.
> The sendOsgiEvent method should be modified to make sure the event is sent regardless of whether the resource type can be resolved or not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (SLING-2296) Transient ResourceResolver bundle
build failure on Linux
Posted by "Felix Meschberger (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved SLING-2296.
--------------------------------------
Resolution: Fixed
Looks like the issue is now fixed. Thus resolving this issue again.
> Transient ResourceResolver bundle build failure on Linux
> --------------------------------------------------------
>
> Key: SLING-2296
> URL: https://issues.apache.org/jira/browse/SLING-2296
> Project: Sling
> Issue Type: Bug
> Components: JCR
> Affects Versions: JCR Resource 2.0.10
> Reporter: Felix Meschberger
> Assignee: Felix Meschberger
> Fix For: JCR Resource 2.1.0
>
>
> Often times I get build failures of the JCR ResourceResolver Bundle:
> testDefaultWorkspace(org.apache.sling.jcr.resource.internal.JcrResourceListenerTest): expected:<3> but was:<1>
> testInWs2(org.apache.sling.jcr.resource.internal.JcrResourceListenerTest): expected:<3> but was:<1>
> Looking and tracing the code it seems that the JcrResourceListener gets the JCR events and handles them correctly. But the sendOsgiEvent method does not actually forward the event. This is caused by the JcrResourceListener's internal resource resolver not (yet ?) knowing the added or changed resource and thus not being able to read it to get the resource type.
> The sendOsgiEvent method should be modified to make sure the event is sent regardless of whether the resource type can be resolved or not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (SLING-2296) Transient ResourceResolver bundle
build failure on Linux
Posted by "Felix Meschberger (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved SLING-2296.
--------------------------------------
Resolution: Fixed
The build failures are now fixed (thus the events are sent) and so this resolves this issue.
> Transient ResourceResolver bundle build failure on Linux
> --------------------------------------------------------
>
> Key: SLING-2296
> URL: https://issues.apache.org/jira/browse/SLING-2296
> Project: Sling
> Issue Type: Bug
> Components: JCR
> Affects Versions: JCR Resource 2.0.10
> Reporter: Felix Meschberger
> Assignee: Felix Meschberger
> Fix For: JCR Resource 2.1.0
>
>
> Often times I get build failures of the JCR ResourceResolver Bundle:
> testDefaultWorkspace(org.apache.sling.jcr.resource.internal.JcrResourceListenerTest): expected:<3> but was:<1>
> testInWs2(org.apache.sling.jcr.resource.internal.JcrResourceListenerTest): expected:<3> but was:<1>
> Looking and tracing the code it seems that the JcrResourceListener gets the JCR events and handles them correctly. But the sendOsgiEvent method does not actually forward the event. This is caused by the JcrResourceListener's internal resource resolver not (yet ?) knowing the added or changed resource and thus not being able to read it to get the resource type.
> The sendOsgiEvent method should be modified to make sure the event is sent regardless of whether the resource type can be resolved or not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (SLING-2296) Transient ResourceResolver bundle
build failure on Linux
Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler closed SLING-2296.
-----------------------------------
> Transient ResourceResolver bundle build failure on Linux
> --------------------------------------------------------
>
> Key: SLING-2296
> URL: https://issues.apache.org/jira/browse/SLING-2296
> Project: Sling
> Issue Type: Bug
> Components: JCR
> Affects Versions: JCR Resource 2.0.10
> Reporter: Felix Meschberger
> Assignee: Felix Meschberger
> Fix For: JCR Resource 2.1.0
>
>
> Often times I get build failures of the JCR ResourceResolver Bundle:
> testDefaultWorkspace(org.apache.sling.jcr.resource.internal.JcrResourceListenerTest): expected:<3> but was:<1>
> testInWs2(org.apache.sling.jcr.resource.internal.JcrResourceListenerTest): expected:<3> but was:<1>
> Looking and tracing the code it seems that the JcrResourceListener gets the JCR events and handles them correctly. But the sendOsgiEvent method does not actually forward the event. This is caused by the JcrResourceListener's internal resource resolver not (yet ?) knowing the added or changed resource and thus not being able to read it to get the resource type.
> The sendOsgiEvent method should be modified to make sure the event is sent regardless of whether the resource type can be resolved or not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira