You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Volkan Yazici (Jira)" <ji...@apache.org> on 2020/06/17 10:44:00 UTC
[jira] [Resolved] (LOG4J2-2828) RollingRandomAccessFileAppender not
using filePermissions
[ https://issues.apache.org/jira/browse/LOG4J2-2828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Volkan Yazici resolved LOG4J2-2828.
-----------------------------------
Assignee: Volkan Yazici
Resolution: Fixed
> 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
> Assignee: Volkan Yazici
> 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)