[
https://issues.apache.org/jira/browse/SLING-4978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14725122#comment-14725122
]
Bertrand Delacretaz commented on SLING-4978:
--------------------------------------------
It looks like the RequestData.initResource() method does not get the {{;v=1.1}}
in request.getRequestURI() anymore - on the working instance
{{/system/console/requests}} says
{code}
1 TIMER_END{1,ResourceResolution}
URI=/sling-tests/1441101191118/1_1441101192151;v='1.1'.json resolves to
Resource=JcrNodeResource,
type=nt:frozenNode, superType=null,
path=/sling-tests/1441101191118/1_1441101192151;v='1.1'
{code}
Whereas on the Sling trunk it says
{code}
5058 TIMER_END{5058,ResourceResolution}
URI=/sling-tests/1441099914236/5_1441099915257.json resolves to
Resource=JcrNodeResource, type=nt:unstructured, superType=null,
path=/sling-tests/1441099914236/5_1441099915257
{code}
The URI= is {{getServletRequest().getRequestURI()}}, so for some reason the
{{;v=1.1}} is lost on trunk.
> VersionParameterTest integration test fails
> -------------------------------------------
>
> Key: SLING-4978
> URL: https://issues.apache.org/jira/browse/SLING-4978
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
> Priority: Minor
> Labels: sling-IT
>
> The launchpad/integration-tests VersionParameterTest currently fails, it
> passes with launchpad/builder at revision 1686223
> With current trunk it looks like the ;v=1.1 suffix has no effect, the error is
> {code}
> testVersionParameter(org.apache.sling.launchpad.webapp.integrationtest.VersionParameterTest)
> Time elapsed: 2.932 sec <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<v[2]> but was:<v[3]>
> at junit.framework.Assert.assertEquals(Assert.java:100)
> at junit.framework.Assert.assertEquals(Assert.java:107)
> at junit.framework.TestCase.assertEquals(TestCase.java:269)
> at
> org.apache.sling.launchpad.webapp.integrationtest.VersionParameterTest.testVersionParameter(VersionParameterTest.java:69)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)