You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/06/17 08:26:00 UTC
[jira] [Commented] (LOG4J2-2828) RollingRandomAccessFileAppender
not using filePermissions
[ https://issues.apache.org/jira/browse/LOG4J2-2828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17138231#comment-17138231 ]
ASF subversion and git services commented on LOG4J2-2828:
---------------------------------------------------------
Commit 52696e7d6b12a7fa86428b18326a13b685191c06 in logging-log4j2's branch refs/heads/LOG4J2-2828 from Volkan Yazıcı
[ https://gitbox.apache.org/repos/asf?p=logging-log4j2.git;h=52696e7 ]
LOG4J2-2828 Retain file permissions after rollover in RollingRandomAccessFileAppender.
> 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
>
> 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)