Hi Jonas, Jonas Almfeldt wrote:
On Fri, Apr 17, 2009 at 4:05 PM, Marius Dumitru Florea < [email protected]> wrote:
Jonas Almfeldt wrote:
[snip]
Then something wrong happens in wysiwyginput.vm template. This is what I
have http://pastebin.com/m118b997b . Can try the following:
(1) Replace line 16 with
#set($content = "**nobug**")
and refresh the page containing "bug". What the output if you append xpage=wysiwyginput&render to the query string of the view URL?
http://server:8080/xwiki/bin/view/Sandbox/test+2?xpage=wysiwyginput&rendergi... the output:
**nobug**
(2) Revert the previous change. Replace line 28 with
#set($content = $tdoc.getRenderedContent("**nobug**", $tdoc.getSyntaxId()))
and refresh again. What's the output now?
Output of http://server:8080/xwiki/bin/view/Sandbox/test+2?xpage=wysiwyginput&renderis now:
**bug**
and if I edit the page, the wysiwyg opens up displaying:
**bug**
So the condition in the if statement on line 27: #if($request.render) does not seem to be satisfied. See my result for (3) below.
[snip]
(3) Revert the changes from (1) and (2) and instead of
xpage=wysiwyginput&render
put
xpage=wysiwyginput&render=true
in the query string of the view URL. What's the output this time?
I suspect the WAS environment doesn't support query string parameters without a value.
Maurius, your suspicion seems very likely! :-)
When I have reverted changes (1) and (2), and using url: with render=true instead of just render it displays * bug
in bold text, just as it should do. *
Thanks for having such good patience to guide me through the troubleshooting!
I'm glad I could help.
Is this a bug in WAS 6.1? or is it actually following some servlet standard more strictly than other application servers do? or just interpreting the standard more strictly perhaps :-)
The servlet specification says nothing about this so I guess it's not strictly correct to have query string parameters without a value. Some web containers support it, but we should definitely avoid it.
How can we solve this?
Will this be adressed in a coming xwiki release?
Yes, will be fixed for XE 1.8.2. See http://jira.xwiki.org/jira/browse/XWIKI-3630 Thanks for reporting this, Marius
Kind regards, Jonas _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users