You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Christoph Neuroth (JIRA)" <ji...@apache.org> on 2013/02/21 11:04:13 UTC

[jira] [Updated] (OFBIZ-5140) Exceptions when rendering pdfs due to bad filename prefix in ApacheFopWorker

     [ https://issues.apache.org/jira/browse/OFBIZ-5140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christoph Neuroth updated OFBIZ-5140:
-------------------------------------

    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:

{code}
-                    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/");
{code}

  was:
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/");
}}}

    
> Exceptions when rendering pdfs due to bad filename prefix in ApacheFopWorker
> ----------------------------------------------------------------------------
>
>                 Key: OFBIZ-5140
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5140
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Christoph Neuroth
>
> 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:
> {code}
> -                    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/");
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira