ICEpdf
  1. ICEpdf
  2. PDF-970

Improve FontManagers exception handling.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1
    • Fix Version/s: 6.2
    • Component/s: Examples
    • Labels:
      None
    • Environment:
      Pro

      Description

      A customer has had trouble diagnosing a font substitution issue on a Linux system. The issue as it turns out is a AccessControlException when the process running the JVM doesn't have permission to read the fonts paths in question.

      During the font path read we catch and log AccessControlException as well as Throwable but we do this at the loggger.finer level which might not show up in the users logs.

      The proposal here to take a look at he loading process and see if we can provide better logging for the process and raise the appropriate warnings if now font scan be found.

        Activity

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.2 [ 12974 ]
        Hide
        Patrick Corless added a comment -

        "Just to clarify, the issue isn't specifically an access violation trying to open the font, but rather it working when the font is located in a writable folder and not working when the font is in a read-only folder."

        Show
        Patrick Corless added a comment - "Just to clarify, the issue isn't specifically an access violation trying to open the font, but rather it working when the font is located in a writable folder and not working when the font is in a read-only folder."
        Arran Mccullough made changes -
        Support Case References Support Case #13698 - https://icesoft.my.salesforce.com/5007000001YtCI0
        Patrick Corless made changes -
        Fix Version/s 6.2 [ 13090 ]
        Fix Version/s 6.4 [ 12974 ]
        Hide
        Patrick Corless added a comment -

        Quite a bit of work was done around font loading on linux as part of PDF-1046. However the exception logging wasn't changed. I've updated AccessControlException catches to log as warnings and moved general exception to fine level from finer.

        Show
        Patrick Corless added a comment - Quite a bit of work was done around font loading on linux as part of PDF-1046 . However the exception logging wasn't changed. I've updated AccessControlException catches to log as warnings and moved general exception to fine level from finer.
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49958 Mon Jan 09 12:45:03 MST 2017 patrick.corless PDF-970 updated log level for AccessControlException to aid in debugging of file system access issues on various OS's particularily Linux.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/fonts/FontManager.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49959 Mon Jan 09 12:45:13 MST 2017 patrick.corless PDF-970 updated log level for AccessControlException to aid in debugging of file system access issues on various OS's particularily Linux.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/fonts/FontManager.java
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: