You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "strugerk (Jira)" <ji...@apache.org> on 2022/01/15 09:44:00 UTC

[jira] [Updated] (LOG4J2-3342) fix Appenders DeleteAction didn't work when basepath is symbolicLink

     [ https://issues.apache.org/jira/browse/LOG4J2-3342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

strugerk updated LOG4J2-3342:
-----------------------------
    Environment: 
fix Appenders DeleteAction didn't work when basepath is symbolicLink.
jira:https://issues.apache.org/jira/browse/LOG4J2-3342

[!https://user-images.githubusercontent.com/37694724/149617084-6f02f4bb-f3d1-45ee-bf76-389b289c2f25.png!|https://user-images.githubusercontent.com/37694724/149617084-6f02f4bb-f3d1-45ee-bf76-389b289c2f25.png]
[!https://user-images.githubusercontent.com/37694724/149616974-1c89645c-4b31-4319-ba15-61ea24233214.png!|https://user-images.githubusercontent.com/37694724/149616974-1c89645c-4b31-4319-ba15-61ea24233214.png]

getSortedPaths should return subFile [log4j-shix-....log],but it only return currentFile dirName [log/file]
problem:Files.walkFileTree api in java.nio can't list File directly when file is symbolicLink ,it need do someThing to deal with it

> fix Appenders DeleteAction didn't work when basepath is symbolicLink
> --------------------------------------------------------------------
>
>                 Key: LOG4J2-3342
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3342
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>         Environment: fix Appenders DeleteAction didn't work when basepath is symbolicLink.
> jira:https://issues.apache.org/jira/browse/LOG4J2-3342
> [!https://user-images.githubusercontent.com/37694724/149617084-6f02f4bb-f3d1-45ee-bf76-389b289c2f25.png!|https://user-images.githubusercontent.com/37694724/149617084-6f02f4bb-f3d1-45ee-bf76-389b289c2f25.png]
> [!https://user-images.githubusercontent.com/37694724/149616974-1c89645c-4b31-4319-ba15-61ea24233214.png!|https://user-images.githubusercontent.com/37694724/149616974-1c89645c-4b31-4319-ba15-61ea24233214.png]
> getSortedPaths should return subFile [log4j-shix-....log],but it only return currentFile dirName [log/file]
> problem:Files.walkFileTree api in java.nio can't list File directly when file is symbolicLink ,it need do someThing to deal with it
>            Reporter: strugerk
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.20.1#820001)