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

provision.pl is not handling properly the 302 and 303 HTTP Responses.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.12.0
    • Fix Version/s: 1.12.1, 1.13.0
    • Component/s: Command-Line Tools
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      After making a change on a requisition using provision.pl, the script is returning the following:

      $ ./provision.pl asset set Local L1002 address1 "Planet Earth"
      303 See Other at ./provision.pl line 679
      main::post('Local/nodes/L1002/assets', 'XML::Twig::Elt=HASH(0x2414bc0)') called at ./provision.pl line 493
      main::cmd_asset('set', 'Local', 'L1002', 'address1', 'Planet Earth') called at ./provision.pl line 110

      But, the change was successfully applied:

      $ ./provision.pl list Local

      • Local (last updated: 2013-08-27T08:36:32.267-04:00)
      • nodes:
      • centos-opennms (foreign ID: L1002)
      • building: Local
      • assets:
      • address1=Planet Earth
      • interfaces:
      • 192.168.32.102 (eth0)
      • SNMP Primary: P
      • Status: 1

      It is expected that provision.pl does not return anything if the command was successfully executed.

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: