[ 
https://issues.apache.org/jira/browse/FOP-2688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16182227#comment-16182227
 ] 

Chris Bowditch commented on FOP-2688:
-------------------------------------

When I try your FO FIle I get the following error:

SEVERE: Error while rendering page 1
java.lang.IllegalStateException: java.net.URISyntaxException: Illegal character
in path at index 7: simple_[report]_(version2).pdf

Which makes sense because Square brackets need to be encoded to make a URI 
valid. I'm guessing you are running on Linux which probably has slightly 
different URI validation. But in either case, this bug is rejected because any 
URI put in the XSL-FO needs to be valid before it is processed by FOP and 
therefore there is no need to make FOP encode it on the fly

> [PATCH] basic-link external-destination does not work for file URI with 
> parenthesis and brackets
> ------------------------------------------------------------------------------------------------
>
>                 Key: FOP-2688
>                 URL: https://issues.apache.org/jira/browse/FOP-2688
>             Project: FOP
>          Issue Type: Bug
>    Affects Versions: trunk
>            Reporter: Eric Lim
>         Attachments: basic-link.patch, FOP-2688(dest).pdf, 
> FOP-2688-file-paren-bracket-uri.fo, FOP-2688.fo, FOP-2688 (with patch).pdf, 
> simple_[report]_(version2).pdf
>
>
> fo:basic-link external-destinations fails when target URIs contains 
> parenthesis or square brackets.
> For square brackets, fop may throw an invalid URI exception.
> For parenthesis, fop does not escape out parenthesis for URI action.
> Parenthesis and square brackets are pretty common for file names but not for 
> URIs...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to