And this is not a content generated by a script ?

You can reproduce this with a content that only has
[[image:img.png||width="25px"]] ?

Are you able to reproduce it with standard jetty/hsqldb package (1) ?

I don't have anything in mind that could cause such a behavior in
standard rendering. Would need to reproduce it and debug.

1: 
http://maven.xwiki.org/releases/org/xwiki/enterprise/xwiki-enterprise-jetty-hsqldb/7.1.1/xwiki-enterprise-jetty-hsqldb-7.1.1.zip

On Mon, Dec 12, 2016 at 4:33 PM, Enste, Patrick <patrick.en...@atos.net> wrote:
> Hey,
>
> I tried to google a solution but I did not found anything. Maybe somebody 
> here can help me :-)
>
> I observed the following behaviour on my XWiki (v 7.1.1): Using the XWiki 
> Syntax 2.1 for inserting images leads to a problem if I am using parameters. 
> Let's say im using [[image:img.png||width="25px"]]. When I am saving the page 
> the source code of the generated html is something like <img 
> src="/xwiki/bin/download/Space/img.png?width=25" width="25px" alt="img.png">.
> After a refresh of the page the source code gets <img 
> src="/xwiki/bin/download/Space/img.png?width=25&amp;width=25" width="25px" 
> alt="img.png">. After another refresh the source code gets <img 
> src="/xwiki/bin/download/Space/img.png?width=25&amp;width=25&amp;width=25" 
> width="25px" alt="img.png">. And so on and so on .....
>
> After a lot of refreshes the src path is too long for my server (restricted 
> to 1024 chars) and the image is not shown anymore.
>
> When I edit the page and save it the path gets "normal" again.
>
> Am I using the syntax wrong or is it (I guess that is the problem) a XWiki 
> problem? I guess the path resolving has a bug but maybe somebody can help me 
> without updating the XWiki?
>
> Thanks in advance,
> Patrick
>



-- 
Thomas Mortagne

Reply via email to