[jira] Commented: (OFBIZ-242) <@ofbizContentUrl> tag doesn't work in screenfop

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-242) <@ofbizContentUrl> tag doesn't work in screenfop

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539335 ]

Jacopo Cappellato commented on OFBIZ-242:
-----------------------------------------

I did a few tests on this and I think that I've found a relatively good workaround:

In framework/webapp/config/fop.xconf

change the element:

<!-- Base URL for resolving relative URLs -->
<base>.</base>

to point to the base url for content; for example:

<!-- Base URL for resolving relative URLs -->
<base>http://localhost:8080</base>

Do you think it is the best solution? Should we add these notes in the production setup guide and close this issue?

PS: It would be great to dynamically provide this information to fop at runtime, but I don't know if it is possible.


> <@ofbizContentUrl> tag doesn't work in screenfop
> ------------------------------------------------
>
>                 Key: OFBIZ-242
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-242
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>            Reporter: Jacopo Cappellato
>            Priority: Minor
>
> Based on a bug report from Si Chen:
> When I use
> <fo:external-graphic src="<@ofbizContentUrl>/images/ofbiz_powered.gif</@ofbizContentUrl>" overflow="hidden" width="88pt" height="31pt"/>
> I get this error:
> 137827 (http-0.0.0.0-8443-Processor2) [ ExternalGraphic.java:302:ERROR] Error while creating area : Error with image URL: /images/ofbiz_powered.gif (No such file or directory) and no base URL is specified
> And no picture shows up (but the PDF still generates.)
> It seems that ofbizContentUrl tag is there but the properties for it are not set...

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.