Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-13428

Strings with URL arguments are truncated in the eventdescr field

    XMLWordPrintable

Details

    • Horizon 2021 - Sep 15 - 29
    • Hide

      The documentation describes the send-event.pl utility in detail and will also mention the need to escape percentage sign with percentage sign in the event description.

      Show
      The documentation describes the send-event.pl utility in detail and will also mention the need to escape percentage sign with percentage sign in the event description.

    Description

      Events whose description contains a URL with arguments that themselves contain URL-encoded characters, have that URL truncated in an unexpected way.

      This does not affect event parameters, and does not respect CDATA tags in the event description.

      Steps to reproduce:

      1. Send an event, via eventd XML or ReST:

      send-event.pl uei.opennms.org/test/badUrlEvent -x 4 -d 'Test URL https://www.opennms.org/ReportSection?filter=FOO_BAR_BAZ%20eq%20%27101%27' -p 'testUrl https://www.opennms.org/ReportSection?filter=FOO_BAR_BAZ%20eq%20%27101%27'

      2. Find the event in the OpenNMS web UI, and compare the Description field to what was sent.
      3. Find the events.eventdescr and event_parameters.value in the OpenNMS database, and compare them with each other and with what was sent.

      Expected result:
      The full URL should appear in the event description, both in the web UI and in the database

      Actual result:
      The URL is truncated in the event description in both the web UI and the database, but the event parameter's value is not truncated.
      The truncated form is https://www.opennms.org/ReportSection?filter=FOO_BAR_BAZ2027.

      Attachments

        Issue Links

          Activity

            People

              Bonnie Bonnie Robinson
              wkeaney Will Keaney
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.