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

EmailServices.sendMailFromScreen attachment rendering broken

    Details

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

      Description

      The MacroScreenRenderer for rendering email attachments is not initialized correctly with the model template TYPE name (e.g. "xsl-fo") as constructor parameter, instead the model template name like "screenfop" is given in.
      Therefore the screen based rendering of a xsl-fo type template results in an empty fop xml and the ApacheFopWorker quits with a "Premature end of file" error.

      I fixed this within the patch file attached by defining an additional constructor for the MacroScreenRenderer to make the API more intuitive to use.

        Attachments

          Activity

            People

            • Assignee:
              mbrohl Michael Brohl
              Reporter:
              mbecker Martin Becker
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: