It's got something to do with the quotes around the "src" parameter. I hacked the Image plugin to accept
[{Image https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png <https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png'> }] in addition to [{Image src=' https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png' }] and now it works. Very strange behavior by Apache. On Mon, Feb 26, 2024 at 5:31 PM Ulf Dittmer <ulf.ditt...@googlemail.com> wrote: > Could it have something to do with the extensive use in JSPWiki of > "application/x-www-form-urlencoded" > rather than "multipart/form-data"? > > > https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data > suggests that it can handle more cases (like longer payloads or binary > data, although that would not seem to be the issue here), > > On Sun, Feb 25, 2024 at 9:00 PM Ulf Dittmer <ulf.ditt...@googlemail.com> > wrote: > >> Sorry, that message got truncated: >> >> It's shared hosting, and I have no access to the Apache - so I don't know. >> >> I can (and will) contact the admins, but I figured it was worth a shot >> asking if anyone had encountered an issue like this before. >> >> It's got something to do with the parameter, because this works fine >> (even though it's nonsensical from a JSPWiki standpoint): >> >> |[{Image}] >> >> [{Image src=' >> https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png' >> }] >> >> But two or more Image calls with the src parameter cause the issue. I'm >> clueless what Apache might find objectionable about it. >> >> >> On Sun, Feb 25, 2024 at 10:33 AM Juan Pablo Santos Rodríguez < >>> juanpablo.san...@gmail.com> wrote: >>> >>>> Hi Ulf, >>>> >>>> Would you mind sharing how your Apache instance is set up? Does it show >>>> to >>>> which URL is trying to access the second time? >>>> >>>> >>>> Thx in advance, >>>> juan pablo >>>> >>>> El sáb, 24 feb 2024, 18:23, Ulf Dittmer <ulf.ditt...@googlemail.com >>>> .invalid> >>>> escribió: >>>> >>>> > Hi all- >>>> > >>>> > I'm experiencing a strange problem, and was hoping someone might have >>>> run >>>> > into this before. >>>> > >>>> > I'm running a JSPWiki site on Tomcat with an Apache in front of it. >>>> The >>>> > Apache refuses an edit of a very simple page with a "Forbidden - You >>>> don't >>>> > have permission to access this resource.", namely for a page with just >>>> > these two lines: >>>> > >>>> > [{Image src=' >>>> > >>>> > >>>> https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png >>>> > ' >>>> > }] >>>> > >>>> > [{Image src=' >>>> > >>>> > >>>> https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png >>>> > ' >>>> > }] >>>> > >>>> > (This is a minimized proof of concept of the behavior). >>>> > >>>> > With just one Image invocation, there's no problem. Running on a local >>>> > machine without an Apache in front of it, there's no problem with as >>>> many >>>> > Image elements as I want. The issue also happens if the Image >>>> references an >>>> > attachment on that page. >>>> > >>>> > Has anyone seen anything like this? Or know why Apache might find this >>>> > offensive? >>>> > >>>> > Thanks for any clues. >>>> > >>>> > Ulf >>>> > >>>> >>>