You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by wangzhongkuo <gi...@git.apache.org> on 2018/01/24 04:53:18 UTC
[GitHub] logging-log4j2 pull request #144: Update StrSubstitutor.java
GitHub user wangzhongkuo opened a pull request:
https://github.com/apache/logging-log4j2/pull/144
Update StrSubstitutor.java
//fix bug LOG4J2-2211 (https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2211?filter=addedrecently)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/wangzhongkuo/logging-log4j2 patch-1
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/logging-log4j2/pull/144.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #144
----
commit 00c9e5658241855927af856768ea632520b4ab9a
Author: wangzhongkuo <wz...@...>
Date: 2018-01-24T04:52:38Z
Update StrSubstitutor.java
//fix bug LOG4J2-2211 (https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2211?filter=addedrecently)
----
---
[GitHub] logging-log4j2 issue #144: [LOG4J2-2211] Update StrSubstitutor.java
Posted by garydgregory <gi...@git.apache.org>.
Github user garydgregory commented on the issue:
https://github.com/apache/logging-log4j2/pull/144
In general, this is the best process IMO:
1. Write a unit test that FAILS, therefore demonstrating that there is a problem.
2. Apply your bug fix
3. Run the test again and it now PASSES, demonstrating that your fix works.
---
[GitHub] logging-log4j2 issue #144: [LOG4J2-2211] Update StrSubstitutor.java
Posted by garydgregory <gi...@git.apache.org>.
Github user garydgregory commented on the issue:
https://github.com/apache/logging-log4j2/pull/144
Hello,
The fastest way to get traction on this issue is to provide a unit test in this PR.
Gary
---
[GitHub] logging-log4j2 issue #144: [LOG4J2-2211] Update StrSubstitutor.java
Posted by wangzhongkuo <gi...@git.apache.org>.
Github user wangzhongkuo commented on the issue:
https://github.com/apache/logging-log4j2/pull/144
I have committed a new PR to the repository(pull 145) and i have run the first three steps, please check it.
---
[GitHub] logging-log4j2 issue #144: [LOG4J2-2211] Update StrSubstitutor.java
Posted by wangzhongkuo <gi...@git.apache.org>.
Github user wangzhongkuo commented on the issue:
https://github.com/apache/logging-log4j2/pull/144
i use the unit test org.apache.logging.log4j.core.lookup.MainInputArgumentsLookupTest
---
[GitHub] logging-log4j2 issue #144: [LOG4J2-2211] Update StrSubstitutor.java
Posted by wangzhongkuo <gi...@git.apache.org>.
Github user wangzhongkuo commented on the issue:
https://github.com/apache/logging-log4j2/pull/144
I'm disappointed
---
[GitHub] logging-log4j2 issue #144: [LOG4J2-2211] Update StrSubstitutor.java
Posted by garydgregory <gi...@git.apache.org>.
Github user garydgregory commented on the issue:
https://github.com/apache/logging-log4j2/pull/144
Failing unit tests is something you will have to resolve before we can consider accepting this patch. I, at least, do not have the time to look into this now.
---
[GitHub] logging-log4j2 issue #144: [LOG4J2-2211] Update StrSubstitutor.java
Posted by garydgregory <gi...@git.apache.org>.
Github user garydgregory commented on the issue:
https://github.com/apache/logging-log4j2/pull/144
@wangzhongkuo: We are a volunteer-based organization, and as such, we look for as much help as we can as all of our schedules are busy, as is yours I imagine. This is why we ask for contributions and for contributors to ease the addition of new features and the inclusion of bug fixes by follow a fairly light process to minimize the impact of changes and of time in reviewing patches.
With this in mind, this PR contains no unit tests, and as such will likely not get accepted (by me at least.) Do consider:
1. Write a unit test that FAILS, therefore demonstrating that there is a problem.
2. Apply your bug fix
3. Run the test again and it now PASSES, demonstrating that your fix works.
4. Run all the unit tests to make sure your fix didn't break something else.
Thank you,
Gary
---
[GitHub] logging-log4j2 issue #144: [LOG4J2-2211] Update StrSubstitutor.java
Posted by wangzhongkuo <gi...@git.apache.org>.
Github user wangzhongkuo commented on the issue:
https://github.com/apache/logging-log4j2/pull/144
@garydgregory @rgoers
I'm glad you can pay attention to this problem and what's the final result? By the way, how long time difference exists between us, i'm in BeiJing...
---
[GitHub] logging-log4j2 issue #144: [LOG4J2-2211] Update StrSubstitutor.java
Posted by wangzhongkuo <gi...@git.apache.org>.
Github user wangzhongkuo commented on the issue:
https://github.com/apache/logging-log4j2/pull/144
@garydgregory @rgoers
---
[GitHub] logging-log4j2 issue #144: [LOG4J2-2211] Update StrSubstitutor.java
Posted by wangzhongkuo <gi...@git.apache.org>.
Github user wangzhongkuo commented on the issue:
https://github.com/apache/logging-log4j2/pull/144
Is there any progress? @garydgregory
---
[GitHub] logging-log4j2 issue #144: [LOG4J2-2211] Update StrSubstitutor.java
Posted by garydgregory <gi...@git.apache.org>.
Github user garydgregory commented on the issue:
https://github.com/apache/logging-log4j2/pull/144
Thank you for your patch. Can you please provide a unit test?
---
[GitHub] logging-log4j2 issue #144: [LOG4J2-2211] Update StrSubstitutor.java
Posted by rgoers <gi...@git.apache.org>.
Github user rgoers commented on the issue:
https://github.com/apache/logging-log4j2/pull/144
4. Run all the unit tests to make sure your fix didn't break something else.
---
[GitHub] logging-log4j2 issue #144: [LOG4J2-2211] Update StrSubstitutor.java
Posted by wangzhongkuo <gi...@git.apache.org>.
Github user wangzhongkuo commented on the issue:
https://github.com/apache/logging-log4j2/pull/144
I did what you said in PR 145, but i don't known why all checks failed.
---