Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-32546

Log error when downloading the site participants list in the Site Info tool

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: OPEN
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 12.0
    • Fix Version/s: None
    • Component/s: Site Info
    • Labels:
      None
    • 11 status:
      Please Merge

      Description

      Context:

      • The Sakai server does not have the DejaVu Sans font installed (free-license font type).
      • This Sakai property is enabled: "pdf.default.font=DejaVu Sans".

      1. Go to the "Site Info" tool from a site.
      2. Click the "Printable Version" link to print the site participants list to PDF.
      3. This error is logged:

      org.apache.fop.fonts.substitute.FontSubstitutions - Unable to match font substitution for destination qualifier font-family
      

      The problem is in this line:

      Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, streamOut);
      

      in the method "SiteInfoToolServlet.generatePDF".

      This issue was fixed by this Jira SAM-1674 in Samigo. This fix includes:

      • Copy the "DejaVu Sans" font to the samigo resources.
      • Register dynamically the directory where the font is.

      So the solution to this issue would be the same:

      • Copy the "DejaVu Sans" font to the "Site Info" resources.
      • Register dynamically the directory where the font is.

      A better fix could be:

      • Copy the "DejaVu Sans" font to the Kernel resources.
      • Register the directory where the font is.

      This fix implies that the font would be available to all tools.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  maintenanceteam Core Team
                  Reporter:
                  raulsv Raúl Sánchez Vegas
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                    Dates

                    Created:
                    Updated:

                      Git Integration