Skip to content

Update rexml #17441

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

Draft
wants to merge 2 commits into
base: 7.17
Choose a base branch
from
Draft

Update rexml #17441

wants to merge 2 commits into from

Conversation

andsel
Copy link
Contributor

@andsel andsel commented Mar 28, 2025

Test the removal of ERB comment lines

SPEC_OPTS="-fd -P spec/unit/plugin_manager/proxy_support_spec.rb" ./gradlew :logstash-core:rubyTests --tests org.logstash.RSpecTests --rerun-tasks

Exhaustive tests:
https://buildkite.com/elastic/logstash-exhaustive-tests-pipeline/builds/1624

@andsel andsel self-assigned this Mar 28, 2025
@andsel andsel force-pushed the fix/upgrade_rexml branch from c4db39a to 59eb521 Compare March 28, 2025 16:19
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @andsel

@@ -112,7 +112,7 @@ def configure_proxy
if !proxies.empty?
FileUtils.mkdir_p(SETTINGS_TARGET)
target = ::File.join(SETTINGS_TARGET, "settings.xml")
template = ::File.read(SETTINGS_TEMPLATE)
template = ::File.read(SETTINGS_TEMPLATE).gsub(/(^#.*$)/, '') # removes comment lines starting with #
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for reviewer

With new rexml version, the comment lines are not anymore accepted in erb file. The alternative to this change, is replicate what was done on main, remove the comment header section in file lib/pluginmanager/settings.xml.erb https://github.com/elastic/logstash/blob/7.17/lib/pluginmanager/settings.xml.erb#L1-L16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants