[
https://issues.apache.org/jira/browse/LOG4J2-2828?focusedWorklogId=447212&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-447212
]
ASF GitHub Bot logged work on LOG4J2-2828:
------------------------------------------
Author: ASF GitHub Bot
Created on: 17/Jun/20 10:41
Start Date: 17/Jun/20 10:41
Worklog Time Spent: 10m
Work Description: vy merged pull request #364:
URL: https://github.com/apache/logging-log4j2/pull/364
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 447212)
Time Spent: 20m (was: 10m)
> 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)