[xwiki-users] Blogs in 2.1.1
Hi, I just migrated my instance from 2.0.3 to 2.1.1, and imported new xar, including all Blog pages. My instance is available either directly, or through a reverse proxy for larger scope: Reverse Proxy (Apache) <-> Proxy (Apache) <-> Wiki (tomcat) Viewing, editing and posting new blog entries when using url of proxy or directly tomcat works perfectly. Posting, when using url of reverse proxy, does not work because when clicking "create" button, the following url is used : http://r-wiki.company.com/test/bin/view/Blog/<span class=?entrySpace=Blog&entryTitle=jbtests Browsing the wiki and editing pages through our reverse proxy always worked perfectly, and posting blogs was not an issue since now. I think it's linked to urls replacement in syntax 2.0, and the fact that it considers urls local or external, but I'm not sure. Any help appreciated, Thanks, Jeremie
On 01/15/2010 11:42 AM, Jeremie BOUSQUET wrote:
Hi,
I just migrated my instance from 2.0.3 to 2.1.1, and imported new xar, including all Blog pages.
My instance is available either directly, or through a reverse proxy for larger scope: Reverse Proxy (Apache)<-> Proxy (Apache)<-> Wiki (tomcat)
Viewing, editing and posting new blog entries when using url of proxy or directly tomcat works perfectly.
Posting, when using url of reverse proxy, does not work because when clicking "create" button, the following url is used : http://r-wiki.company.com/test/bin/view/Blog/<span class=?entrySpace=Blog&entryTitle=jbtests
Browsing the wiki and editing pages through our reverse proxy always worked perfectly, and posting blogs was not an issue since now. I think it's linked to urls replacement in syntax 2.0, and the fact that it considers urls local or external, but I'm not sure.
Any help appreciated,
Could you put the full generated HTML for the create page on pastebin and send me the URL? -- Sergiu Dumitriu http://purl.org/net/sergiu/
I also use xwiki through apache proxy. Mention bug can be easily found but is not the only one. When I started to investigate and fix all broken HTML bugs, I got tired and downgraded Blog to previously used 1.8, because too many of "one-liner" 2.1.1 Blog constructs produced incorrect HTML through the proxy. We can join efforts, I you wish, to try to make it working. Valdis
Hi,
I just migrated my instance from 2.0.3 to 2.1.1, and imported new xar, including all Blog pages.
My instance is available either directly, or through a reverse proxy for larger scope: Reverse Proxy (Apache) <-> Proxy (Apache) <-> Wiki (tomcat)
Viewing, editing and posting new blog entries when using url of proxy or directly tomcat works perfectly.
Posting, when using url of reverse proxy, does not work because when clicking "create" button, the following url is used : http://r-wiki.company.com/test/bin/view/Blog/<span class=?entrySpace=Blog&entryTitle=jbtests
Browsing the wiki and editing pages through our reverse proxy always worked perfectly, and posting blogs was not an issue since now. I think it's linked to urls replacement in syntax 2.0, and the fact that it considers urls local or external, but I'm not sure.
Any help appreciated,
Thanks, Jeremie _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On 01/15/2010 01:03 PM, Valdis Vītoliņš wrote:
I also use xwiki through apache proxy. Mention bug can be easily found but is not the only one. When I started to investigate and fix all broken HTML bugs, I got tired and downgraded Blog to previously used 1.8, because too many of "one-liner" 2.1.1 Blog constructs produced incorrect HTML through the proxy.
Can you give me an example, so that I know what to look for?
We can join efforts, I you wish, to try to make it working.
Valdis
Hi,
I just migrated my instance from 2.0.3 to 2.1.1, and imported new xar, including all Blog pages.
My instance is available either directly, or through a reverse proxy for larger scope: Reverse Proxy (Apache)<-> Proxy (Apache)<-> Wiki (tomcat)
Viewing, editing and posting new blog entries when using url of proxy or directly tomcat works perfectly.
Posting, when using url of reverse proxy, does not work because when clicking "create" button, the following url is used : http://r-wiki.company.com/test/bin/view/Blog/<span class=?entrySpace=Blog&entryTitle=jbtests
Browsing the wiki and editing pages through our reverse proxy always worked perfectly, and posting blogs was not an issue since now. I think it's linked to urls replacement in syntax 2.0, and the fact that it considers urls local or external, but I'm not sure.
Any help appreciated,
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Hello, In this case I'm not sure full HTML is really needed, see the form part at the beginning of Blog.WebHome, with the create button : <div id="xwikicontent"> <form action="<span class="wikiexternallink"><a class="wikimodel-freestanding" href="http://r-wiki/test/bin/view/Blog/CreatePost?xpage=plain <view-source:http://r-wikiggs.gemalto.com/test/bin/view/Blog/CreatePost?xpage=plain>"><span class="wikigeneratedlinkcontent">http://r-wiki/test/bin/view/Blog/CreatePost?xpage=plain</span></a></span>" id="newBlogPost" method="post"> <div> <input type="hidden" name="entrySpace" value="Blog"/> <label style="font-weight: bold; font-size: 80%; padding-left: 18px; background: transparent url(<span class="wikiexternallink"><a class="wikimodel-freestanding" href="http://r-wiki/test/resources/icons/silk/add.gif) <view-source:http://r-wikiggs.gemalto.com/test/resources/icons/silk/add.gif%29>"><span class="wikigeneratedlinkcontent">http://r-wiki/test/resources/icons/silk/add.gif)</span></a></span> no-repeat left center;)">Create a new post <input type="text" name="entryTitle" value="Post title" style="border: 1px solid #DDD" class="withTip"/></label><span class="buttonwrapper"><input type="submit" value="Create"/></span> </div> </form> See how the stylesheet and action part was corrupted by wiki links spans... I think it's because in 2.0, when it sees a string starting with "http://...", wiki replaces it by a nice clickable link and injects <span>s. In practice, it breaks the html and scripts in many cases, and is painful to avoid when programming in a page... Because not all urls returning methods in xwiki api return correct urls (relative, and not absolute, that are not boxed).
On 01/15/2010 01:28 PM, Jeremie BOUSQUET wrote:
Hello,
In this case I'm not sure full HTML is really needed, see the form part at the beginning of Blog.WebHome, with the create button :
<div id="xwikicontent"> <form action="<span class="wikiexternallink"><a class="wikimodel-freestanding" href="http://r-wiki/test/bin/view/Blog/CreatePost?xpage=plain <view-source:http://r-wikiggs.gemalto.com/test/bin/view/Blog/CreatePost?xpage=plain>"><span class="wikigeneratedlinkcontent">http://r-wiki/test/bin/view/Blog/CreatePost?xpage=plain</span></a></span>" id="newBlogPost" method="post">
Ah, I see. This is a clash between HTML with wiki markup enabled and the rendering engine. -- Sergiu Dumitriu http://purl.org/net/sergiu/
http://test.odo.lv/Blog/ Credentials for testing I've sent separately. Valdis
Can you give me an example, so that I know what to look for?
...
participants (3)
-
Jeremie BOUSQUET -
Sergiu Dumitriu -
Valdis Vītoliņš