Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-6156

orderedlist uitype in service config breaks when updated

    Details

    • Sprint:
      Sprint 84 - Sustaining
    • Support Ticket IDs:

      Description

      Using a uitype of orderedlist prevents any edits to that attribute value in the service's page by deleting all values when any edit is made causing data loss.

      1) Use ssoadm.jsp's create-svc feature to register the very simple global config service below.
      2) Place a TestServiceLabels.properties file in WEB-INF/classes with the following properties:

      test-service=TEST Service
      b-environments=Environments

      2) sign in to openam as amadmin and go to Configuration tab, Global sub tab
      3) in the Global Properties table select the service's new link "TEST Service"
      4) In the TEST Service editing page add a value to Environments ordered list box or simply change the order of any item in the list and press the Save button.
      5) press the "Back to Service Configuration" button.
      6) Again select the "TEST Service" link
      7) Note that all values in the Environments list have now disappeared.

      Restarting the server makes no difference either.

      XML Service Descriptor Content:

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <!DOCTYPE ServicesConfiguration
      PUBLIC "=//iPlanet//Service Management Services (SMS) 1.0 DTD//EN"
      "jar://com/sun/identity/sm/sms.dtd">
      <ServicesConfiguration>
      <Service name="TestService" version="1.0">
      <Schema
      serviceHierarchy="/DSAMEConfig/TestServiceConfig"
      i18nFileName="TestServiceLabels"
      revisionNumber="1"
      i18nKey="test-service">
      <Global validate="yes" >
      <AttributeSchema name="environments"
      type="list"
      uitype="orderedlist"
      syntax="string"
      i18nKey="b-environments">
      <DefaultValues>
      <Value>[1]=dev</Value>
      <Value>[3]=test</Value>
      <Value>[2]=int</Value>
      <Value>[0]=stage</Value>
      <Value>[5]=prod</Value>
      </DefaultValues>
      </AttributeSchema>
      </Global>
      <!--
      Having an Organization declaration is required before openAM will allows us to save an instance of the
      global SubSchema. Otherwise, it gives an error upon saving saying, "The service does
      not have organization schema." By adding an empty Organization no configuration is added to the Services
      tab for this service in realms but we can persist instances of spInitiatedRedirectUrl.
      -->
      <Organization>
      </Organization>
      </Schema>
      </Service>
      </ServicesConfiguration>

        Attachments

          Activity

            People

            • Assignee:
              markdr Mark de Reeper
              Reporter:
              markrboyd Mark Boyd [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 5h
                5h