junit.framework.AssertionFailedError: Xml result does not match expected xml (reviews-v1/changeset.xml) Actual document: <?xml version="1.0" encoding="UTF-8"?> <detailedReviewData> <allowReviewersToJoin>false</allowReviewersToJoin> <author> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </author> <createDate>_DATE_</createDate> <creator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </creator> <metricsVersion>1</metricsVersion> <moderator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </moderator> <name>Changeset Review</name> <permaId> <id>CR-2</id> </permaId> <projectKey>CR</projectKey> <state>Review</state> <type>REVIEW</type> <stats/> <actions/> <generalComments/> <reviewItems> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>1</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file1</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</toContentUrl> <toPath>branches/iterativeReviewsBranch/file1</toPath> <toRevision>14</toRevision> </reviewItem> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>1</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file2</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</toContentUrl> <toPath>branches/iterativeReviewsBranch/file2</toPath> <toRevision>14</toRevision> </reviewItem> </reviewItems> <reviewers/> <transitions/> <versionedComments/> </detailedReviewData> Expected document: <?xml version="1.0" encoding="UTF-8"?> <detailedReviewData> <allowReviewersToJoin>false</allowReviewersToJoin> <author> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </author> <createDate>_DATE_</createDate> <creator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </creator> <metricsVersion>1</metricsVersion> <moderator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </moderator> <name>Changeset Review</name> <permaId> <id>CR-2</id> </permaId> <projectKey>CR</projectKey> <state>Review</state> <type>REVIEW</type> <stats/> <actions/> <generalComments/> <reviewItems> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file1</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</toContentUrl> <toPath>branches/iterativeReviewsBranch/file1</toPath> <toRevision>14</toRevision> </reviewItem> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file2</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</toContentUrl> <toPath>branches/iterativeReviewsBranch/file2</toPath> <toRevision>14</toRevision> </reviewItem> </reviewItems> <reviewers/> <transitions/> <versionedComments/> </detailedReviewData>

Atlassian JIRA | Joe Xie [atlassian] | 6 years ago
  1. 0

    from: https://bamboo.extranet.atlassian.com/browse/CRUCHG-CRU2-FUNC2-10/test/case/202247509 Adding a changeset to a review from the changeset dialog, when the changeset has never been added before to another review via the activity stream, will cause the line count for the file revision in the changeset to be wrong. This shows up in a rest request (but not the UI) - see the {{<changedLines>}} field below - should be 3, but is 1 for some of the revisions. To reproduce: # start a fresh server, with no reviews # create a new review, via the masthead, so that it is a blank review # click on add changeset in the review details dialog, and pick a changeset to add # perform a rest call to {{http://localhost:6060/foo/rest-service/reviews-v1/CR-1/details}} # see that the field {{<changedLines>}} is not correct for some of the revisions. ----- {noformat}junit.framework.AssertionFailedError: Xml result does not match expected xml (reviews-v1/changeset.xml) Actual document: <?xml version="1.0" encoding="UTF-8"?> <detailedReviewData> <allowReviewersToJoin>false</allowReviewersToJoin> <author> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </author> <createDate>_DATE_</createDate> <creator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </creator> <metricsVersion>1</metricsVersion> <moderator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </moderator> <name>Changeset Review</name> <permaId> <id>CR-2</id> </permaId> <projectKey>CR</projectKey> <state>Review</state> <type>REVIEW</type> <stats/> <actions/> <generalComments/> <reviewItems> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>1</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file1</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</toContentUrl> <toPath>branches/iterativeReviewsBranch/file1</toPath> <toRevision>14</toRevision> </reviewItem> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>1</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file2</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</toContentUrl> <toPath>branches/iterativeReviewsBranch/file2</toPath> <toRevision>14</toRevision> </reviewItem> </reviewItems> <reviewers/> <transitions/> <versionedComments/> </detailedReviewData> Expected document: <?xml version="1.0" encoding="UTF-8"?> <detailedReviewData> <allowReviewersToJoin>false</allowReviewersToJoin> <author> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </author> <createDate>_DATE_</createDate> <creator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </creator> <metricsVersion>1</metricsVersion> <moderator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </moderator> <name>Changeset Review</name> <permaId> <id>CR-2</id> </permaId> <projectKey>CR</projectKey> <state>Review</state> <type>REVIEW</type> <stats/> <actions/> <generalComments/> <reviewItems> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file1</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</toContentUrl> <toPath>branches/iterativeReviewsBranch/file1</toPath> <toRevision>14</toRevision> </reviewItem> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file2</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</toContentUrl> <toPath>branches/iterativeReviewsBranch/file2</toPath> <toRevision>14</toRevision> </reviewItem> </reviewItems> <reviewers/> <transitions/> <versionedComments/> </detailedReviewData> at com.atlassian.fecru.utils.XMLTestUtils.assertXmlDocumentEqual(XMLTestUtils.java:84) at com.atlassian.fecru.utils.XMLTestUtils.assertXmlFileEqual(XMLTestUtils.java:114) at com.atlassian.crucible.spi.rpc.RestServiceTestBase.assertRequestReturnsXml(RestServiceTestBase.java:85) at com.atlassian.crucible.spi.rpc.RestReviewServiceTest.testAddChangeset(RestReviewServiceTest.java:685) at com.atlassian.functestplugin.JUnitRunnerService.runSingleTest(JUnitRunnerService.java:232) at com.atlassian.functestplugin.JUnitRunnerService.access$000(JUnitRunnerService.java:54) at com.atlassian.functestplugin.JUnitRunnerService$2.write(JUnitRunnerService.java:154) at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:68) at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:55) at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:254) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:689) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:612) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:603) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425) at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:128) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:689) at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:62) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.plugins.rest.module.servlet.RestServletUtilsUpdaterFilter.doFilterInternal(RestServletUtilsUpdaterFilter.java:26) at com.atlassian.plugins.rest.module.servlet.RestServletUtilsUpdaterFilter.doFilter(RestServletUtilsUpdaterFilter.java:40) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.atlassian.crucible.filters.CrucibleFilter.doFilter(CrucibleFilter.java:142) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.cenqua.fisheye.web.filters.TotalityFilter.doFilter(TotalityFilter.java:263) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:98) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:71) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:78) at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:154) at com.cenqua.fisheye.web.filters.CustomIncludableGzipFilter.doFilter(CustomIncludableGzipFilter.java:21) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.cenqua.fisheye.web.filters.ProductInfoFilter.doFilter(ProductInfoFilter.java:36) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.cenqua.fisheye.web.filters.UpfrontFilter.doFilter(UpfrontFilter.java:52) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.atlassian.fecru.profiling.ProfilingServletFilter.doFilter(ProfilingServletFilter.java:73) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451){noformat}

    Atlassian JIRA | 6 years ago | Joe Xie [atlassian]
    junit.framework.AssertionFailedError: Xml result does not match expected xml (reviews-v1/changeset.xml) Actual document: <?xml version="1.0" encoding="UTF-8"?> <detailedReviewData> <allowReviewersToJoin>false</allowReviewersToJoin> <author> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </author> <createDate>_DATE_</createDate> <creator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </creator> <metricsVersion>1</metricsVersion> <moderator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </moderator> <name>Changeset Review</name> <permaId> <id>CR-2</id> </permaId> <projectKey>CR</projectKey> <state>Review</state> <type>REVIEW</type> <stats/> <actions/> <generalComments/> <reviewItems> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>1</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file1</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</toContentUrl> <toPath>branches/iterativeReviewsBranch/file1</toPath> <toRevision>14</toRevision> </reviewItem> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>1</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file2</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</toContentUrl> <toPath>branches/iterativeReviewsBranch/file2</toPath> <toRevision>14</toRevision> </reviewItem> </reviewItems> <reviewers/> <transitions/> <versionedComments/> </detailedReviewData> Expected document: <?xml version="1.0" encoding="UTF-8"?> <detailedReviewData> <allowReviewersToJoin>false</allowReviewersToJoin> <author> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </author> <createDate>_DATE_</createDate> <creator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </creator> <metricsVersion>1</metricsVersion> <moderator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </moderator> <name>Changeset Review</name> <permaId> <id>CR-2</id> </permaId> <projectKey>CR</projectKey> <state>Review</state> <type>REVIEW</type> <stats/> <actions/> <generalComments/> <reviewItems> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file1</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</toContentUrl> <toPath>branches/iterativeReviewsBranch/file1</toPath> <toRevision>14</toRevision> </reviewItem> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file2</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</toContentUrl> <toPath>branches/iterativeReviewsBranch/file2</toPath> <toRevision>14</toRevision> </reviewItem> </reviewItems> <reviewers/> <transitions/> <versionedComments/> </detailedReviewData>
  2. 0

    from: https://bamboo.extranet.atlassian.com/browse/CRUCHG-CRU2-FUNC2-10/test/case/202247509 Adding a changeset to a review from the changeset dialog, when the changeset has never been added before to another review via the activity stream, will cause the line count for the file revision in the changeset to be wrong. This shows up in a rest request (but not the UI) - see the {{<changedLines>}} field below - should be 3, but is 1 for some of the revisions. To reproduce: # start a fresh server, with no reviews # create a new review, via the masthead, so that it is a blank review # click on add changeset in the review details dialog, and pick a changeset to add # perform a rest call to {{http://localhost:6060/foo/rest-service/reviews-v1/CR-1/details}} # see that the field {{<changedLines>}} is not correct for some of the revisions. ----- {noformat}junit.framework.AssertionFailedError: Xml result does not match expected xml (reviews-v1/changeset.xml) Actual document: <?xml version="1.0" encoding="UTF-8"?> <detailedReviewData> <allowReviewersToJoin>false</allowReviewersToJoin> <author> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </author> <createDate>_DATE_</createDate> <creator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </creator> <metricsVersion>1</metricsVersion> <moderator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </moderator> <name>Changeset Review</name> <permaId> <id>CR-2</id> </permaId> <projectKey>CR</projectKey> <state>Review</state> <type>REVIEW</type> <stats/> <actions/> <generalComments/> <reviewItems> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>1</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file1</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</toContentUrl> <toPath>branches/iterativeReviewsBranch/file1</toPath> <toRevision>14</toRevision> </reviewItem> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>1</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file2</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</toContentUrl> <toPath>branches/iterativeReviewsBranch/file2</toPath> <toRevision>14</toRevision> </reviewItem> </reviewItems> <reviewers/> <transitions/> <versionedComments/> </detailedReviewData> Expected document: <?xml version="1.0" encoding="UTF-8"?> <detailedReviewData> <allowReviewersToJoin>false</allowReviewersToJoin> <author> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </author> <createDate>_DATE_</createDate> <creator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </creator> <metricsVersion>1</metricsVersion> <moderator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </moderator> <name>Changeset Review</name> <permaId> <id>CR-2</id> </permaId> <projectKey>CR</projectKey> <state>Review</state> <type>REVIEW</type> <stats/> <actions/> <generalComments/> <reviewItems> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file1</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</toContentUrl> <toPath>branches/iterativeReviewsBranch/file1</toPath> <toRevision>14</toRevision> </reviewItem> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file2</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</toContentUrl> <toPath>branches/iterativeReviewsBranch/file2</toPath> <toRevision>14</toRevision> </reviewItem> </reviewItems> <reviewers/> <transitions/> <versionedComments/> </detailedReviewData> at com.atlassian.fecru.utils.XMLTestUtils.assertXmlDocumentEqual(XMLTestUtils.java:84) at com.atlassian.fecru.utils.XMLTestUtils.assertXmlFileEqual(XMLTestUtils.java:114) at com.atlassian.crucible.spi.rpc.RestServiceTestBase.assertRequestReturnsXml(RestServiceTestBase.java:85) at com.atlassian.crucible.spi.rpc.RestReviewServiceTest.testAddChangeset(RestReviewServiceTest.java:685) at com.atlassian.functestplugin.JUnitRunnerService.runSingleTest(JUnitRunnerService.java:232) at com.atlassian.functestplugin.JUnitRunnerService.access$000(JUnitRunnerService.java:54) at com.atlassian.functestplugin.JUnitRunnerService$2.write(JUnitRunnerService.java:154) at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:68) at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:55) at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:254) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:689) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:612) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:603) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425) at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:128) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:689) at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:62) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.plugins.rest.module.servlet.RestServletUtilsUpdaterFilter.doFilterInternal(RestServletUtilsUpdaterFilter.java:26) at com.atlassian.plugins.rest.module.servlet.RestServletUtilsUpdaterFilter.doFilter(RestServletUtilsUpdaterFilter.java:40) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.atlassian.crucible.filters.CrucibleFilter.doFilter(CrucibleFilter.java:142) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.cenqua.fisheye.web.filters.TotalityFilter.doFilter(TotalityFilter.java:263) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:98) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:71) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:78) at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:154) at com.cenqua.fisheye.web.filters.CustomIncludableGzipFilter.doFilter(CustomIncludableGzipFilter.java:21) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.cenqua.fisheye.web.filters.ProductInfoFilter.doFilter(ProductInfoFilter.java:36) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.cenqua.fisheye.web.filters.UpfrontFilter.doFilter(UpfrontFilter.java:52) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at com.atlassian.fecru.profiling.ProfilingServletFilter.doFilter(ProfilingServletFilter.java:73) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451){noformat}

    Atlassian JIRA | 6 years ago | Joe Xie [atlassian]
    junit.framework.AssertionFailedError: Xml result does not match expected xml (reviews-v1/changeset.xml) Actual document: <?xml version="1.0" encoding="UTF-8"?> <detailedReviewData> <allowReviewersToJoin>false</allowReviewersToJoin> <author> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </author> <createDate>_DATE_</createDate> <creator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </creator> <metricsVersion>1</metricsVersion> <moderator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </moderator> <name>Changeset Review</name> <permaId> <id>CR-2</id> </permaId> <projectKey>CR</projectKey> <state>Review</state> <type>REVIEW</type> <stats/> <actions/> <generalComments/> <reviewItems> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>1</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file1</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</toContentUrl> <toPath>branches/iterativeReviewsBranch/file1</toPath> <toRevision>14</toRevision> </reviewItem> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>1</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file2</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</toContentUrl> <toPath>branches/iterativeReviewsBranch/file2</toPath> <toRevision>14</toRevision> </reviewItem> </reviewItems> <reviewers/> <transitions/> <versionedComments/> </detailedReviewData> Expected document: <?xml version="1.0" encoding="UTF-8"?> <detailedReviewData> <allowReviewersToJoin>false</allowReviewersToJoin> <author> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </author> <createDate>_DATE_</createDate> <creator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </creator> <metricsVersion>1</metricsVersion> <moderator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </moderator> <name>Changeset Review</name> <permaId> <id>CR-2</id> </permaId> <projectKey>CR</projectKey> <state>Review</state> <type>REVIEW</type> <stats/> <actions/> <generalComments/> <reviewItems> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file1</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</toContentUrl> <toPath>branches/iterativeReviewsBranch/file1</toPath> <toRevision>14</toRevision> </reviewItem> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file2</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</toContentUrl> <toPath>branches/iterativeReviewsBranch/file2</toPath> <toRevision>14</toRevision> </reviewItem> </reviewItems> <reviewers/> <transitions/> <versionedComments/> </detailedReviewData>
  3. 0

    See for example: https://bamboo.extranet.atlassian.com/browse/JST-JST-JOB1-71/test/case/186621214 {noformat} junit.framework.AssertionFailedError: Expected text not found in current page: [The quick brown fox jumps over the lazy dog] Page content was: [[#COMNOTQWUS-1] Issue Summary - jWebTest JIRA installation Joe Test Administrator Update Status... Personal Space Profile Administration Log Out History Loading... Name of COMNOTQWUS Test View All Projects Issues Wiki Source Reviews Builds Dashboards Access more options (Alt+Shift+d) Issues Access more options (Alt+Shift+i) Agile Access more options Planning Board Task Board Chart Board Released Board Tempo Access more options Timesheet Worklogs Report About Tempo Administer project Quick Search Search Create new issue Keyboard Shortcuts Selected Project Name of COMNOTQWUS Name of COMNOTQWUS COMNOTQWUS-1 Issue Summary Edit - COMNOTQWUS-1Edit Assign Comment Log Work More ActionsMore Planning Board Task Board Log Work Attach Files Attach Screenshot Add Gliffy Diagram Voters Watch Issue Watchers Move Clone Labels Delete Start Progress Resolve Issue WorkflowMore Close Issue Views XML Word Printable Details Type: Bug Status: Open Priority: Major Resolution: Unresolved Affects Version/s: None Fix Version/s: None Component/s: None Labels: None Labels Activity All Comments Work Log History Activity Stream Transitions Source Reviews Builds There are no comments yet on this issue. Comment preview wiki markup help All Users Viewable by All Users Add Cancel Comment People Assignee: Joe Test Administrator Reporter: Joe Test Administrator Vote (0) Watch (0) Dates Created: Today 4:41 AM Updated: Today 4:41 AM Powered by JIRA Studio 104 | Terms of Use | Bug/feature request | Request Support | Help/Documentation | JIRA Studio Blog | Twitter @JIRAStudio] junit.framework.AssertionFailedError: Expected text not found in current page: [The quick brown fox jumps over the lazy dog] Page content was: [[#COMNOTQWUS-1] Issue Summary - jWebTest JIRA installation Joe Test Administrator Update Status... Personal Space Profile Administration Log Out History Loading... Name of COMNOTQWUS Test View All Projects Issues Wiki Source Reviews Builds Dashboards Access more options (Alt+Shift+d) Issues Access more options (Alt+Shift+i) Agile Access more options Planning Board Task Board Chart Board Released Board Tempo Access more options Timesheet Worklogs Report About Tempo Administer project Quick Search Search Create new issue Keyboard Shortcuts Selected Project Name of COMNOTQWUS Name of COMNOTQWUS COMNOTQWUS-1 Issue Summary Edit - COMNOTQWUS-1Edit Assign Comment Log Work More ActionsMore Planning Board Task Board Log Work Attach Files Attach Screenshot Add Gliffy Diagram Voters Watch Issue Watchers Move Clone Labels Delete Start Progress Resolve Issue WorkflowMore Close Issue Views XML Word Printable Details Type: Bug Status: Open Priority: Major Resolution: Unresolved Affects Version/s: None Fix Version/s: None Component/s: None Labels: None Labels Activity All Comments Work Log History Activity Stream Transitions Source Reviews Builds There are no comments yet on this issue. Comment preview wiki markup help All Users Viewable by All Users Add Cancel Comment People Assignee: Joe Test Administrator Reporter: Joe Test Administrator Vote (0) Watch (0) Dates Created: Today 4:41 AM Updated: Today 4:41 AM Powered by JIRA Studio 104 | Terms of Use | Bug/feature request | Request Support | Help/Documentation | JIRA Studio Blog | Twitter @JIRAStudio] at junit.framework.Assert.fail(Assert.java:47) at net.sourceforge.jwebunit.junit.WebTester.assertTextPresent(WebTester.java:442) at com.atlassian.studio.livetest.PrintingPageWebTester.assertTextPresent(PrintingPageWebTester.java:144) at com.atlassian.studio.functest.tests.group1.TestCommitNotifications.testComment(TestCommitNotifications.java:63) {noformat} The problem is that the test contains a race condition: {code:java} private void commitChange(final User user, final String commitMessage) throws Exception { WebTesterUtils.setApplication(webTester, Application.FISHEYE); SvnUtils.commitFiles(user.getUserName(), user.getPassword(), projectName, commitMessage, new SvnSetup(StudioFuncTest.getInstance()).getUrl(), "Test" + System.currentTimeMillis() + ".java"); new FisheyeSetup(StudioFuncTest.getInstance()).scanRepository(projectName); // Wait 1 second for the scan to complete and for the commit notifications to be processed on // JIRA Thread.sleep(1000); WebTesterUtils.setApplication(webTester, Application.JIRA); } {code} Sleeping for a second doesn't guarantee that the scan actually completed.

    Atlassian JIRA | 6 years ago | Tim Moore [Atlassian]
    junit.framework.AssertionFailedError: Expected text not found in current page: [The quick brown fox jumps over the lazy dog] Page content was: [[#COMNOTQWUS-1] Issue Summary - jWebTest JIRA installation Joe Test Administrator Update Status... Personal Space Profile Administration Log Out History Loading... Name of COMNOTQWUS Test View All Projects Issues Wiki Source Reviews Builds Dashboards Access more options (Alt+Shift+d) Issues Access more options (Alt+Shift+i) Agile Access more options Planning Board Task Board Chart Board Released Board Tempo Access more options Timesheet Worklogs Report About Tempo Administer project Quick Search Search Create new issue Keyboard Shortcuts Selected Project Name of COMNOTQWUS Name of COMNOTQWUS COMNOTQWUS-1 Issue Summary Edit - COMNOTQWUS-1Edit Assign Comment Log Work More ActionsMore Planning Board Task Board Log Work Attach Files Attach Screenshot Add Gliffy Diagram Voters Watch Issue Watchers Move Clone Labels Delete Start Progress Resolve Issue WorkflowMore Close Issue Views XML Word Printable Details Type: Bug Status: Open Priority: Major Resolution: Unresolved Affects Version/s: None Fix Version/s: None Component/s: None Labels: None Labels Activity All Comments Work Log History Activity Stream Transitions Source Reviews Builds There are no comments yet on this issue. Comment preview wiki markup help All Users Viewable by All Users Add Cancel Comment People Assignee: Joe Test Administrator Reporter: Joe Test Administrator Vote (0) Watch (0) Dates Created: Today 4:41 AM Updated: Today 4:41 AM Powered by JIRA Studio 104 | Terms of Use | Bug/feature request | Request Support | Help/Documentation | JIRA Studio Blog | Twitter @JIRAStudio]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    See for example: https://bamboo.extranet.atlassian.com/browse/JST-JST-JOB1-71/test/case/186621214 {noformat} junit.framework.AssertionFailedError: Expected text not found in current page: [The quick brown fox jumps over the lazy dog] Page content was: [[#COMNOTQWUS-1] Issue Summary - jWebTest JIRA installation Joe Test Administrator Update Status... Personal Space Profile Administration Log Out History Loading... Name of COMNOTQWUS Test View All Projects Issues Wiki Source Reviews Builds Dashboards Access more options (Alt+Shift+d) Issues Access more options (Alt+Shift+i) Agile Access more options Planning Board Task Board Chart Board Released Board Tempo Access more options Timesheet Worklogs Report About Tempo Administer project Quick Search Search Create new issue Keyboard Shortcuts Selected Project Name of COMNOTQWUS Name of COMNOTQWUS COMNOTQWUS-1 Issue Summary Edit - COMNOTQWUS-1Edit Assign Comment Log Work More ActionsMore Planning Board Task Board Log Work Attach Files Attach Screenshot Add Gliffy Diagram Voters Watch Issue Watchers Move Clone Labels Delete Start Progress Resolve Issue WorkflowMore Close Issue Views XML Word Printable Details Type: Bug Status: Open Priority: Major Resolution: Unresolved Affects Version/s: None Fix Version/s: None Component/s: None Labels: None Labels Activity All Comments Work Log History Activity Stream Transitions Source Reviews Builds There are no comments yet on this issue. Comment preview wiki markup help All Users Viewable by All Users Add Cancel Comment People Assignee: Joe Test Administrator Reporter: Joe Test Administrator Vote (0) Watch (0) Dates Created: Today 4:41 AM Updated: Today 4:41 AM Powered by JIRA Studio 104 | Terms of Use | Bug/feature request | Request Support | Help/Documentation | JIRA Studio Blog | Twitter @JIRAStudio] junit.framework.AssertionFailedError: Expected text not found in current page: [The quick brown fox jumps over the lazy dog] Page content was: [[#COMNOTQWUS-1] Issue Summary - jWebTest JIRA installation Joe Test Administrator Update Status... Personal Space Profile Administration Log Out History Loading... Name of COMNOTQWUS Test View All Projects Issues Wiki Source Reviews Builds Dashboards Access more options (Alt+Shift+d) Issues Access more options (Alt+Shift+i) Agile Access more options Planning Board Task Board Chart Board Released Board Tempo Access more options Timesheet Worklogs Report About Tempo Administer project Quick Search Search Create new issue Keyboard Shortcuts Selected Project Name of COMNOTQWUS Name of COMNOTQWUS COMNOTQWUS-1 Issue Summary Edit - COMNOTQWUS-1Edit Assign Comment Log Work More ActionsMore Planning Board Task Board Log Work Attach Files Attach Screenshot Add Gliffy Diagram Voters Watch Issue Watchers Move Clone Labels Delete Start Progress Resolve Issue WorkflowMore Close Issue Views XML Word Printable Details Type: Bug Status: Open Priority: Major Resolution: Unresolved Affects Version/s: None Fix Version/s: None Component/s: None Labels: None Labels Activity All Comments Work Log History Activity Stream Transitions Source Reviews Builds There are no comments yet on this issue. Comment preview wiki markup help All Users Viewable by All Users Add Cancel Comment People Assignee: Joe Test Administrator Reporter: Joe Test Administrator Vote (0) Watch (0) Dates Created: Today 4:41 AM Updated: Today 4:41 AM Powered by JIRA Studio 104 | Terms of Use | Bug/feature request | Request Support | Help/Documentation | JIRA Studio Blog | Twitter @JIRAStudio] at junit.framework.Assert.fail(Assert.java:47) at net.sourceforge.jwebunit.junit.WebTester.assertTextPresent(WebTester.java:442) at com.atlassian.studio.livetest.PrintingPageWebTester.assertTextPresent(PrintingPageWebTester.java:144) at com.atlassian.studio.functest.tests.group1.TestCommitNotifications.testComment(TestCommitNotifications.java:63) {noformat} The problem is that the test contains a race condition: {code:java} private void commitChange(final User user, final String commitMessage) throws Exception { WebTesterUtils.setApplication(webTester, Application.FISHEYE); SvnUtils.commitFiles(user.getUserName(), user.getPassword(), projectName, commitMessage, new SvnSetup(StudioFuncTest.getInstance()).getUrl(), "Test" + System.currentTimeMillis() + ".java"); new FisheyeSetup(StudioFuncTest.getInstance()).scanRepository(projectName); // Wait 1 second for the scan to complete and for the commit notifications to be processed on // JIRA Thread.sleep(1000); WebTesterUtils.setApplication(webTester, Application.JIRA); } {code} Sleeping for a second doesn't guarantee that the scan actually completed.

    Atlassian JIRA | 6 years ago | Tim Moore [Atlassian]
    junit.framework.AssertionFailedError: Expected text not found in current page: [The quick brown fox jumps over the lazy dog] Page content was: [[#COMNOTQWUS-1] Issue Summary - jWebTest JIRA installation Joe Test Administrator Update Status... Personal Space Profile Administration Log Out History Loading... Name of COMNOTQWUS Test View All Projects Issues Wiki Source Reviews Builds Dashboards Access more options (Alt+Shift+d) Issues Access more options (Alt+Shift+i) Agile Access more options Planning Board Task Board Chart Board Released Board Tempo Access more options Timesheet Worklogs Report About Tempo Administer project Quick Search Search Create new issue Keyboard Shortcuts Selected Project Name of COMNOTQWUS Name of COMNOTQWUS COMNOTQWUS-1 Issue Summary Edit - COMNOTQWUS-1Edit Assign Comment Log Work More ActionsMore Planning Board Task Board Log Work Attach Files Attach Screenshot Add Gliffy Diagram Voters Watch Issue Watchers Move Clone Labels Delete Start Progress Resolve Issue WorkflowMore Close Issue Views XML Word Printable Details Type: Bug Status: Open Priority: Major Resolution: Unresolved Affects Version/s: None Fix Version/s: None Component/s: None Labels: None Labels Activity All Comments Work Log History Activity Stream Transitions Source Reviews Builds There are no comments yet on this issue. Comment preview wiki markup help All Users Viewable by All Users Add Cancel Comment People Assignee: Joe Test Administrator Reporter: Joe Test Administrator Vote (0) Watch (0) Dates Created: Today 4:41 AM Updated: Today 4:41 AM Powered by JIRA Studio 104 | Terms of Use | Bug/feature request | Request Support | Help/Documentation | JIRA Studio Blog | Twitter @JIRAStudio]
  6. 0

    TestCommitNotifications.testLogWorkNoComment(): junit.framework.AssertionFailedError: Expected text not found in current page: [3 hours, 2 minutes] Page content was: [[#COMNOTDYAR-2] Issue Summary - jWebTest JIRA installation Joe Test Administrator Update Status... Personal Space Profile Administration Log Out History Loading... Name of COMNOTDYAR Test View All Projects Issues Wiki Source Reviews Builds Dashboards Access more options (Alt+Shift+d) Projects Access more options (Alt+Shift+p) Issues Access more options (Alt+Shift+i) Agile Access more options Planning Board Task Board Chart Board Released Board Tempo Access more options Timesheet Report About Tempo Administration Access more options (Alt+Shift+a) Administer project Quick Search Search Create new issue Name of COMNOTDYAR Name of COMNOTDYAR COMNOTDYAR-2 Issue Summary Edit - COMNOTDYAR-2Edit Assign Comment More ActionsMore Planning Board Task Board Log Work Attach Files Attach Screenshot Voters Watch Issue Watchers Move Clone Labels Delete Start Progress Resolve Issue WorkflowMore Close Issue Views XML Word Printable Details Type: Bug Status: Open Priority: Major Resolution: Unresolved Affects Version/s: None Fix Version/s: None Component/s: None Labels: None Labels Activity Ascending order - Click to sort in descending order All Comments Work Log History Activity Tempo Transitions Source Reviews Builds No work has yet been logged on this issue. Comment preview wiki markup help All Users Viewable by All Users Add Cancel Comment People Assignee: Joe Test Administrator Reporter: Joe Test Administrator Vote (0) Watch (0) Dates Created: Today 5:41 PM Updated: Today 5:41 PM Powered by JIRA Studio 2.3 | Terms of Use | Bug/feature request | Request Support | Help/Documentation | JIRA Studio Blog | Twitter @JIRAStudio] at junit.framework.Assert.fail(Assert.java:47) at net.sourceforge.jwebunit.junit.WebTester.assertTextPresent(WebTester.java:442) at com.atlassian.studio.livetest.PrintingPageWebTester.assertTextPresent(PrintingPageWebTester.java:118) at com.atlassian.studio.functest.TestCommitNotifications.testLogWorkNoComment(TestCommitNotifications.java:73) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:74) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) ... Removed 24 stack frames TestCommitNotifications. testLogWorkWithComment(): junit.framework.AssertionFailedError: Expected text not found in current page: [3 hours, 2 minutes] Page content was: [[#COMNOTDYAR-3] Issue Summary - jWebTest JIRA installation Joe Test Administrator Update Status... Personal Space Profile Administration Log Out History Loading... Name of COMNOTDYAR Test View All Projects Issues Wiki Source Reviews Builds Dashboards Access more options (Alt+Shift+d) Projects Access more options (Alt+Shift+p) Issues Access more options (Alt+Shift+i) Agile Access more options Planning Board Task Board Chart Board Released Board Tempo Access more options Timesheet Report About Tempo Administration Access more options (Alt+Shift+a) Administer project Quick Search Search Create new issue Name of COMNOTDYAR Name of COMNOTDYAR COMNOTDYAR-3 Issue Summary Edit - COMNOTDYAR-3Edit Assign Comment More ActionsMore Planning Board Task Board Log Work Attach Files Attach Screenshot Voters Watch Issue Watchers Move Clone Labels Delete Start Progress Resolve Issue WorkflowMore Close Issue Views XML Word Printable Details Type: Bug Status: Open Priority: Major Resolution: Unresolved Affects Version/s: None Fix Version/s: None Component/s: None Labels: None Labels Activity Ascending order - Click to sort in descending order All Comments Work Log History Activity Tempo Transitions Source Reviews Builds No work has yet been logged on this issue. Comment preview wiki markup help All Users Viewable by All Users Add Cancel Comment People Assignee: Joe Test Administrator Reporter: Joe Test Administrator Vote (0) Watch (0) Dates Created: Today 5:41 PM Updated: Today 5:41 PM Powered by JIRA Studio 2.3 | Terms of Use | Bug/feature request | Request Support | Help/Documentation | JIRA Studio Blog | Twitter @JIRAStudio] at junit.framework.Assert.fail(Assert.java:47) at net.sourceforge.jwebunit.junit.WebTester.assertTextPresent(WebTester.java:442) at com.atlassian.studio.livetest.PrintingPageWebTester.assertTextPresent(PrintingPageWebTester.java:118) at com.atlassian.studio.functest.TestCommitNotifications.testLogWorkWithComment(TestCommitNotifications.java:85) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:74) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) ... Removed 24 stack frames

    Atlassian JIRA | 6 years ago | Alex Wei [Atlassian]
    junit.framework.AssertionFailedError: Expected text not found in current page: [3 hours, 2 minutes] Page content was: [[#COMNOTDYAR-2] Issue Summary - jWebTest JIRA installation Joe Test Administrator Update Status... Personal Space Profile Administration Log Out History Loading... Name of COMNOTDYAR Test View All Projects Issues Wiki Source Reviews Builds Dashboards Access more options (Alt+Shift+d) Projects Access more options (Alt+Shift+p) Issues Access more options (Alt+Shift+i) Agile Access more options Planning Board Task Board Chart Board Released Board Tempo Access more options Timesheet Report About Tempo Administration Access more options (Alt+Shift+a) Administer project Quick Search Search Create new issue Name of COMNOTDYAR Name of COMNOTDYAR COMNOTDYAR-2 Issue Summary Edit - COMNOTDYAR-2Edit Assign Comment More ActionsMore Planning Board Task Board Log Work Attach Files Attach Screenshot Voters Watch Issue Watchers Move Clone Labels Delete Start Progress Resolve Issue WorkflowMore Close Issue Views XML Word Printable Details Type: Bug Status: Open Priority: Major Resolution: Unresolved Affects Version/s: None Fix Version/s: None Component/s: None Labels: None Labels Activity Ascending order - Click to sort in descending order All Comments Work Log History Activity Tempo Transitions Source Reviews Builds No work has yet been logged on this issue. Comment preview wiki markup help All Users Viewable by All Users Add Cancel Comment People Assignee: Joe Test Administrator Reporter: Joe Test Administrator Vote (0) Watch (0) Dates Created: Today 5:41 PM Updated: Today 5:41 PM Powered by JIRA Studio 2.3 | Terms of Use | Bug/feature request | Request Support | Help/Documentation | JIRA Studio Blog | Twitter @JIRAStudio]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      Xml result does not match expected xml (reviews-v1/changeset.xml) Actual document: <?xml version="1.0" encoding="UTF-8"?> <detailedReviewData> <allowReviewersToJoin>false</allowReviewersToJoin> <author> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </author> <createDate>_DATE_</createDate> <creator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </creator> <metricsVersion>1</metricsVersion> <moderator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </moderator> <name>Changeset Review</name> <permaId> <id>CR-2</id> </permaId> <projectKey>CR</projectKey> <state>Review</state> <type>REVIEW</type> <stats/> <actions/> <generalComments/> <reviewItems> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>1</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file1</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</toContentUrl> <toPath>branches/iterativeReviewsBranch/file1</toPath> <toRevision>14</toRevision> </reviewItem> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>1</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file2</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</toContentUrl> <toPath>branches/iterativeReviewsBranch/file2</toPath> <toRevision>14</toRevision> </reviewItem> </reviewItems> <reviewers/> <transitions/> <versionedComments/> </detailedReviewData> Expected document: <?xml version="1.0" encoding="UTF-8"?> <detailedReviewData> <allowReviewersToJoin>false</allowReviewersToJoin> <author> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </author> <createDate>_DATE_</createDate> <creator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </creator> <metricsVersion>1</metricsVersion> <moderator> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </moderator> <name>Changeset Review</name> <permaId> <id>CR-2</id> </permaId> <projectKey>CR</projectKey> <state>Review</state> <type>REVIEW</type> <stats/> <actions/> <generalComments/> <reviewItems> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file1</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file1</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file1</toContentUrl> <toPath>branches/iterativeReviewsBranch/file1</toPath> <toRevision>14</toRevision> </reviewItem> <reviewItem> <participants> <participant> <user> <avatarUrl>_URL_/avatar/joe</avatarUrl> <displayName>joe lowercase</displayName> <userName>joe</userName> </user> <completed>false</completed> </participant> </participants> <permId> <id>_REVIEW_ITEM_ID_</id> </permId> <authorName>seb</authorName> <commitDate>_DATE_</commitDate> <commitType>_COMMIT_TYPE_</commitType> <expandedRevisions> <addDate>_DATE_</addDate> <revision>13</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <expandedRevisions> <addDate>_DATE_</addDate> <revision>14</revision> <path>branches/iterativeReviewsBranch/file2</path> <contentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</contentUrl> <source>svn</source> <changedLines>3</changedLines> <fileType>_COMMIT_TYPE_</fileType> <commitType>_COMMIT_TYPE_</commitType> </expandedRevisions> <fileType>_COMMIT_TYPE_</fileType> <fromContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</fromContentUrl> <fromPath>branches/iterativeReviewsBranch/file2</fromPath> <fromRevision>13</fromRevision> <repositoryName>svn</repositoryName> <showAsDiff>true</showAsDiff> <toContentUrl>foo/cru/CR-2/rawcontent/_DIR_NO_/branches/iterativeReviewsBranch/file2</toContentUrl> <toPath>branches/iterativeReviewsBranch/file2</toPath> <toRevision>14</toRevision> </reviewItem> </reviewItems> <reviewers/> <transitions/> <versionedComments/> </detailedReviewData>

      at com.atlassian.fecru.utils.XMLTestUtils.assertXmlDocumentEqual()
    2. com.atlassian.fecru
      XMLTestUtils.assertXmlFileEqual
      1. com.atlassian.fecru.utils.XMLTestUtils.assertXmlDocumentEqual(XMLTestUtils.java:84)
      2. com.atlassian.fecru.utils.XMLTestUtils.assertXmlFileEqual(XMLTestUtils.java:114)
      2 frames
    3. com.atlassian.crucible
      RestReviewServiceTest.testAddChangeset
      1. com.atlassian.crucible.spi.rpc.RestServiceTestBase.assertRequestReturnsXml(RestServiceTestBase.java:85)
      2. com.atlassian.crucible.spi.rpc.RestReviewServiceTest.testAddChangeset(RestReviewServiceTest.java:685)
      2 frames
    4. com.atlassian.functestplugin
      JUnitRunnerService$2.write
      1. com.atlassian.functestplugin.JUnitRunnerService.runSingleTest(JUnitRunnerService.java:232)
      2. com.atlassian.functestplugin.JUnitRunnerService.access$000(JUnitRunnerService.java:54)
      3. com.atlassian.functestplugin.JUnitRunnerService$2.write(JUnitRunnerService.java:154)
      3 frames
    5. jersey-core
      StreamingOutputProvider.writeTo
      1. com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:68)
      2. com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:55)
      2 frames
    6. Jersey
      WebApplicationImpl.handleRequest
      1. com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:254)
      2. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:689)
      3. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:612)
      4. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:603)
      4 frames
    7. Jersey
      ServletContainer.service
      1. com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309)
      2. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425)
      2 frames
    8. com.atlassian.plugins
      RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter
      1. com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:128)
      1 frame
    9. Jersey
      ServletContainer.doFilter
      1. com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:689)
      1 frame
    10. com.atlassian.plugins
      RestDelegatingServletFilter.doFilter
      1. com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:62)
      1 frame
    11. com.atlassian.plugin
      DelegatingPluginFilter$1.doFilter
      1. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)
      2. com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)
      3. com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)
      4. com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)
      5. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)
      6. com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)
      7. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)
      7 frames
    12. com.atlassian.plugins
      RestServletUtilsUpdaterFilter.doFilter
      1. com.atlassian.plugins.rest.module.servlet.RestServletUtilsUpdaterFilter.doFilterInternal(RestServletUtilsUpdaterFilter.java:26)
      2. com.atlassian.plugins.rest.module.servlet.RestServletUtilsUpdaterFilter.doFilter(RestServletUtilsUpdaterFilter.java:40)
      2 frames
    13. com.atlassian.plugin
      DelegatingPluginFilter$1.doFilter
      1. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)
      2. com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)
      3. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)
      3 frames
    14. com.atlassian.applinks
      ContextFilter.doFilter
      1. com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25)
      1 frame
    15. com.atlassian.plugin
      ServletFilterModuleContainerFilter.doFilter
      1. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)
      2. com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)
      3. com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)
      4. com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)
      4 frames
    16. Jetty Server
      ServletHandler$Chain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264)
      1 frame
    17. com.atlassian.plugin
      ServletFilterModuleContainerFilter.doFilter
      1. com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
      2. com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)
      3. com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)
      3 frames
    18. Jetty Server
      ServletHandler$Chain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264)
      1 frame
    19. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      2 frames
    20. Jetty Server
      ServletHandler$Chain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264)
      1 frame
    21. com.atlassian.crucible
      CrucibleFilter.doFilter
      1. com.atlassian.crucible.filters.CrucibleFilter.doFilter(CrucibleFilter.java:142)
      1 frame
    22. Jetty Server
      ServletHandler$Chain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264)
      1 frame
    23. com.cenqua.fisheye
      TotalityFilter.doFilter
      1. com.cenqua.fisheye.web.filters.TotalityFilter.doFilter(TotalityFilter.java:263)
      1 frame
    24. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
      2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
      2 frames
    25. Jetty Server
      ServletHandler$Chain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264)
      1 frame
    26. com.atlassian.security
      TrustedApplicationsFilter.doFilter
      1. com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:98)
      1 frame
    27. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
      2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
      2 frames
    28. Jetty Server
      ServletHandler$Chain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264)
      1 frame
    29. com.atlassian.plugin
      DelegatingPluginFilter$1.doFilter
      1. com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
      2. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)
      2 frames
    30. com.atlassian.oauth
      OAuthFilter.doFilter
      1. com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:71)
      1 frame
    31. com.atlassian.plugin
      DelegatingPluginFilter$1.doFilter
      1. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)
      2. com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)
      3. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)
      3 frames
    32. com.atlassian.plugins
      RestSeraphFilter.doFilter
      1. com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40)
      1 frame
    33. com.atlassian.plugin
      ServletFilterModuleContainerFilter.doFilter
      1. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)
      2. com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)
      3. com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)
      4. com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)
      4 frames
    34. Jetty Server
      ServletHandler$Chain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264)
      1 frame
    35. Jetty Util
      GzipFilter.doFilter
      1. org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:78)
      2. org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:154)
      2 frames
    36. com.cenqua.fisheye
      CustomIncludableGzipFilter.doFilter
      1. com.cenqua.fisheye.web.filters.CustomIncludableGzipFilter.doFilter(CustomIncludableGzipFilter.java:21)
      1 frame
    37. Jetty Server
      ServletHandler$Chain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264)
      1 frame
    38. com.cenqua.fisheye
      ProductInfoFilter.doFilter
      1. com.cenqua.fisheye.web.filters.ProductInfoFilter.doFilter(ProductInfoFilter.java:36)
      1 frame
    39. Jetty Server
      ServletHandler$Chain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264)
      1 frame
    40. com.atlassian.plugin
      ServletFilterModuleContainerFilter.doFilter
      1. com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
      2. com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)
      3. com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)
      3 frames
    41. Jetty Server
      ServletHandler$Chain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264)
      1 frame
    42. com.cenqua.fisheye
      UpfrontFilter.doFilter
      1. com.cenqua.fisheye.web.filters.UpfrontFilter.doFilter(UpfrontFilter.java:52)
      1 frame
    43. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
      2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
      2 frames
    44. Jetty Server
      ServletHandler$Chain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264)
      1 frame
    45. com.atlassian.fecru
      ProfilingServletFilter.doFilter
      1. com.atlassian.fecru.profiling.ProfilingServletFilter.doFilter(ProfilingServletFilter.java:73)
      1 frame
    46. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
      2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
      2 frames
    47. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
      7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      10. org.mortbay.jetty.Server.handle(Server.java:326)
      11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      12. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
      13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
      14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      16. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
      16 frames