You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Vera Straube (JIRA)" <ji...@apache.org> on 2019/04/11 11:21:00 UTC

[jira] [Commented] (FOP-2857) [PATCH] FontCache.toDirectory() and FontCache.getDefaultCacheFile() not working correctly

    [ https://issues.apache.org/jira/browse/FOP-2857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16815333#comment-16815333 ] 

Vera Straube commented on FOP-2857:
-----------------------------------

sorry, we donĀ“t develop the webapp. An external supplier does the job and has the control over the source code.
we have only read access to the source code to analyse and report errors.

> [PATCH] FontCache.toDirectory() and FontCache.getDefaultCacheFile() not working correctly
> -----------------------------------------------------------------------------------------
>
>                 Key: FOP-2857
>                 URL: https://issues.apache.org/jira/browse/FOP-2857
>             Project: FOP
>          Issue Type: Bug
>          Components: font/unqualified
>    Affects Versions: 2.3
>            Reporter: Vera Straube
>            Priority: Critical
>         Attachments: FontCache.java.patch, FontCache.java.patch2
>
>
> The function getDefaultCacheFile() of the class FontCache should work like this:
> [1] case:       select user_dir
> -> user_dir:    'C:\Users\strv'
> -> temp_dir:    'C:\Users\strv\AppData\Local\Temp\'
> -> cache_file:  'C:\Users\strv\.fop\fop-fonts.cache'
> [2] case:       select temp_dir
> -> user_dir:    ''
> -> temp_dir:    'C:\Users\strv\AppData\Local\Temp\'
> -> cache_file:  'C:\Users\strv\AppData\Local\Temp\.fop\fop-fonts.cache'
> [3] case:       select curr_dir
> -> user_dir:    ''
> -> temp_dir:    ''
> -> cache_file:  'fop-fonts.cache'
> Actually it works uncorrectly like this:
> [1] case:       select user_dir
> -> user_dir:    'C:\Users\strv'
> -> temp_dir:    'C:\Users\strv\AppData\Local\Temp\'
> -> cache_file:  'C:\Users\strv\.fop\fop-fonts.cache'
> [2] case:       select temp_dir
> -> user_dir:    ''
> -> temp_dir:    'C:\Users\strv\AppData\Local\Temp\'
> -> cache_file:  '.fop'  --> wrong behavior !!!
> [3] case:       select curr_dir
> -> user_dir:    ''
> -> temp_dir:    ''
> -> cache_file:  '.fop'  --> wrong behavior !!!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)