Skip to content
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

[BUG] XML entities are not encoded in service files #34

Open
kbabioch opened this issue Nov 15, 2019 · 0 comments
Open

[BUG] XML entities are not encoded in service files #34

kbabioch opened this issue Nov 15, 2019 · 0 comments
Labels

Comments

@kbabioch
Copy link

firewalld-formular will render the following pillar data into a XML service file:

  services:
    monitoring:
      short: monitoring
      description: >-
        These ports are required for monitoring based on check_mk & NRPE.
      ports:
        tcp:
          - 5665
          - 6556

However it does not encode XML entities (such as & into &, which leads to the service not being loaded into firewalld` and the following error message:

ERROR: Failed to load service file
'/etc/firewalld/services/monitoring.xml': INVALID_SERVICE: not a valid
service file: not well-formed (invalid token): line 9, column 74

Hence, this service will not be loaded and the firewall behaves differently than expected.

@kbabioch kbabioch added the bug label Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant