-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore wstx-asl-3.2.9.jar
to WAR
#5604
Conversation
This PR is now ready for merge. We will merge it after approximately 24 hours if there is no negative feedback. |
As a temporary hotfix, OK. |
Putting this on hold, since in jenkinsci/jackson2-api-plugin#82 I figured out the root cause (a design problem in Jackson/StAX/Woodstox) and a way to work around the problem at each call site, implemented for |
It may still be worth hot-fixing it with this patch, the above work-around doesn't seem to work fully, and there's at least 2 plugins affected. I've raised an upstream patch to jackson which may make this better in the future |
I leave the decision to the members of the Jenkins core team, including you and Jesse. My preference, as stated in this PR description and in jenkinsci/jackson2-api-plugin#82, is to restore functionality for end users ASAP by re-adding Woodstox to Jenkins core (as proposed in this PR) and to try the removal again later on when we are more confident that it won't cause problems. |
This seems reasonable. |
There's now a fix merged into Jackson upstream which has been verified to fix this issue. Timeline for jackson @basil did raise a workaround in the plugin but there's more patching needed, and a risk we will be miss places. I think we can safely re-add this to the war and remove after:
|
Partial revert of #5559, which removed
stax-api-1.0.1.jar
,stax-api-1.0-2.jar
, andwstx-asl-3.2.9.jar
from the WAR under the premise that StAX was now provided by the Java Platform. While removing the first two JARs caused no problems, removingwstx-asl-3.2.9.jar
(a StAX implementation, in particular the very old Woodstox 3.2.9) was apparently too aggressive and did cause jenkinsci/azure-storage-plugin#194. As a hotfix, restore the working status quo by re-addingwstx-asl-3.2.9.jar
to the WAR. I verified that this chases away jenkinsci/azure-storage-plugin#194. In the future, it would be good to rationalize our usage of StAX/Jackson/Woodstox across core and the Jackson 2 API plugin and eliminate this old dependency from core. In particular, we shouldn't need to ship Woodstox in core at all, but rather the Jackson 2 API plugin should provide a modern version ofjackson-databind-xml
and Woodstox to all dependent plugins. That is a bit more work and I couldn't complete it in a few hours. In the meantime the regression in core needs to be fixed ASAP.Proposed changelog entries
Fix a regression in 2.298 where some plugins (including Azure Storage) could not correctly parse streaming XML output.
Proposed upgrade guidelines
N/A
Submitter checklist
Proposed changelog entries
section only if there are breaking changes or other changes which may require extra steps from users during the upgradeDesired reviewers
@mention
Maintainer checklist
Before the changes are marked as
ready-for-merge
:Proposed changelog entries
are correctupgrade-guide-needed
label is set and there is aProposed upgrade guidelines
section in the PR title. (example)lts-candidate
to be considered (see query).