Yes the URLs have spaces, I don't think they should but I don't control that 
content.

I think this is related to TAP5-1803 
https://issues.apache.org/jira/browse/TAP5-1803

I hacked the encoder for now to accept spaces and that seems to work but I'll 
try and get the content provider to remove them!

John
  ----- Original Message ----- 
  From: Bob Harner 
  To: Tapestry users 
  Sent: Sunday, June 23, 2013 9:14 PM
  Subject: Re: URLEncoderImpl throws exception when resource has ablank


  Do the URLs in the request really have spaces? If so, they aren't valid and
  should be encoded as + or %20 when the requests are being created. But if
  the spaces were encoded correctly then there is another isssue.
  On Jun 22, 2013 5:50 PM, "John" <j...@quivinco.com> wrote:

  > Hi,
  >
  > I'm trying to use a page to serve static content. It works fine until a
  > request for a resource name having blanks arrives, then this exception
  > occurs. Is there a fix/workaround other than all resource names to not have
  > spaces?
  >
  > John
  >
  > [ERROR] TapestryModule.RequestExceptionHandler Processing of request
  > failed with
  >  uncaught exception: Input string 'New Group Name.bmp' is not valid; the
  > charact
  > er ' ' at position 4 is not valid.
  > java.lang.IllegalArgumentException: Input string 'New Group Name.bmp' is
  > not val
  > id; the character ' ' at position 4 is not valid.
  >         at
  > org.apache.tapestry5.internal.services.URLEncoderImpl.decode(URLEncod
  > erImpl.java:144)

Reply via email to