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

Home / Admin / Provisioning Groups page generating bad HTML when a provisioning group has an apostrophe in the name

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.8
    • Fix Version/s: 1.8.7, 1.9.3
    • Component/s: Web UI - Admin
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC
    • Bugzilla Id:
      3556

      Description

      Whilst installing and learning OpenNMS, I added a provisioning group that has an apostrophe in it's name called "Greg's Applecross". I'd like to remove this group since I'm not yet sure exactly what provisioning groups are for, however the HTML being generated by this page isn't properly escaping the apostrophe in the provisioning group name, resulting HTML code similar to below being presented:-

      <input type="button" value="Import" onclick="javascript:doAction('Greg's Applecross', 'import')" />
      and
      <a href="javascript:editRequisition('Greg's Applecross')">EDIT</a>

      For fairly obvious reasons, this is causing javascript errors on the page and as a result I'm unable to remove the provisioning group. (or do anything else with it for that matter)

      OpenNMS should either (a) escape apostrophes correctly or (b) not allow group names with an apostrophe in it to be added in the first place.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              robert.hillis@ppsportal.com.au Robert Hillis
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: