Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5140

Exceptions when rendering pdfs due to bad filename prefix in ApacheFopWorker

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: Trunk
    • Component/s: framework
    • Labels:
      None

      Description

      Caused by commit r1446940: The default value for the fop.font.base.url uses a file:/// prefix. After calling fontBaseFile.toURI, the whole path is duplicated. The following one-line patch fixes this:

      -                    String fopFontBaseProperty = UtilProperties.getPropertyValue("fop.properties", "fop.font.base.url", "file:///" + ofbizHome + "/framework/webapp/config/");
      +                    String fopFontBaseProperty = UtilProperties.getPropertyValue("fop.properties", "fop.font.base.url", ofbizHome + "/framework/webapp/config/");
      

        Attachments

          Activity

            People

            • Assignee:
              adrianc@hlmksw.com Adrian Crum
              Reporter:
              c089 Christoph Neuroth
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: