[xwiki-users] Revision Viewing is throwing marco errors
I'm using Enterprise 1.8, when trying to view any revision on my document using the rev= parameter, I lose the logo from the skin. (Reproduced: http://www.xwiki.org/xwiki/bin/viewrev/Main/WebHome?rev=81.2) (No issue here though: http://dev.xwiki.org/xwiki/bin/viewrev/Main/WebHome?rev=7.1) and I get a velocity macro error on pages using velocity when they are using xwiki 2.0 syntax, specifically the include macro. The same does not occur on pages using xwiki 1.0 syntax Can anyone reproduce the last one? And what's why does the dev wiki not have the logo problem? -- View this message in context: http://n2.nabble.com/Revision-Viewing-is-throwing-marco-errors-tp2571038p257... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, I can't reproduce it on XE 1.8 with a 2.0 document and rev=1.1 for example. Could you details the exact actions to do to reproduce it ? (Does the 2.0 document as been converted at some point, maybe I nee I need more than 2 versions, etc.) On Wed, Apr 1, 2009 at 21:16, twk3 <[email protected]> wrote:
I'm using Enterprise 1.8, when trying to view any revision on my document using the rev= parameter, I lose the logo from the skin. (Reproduced: http://www.xwiki.org/xwiki/bin/viewrev/Main/WebHome?rev=81.2) (No issue here though: http://dev.xwiki.org/xwiki/bin/viewrev/Main/WebHome?rev=7.1)
and I get a velocity macro error on pages using velocity when they are using xwiki 2.0 syntax, specifically the include macro. The same does not occur on pages using xwiki 1.0 syntax
Can anyone reproduce the last one?
And what's why does the dev wiki not have the logo problem? -- View this message in context: http://n2.nabble.com/Revision-Viewing-is-throwing-marco-errors-tp2571038p257... Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Hi, I can't reproduce it on XE 1.8 with a 2.0 document and rev=1.1 for example. Could you details the exact actions to do to reproduce it ? (Does the 2.0 document as been converted at some point, maybe I nee I need more than 2 versions, etc.) What I did to reproduce: Created new page, add an {{include document="TestDoc"/}} and save the page in syntax 2.0 Viewing the page at this point is fine. The document is included. If you check the revisions at this point, it works fine. But that's because both your current document, and your included document have a revision 1.1 The easiest way to reproduce at this point, is usually to reopen your document and save it as a minor edit now view revision 1.2, as long as the included document doesn't have a revision 1.2, it is going to throw a velocity error. So it looks like it's trying to load the same revision number for the included document, and when such a revision number doesn't exist, it fails. Snippets of exception: org.xwiki.rendering.macro.MacroExecutionException: Failed to get content for Document [Sandbox.TestDoc] at org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:138)... .... com.xpn.xwiki.XWikiException: Error number 3205 in 3: Version 1.2 does not exist while reading document Sandbox.TestDoc at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDoc(XWikiHibernateVersioningStore.java:218) -- View this message in context: http://n2.nabble.com/Revision-Viewing-is-throwing-marco-errors-tp2571038p258... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Fri, Apr 3, 2009 at 19:07, twk3 <[email protected]> wrote:
Hi,
I can't reproduce it on XE 1.8 with a 2.0 document and rev=1.1 for example.
Could you details the exact actions to do to reproduce it ? (Does the 2.0 document as been converted at some point, maybe I nee I need more than 2 versions, etc.)
What I did to reproduce:
Created new page, add an {{include document="TestDoc"/}} and save the page in syntax 2.0
Viewing the page at this point is fine. The document is included.
If you check the revisions at this point, it works fine.
But that's because both your current document, and your included document have a revision 1.1
The easiest way to reproduce at this point, is usually to reopen your document and save it as a minor edit
now view revision 1.2, as long as the included document doesn't have a revision 1.2, it is going to throw a velocity error.
So it looks like it's trying to load the same revision number for the included document, and when such a revision number doesn't exist, it fails.
Ok i just reproduced it, it looks like a include macro bug. Would be great if you could create an issue for it on http://jira.xwiki.org
Snippets of exception:
org.xwiki.rendering.macro.MacroExecutionException: Failed to get content for Document [Sandbox.TestDoc] at org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:138)...
....
com.xpn.xwiki.XWikiException: Error number 3205 in 3: Version 1.2 does not exist while reading document Sandbox.TestDoc at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDoc(XWikiHibernateVersioningStore.java:218)
-- View this message in context: http://n2.nabble.com/Revision-Viewing-is-throwing-marco-errors-tp2571038p258... Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Issue created: http://jira.xwiki.org/jira/browse/XWIKI-3521 On Fri, Apr 3, 2009 at 19:07, twk3 <[email protected]> wrote: Ok i just reproduced it, it looks like a include macro bug. Would be great if you could create an issue for it on http://jira.xwiki.org -- Thomas Mortagne -- View this message in context: http://n2.nabble.com/Revision-Viewing-is-throwing-marco-errors-tp2571038p259... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Tue, Apr 7, 2009 at 01:16, twk3 <[email protected]> wrote:
Issue created: http://jira.xwiki.org/jira/browse/XWIKI-3521
Thanks
On Fri, Apr 3, 2009 at 19:07, twk3 <[email protected]> wrote:
Ok i just reproduced it, it looks like a include macro bug. Would be great if you could create an issue for it on http://jira.xwiki.org
-- Thomas Mortagne
-- View this message in context: http://n2.nabble.com/Revision-Viewing-is-throwing-marco-errors-tp2571038p259... Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
participants (2)
-
Thomas Mortagne -
twk3