Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2153

FOP is too strict: URIs containting backslashes are not resolved in FOP 1.1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Won't Fix
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: unqualified
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC
    • External issue ID:
      54098

      Description

      When publishing DITA or Docbook to PDF (on a Windows machine) there are created FO files containing references to images. Some of the references are respecting the URI syntax, others are using the backslash: "\". This is not under the control of the end users. The XSLT stylesheets from these documentation frameworks are generating these invalid URIs.

      FOP 1.0 translated the back-slashses to forward slashes before attempting to parse the URIs.
      FOP 1.1 kept this translation in: org.apache.fop.apps.FOURIResolver but not in:
      org.apache.fop.fo.properties.URIProperty

      I propose adding the following code in:
      org.apache.fop.fo.properties.URIProperty.Maker.make(PropertyList, String, FObj)

      ....
      value = value.replace('
      ', '/');
      ....

      This will make FOP more compatible with the Docbook and DITA output.

        Attachments

          Activity

            People

            • Assignee:
              fop-dev@xmlgraphics.apache.org fop-dev
              Reporter:
              dan_caprioara Dan Caprioara
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: