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 2022/08/22 21:07:00 UTC
[jira] [Commented] (LOG4J2-3550) SystemPropertyArbiter variable assignment error
[ https://issues.apache.org/jira/browse/LOG4J2-3550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17583198#comment-17583198 ]
ASF subversion and git services commented on LOG4J2-3550:
---------------------------------------------------------
Commit 55bbf911270f1ba6a13f6d3b85f1f83e9818a53d in logging-log4j2's branch refs/heads/slf4j-2.0 from Ralph Goers
[ https://gitbox.apache.org/repos/asf?p=logging-log4j2.git;h=55bbf91127 ]
LOG4J2-3550 - SystemPropertyAribiter was assigning the value as the name
> SystemPropertyArbiter variable assignment error
> -----------------------------------------------
>
> Key: LOG4J2-3550
> URL: https://issues.apache.org/jira/browse/LOG4J2-3550
> Project: Log4j 2
> Issue Type: Bug
> Components: Core
> Reporter: DongjianPeng
> Priority: Minor
> Fix For: 2.18.1
>
>
>
> {code:java}
> // org.apache.logging.log4j.core.config.arbiters.SystemPropertyArbiter
> public static final String ATTR_PROPERTY_NAME = "propertyName";
> public static final String ATTR_PROPERTY_VALUE = "propertyValue";
> @PluginBuilderAttribute(ATTR_PROPERTY_NAME)
> private String propertyName;
> @PluginBuilderAttribute(ATTR_PROPERTY_VALUE)
> private String propertyValue;
> /**
> * Sets the Property Name.
> * @param propertyName the property name.
> * @return this
> */
> public Builder setPropertyName(final String propertyName) {
> this.propertyName = propertyName;
> return asBuilder();
> }
> /**
> * Sets the Property Value.
> * @param propertyValue the property name.
> * @return this
> */
> public Builder setPropertyValue(final String propertyValue) {
> this.propertyName = propertyValue;
> return asBuilder();
> } {code}
>
>
> It looks like this variable was incorrectly assigned.
> I submitted pull request on Github: https://github.com/apache/logging-log4j2/pull/955
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)