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

Volkan Yazici commented on LOG4J2-2828:
---------------------------------------

[~vther] , thanks for the detailed report, including the hint for the fix. I've 
implemented the fix along with a unit test. The changes are merged to 
{{master}}. I would appreciate if you can spare time to verify the fix. I am 
closing the issue. Feel free to re-open it, if it doesn't solve your problem.

> RollingRandomAccessFileAppender not using filePermissions
> ---------------------------------------------------------
>
>                 Key: LOG4J2-2828
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2828
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.12.0
>            Reporter: liuyunguo
>            Priority: Blocker
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> in code:
> org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager#createFileAfterRollover()
>  
> @Override
> protected void createFileAfterRollover() throws IOException {
>  createFileAfterRollover(getFileName());
> }
> private void createFileAfterRollover(final String fileName) throws 
> IOException {
>  this.randomAccessFile = new RandomAccessFile(fileName, "rw");
> {color:#FF0000}*// should use filePermissions*{color}
> {color:#FF0000}*defineAttributeView(Paths.get(filename));*{color}
>  if (isAppend()) {
>  randomAccessFile.seek(randomAccessFile.length());
>  }
>  writeHeader();
> }
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to