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

Adaptive Risk Module new values do not save



    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.0.0, 6.5.0
    •, 6.5.0, 6.0.1
    • authentication
    • OpenJDK Runtime Environment (build 1.8.0_151-b12)
      Apache Tomcat 8.5.23
      Chrome 66.0.3359.117
      Firefox 59.0.2
      AM 6.0.0 Build 3676519ec1 (2018-May-08 10:07)
      CentOS 7 VM
    • Yes
    • Yes
    • No
    • Yes and I used the same an in the description


      Bug description

      Making a change to a field in the Adaptive Risk module and clicking "Save Changes" does not save the changes. This is an out of the box installation, default configuration, top level realm.

      How to reproduce the issue

      1. Top level realm->Authentication->Modules->Add Module create an Adaptive Risk module
      2. On the General tab change Authentication Level to 1
      3. Click Save Changes, nothing appears to save.
      4. Click Failed Authentication tab, click back to General tab and Authentication Level is 0

      Expected behaviour

      The new value is saved
      Current behaviour
      The new value is not saved

      Work around


      Code analysis

      Viewing with Chrome Developer Tools Console I see the following error when I change Authentication level and click Save Changes

      Uncaught TypeError: Cannot read property 'authenticationLevel' of undefined
          at JSONValues.js:115
          at index.js:3395
          at index.js:3073
          at Nr (index.js:2046)
          at Function.mapValues (index.js:3394)
          at r.t (JSONValues.js:114)
          at L.a.e [as getData] (JSONEditorView.js:190)
          at L.a.e [as getData] (FlatJSONSchemaView.js:89)
          at L.a.e [as updateValues] (EditSchemaComponent.js:212)
          at L.a.t [as onSave] (EditSchemaComponent.js:227)
      (anonymous)    @      JSONValues.js:115
      (anonymous)    @      index.js:3395
      (anonymous)    @      index.js:3073
      Nr      @      index.js:2046
      (anonymous)    @      index.js:3394
      t      @      JSONValues.js:114
      e      @      JSONEditorView.js:190
      e      @      FlatJSONSchemaView.js:89
      e      @      EditSchemaComponent.js:212
      t      @      EditSchemaComponent.js:227
      n      @      index.js:3095
      dispatch        @      jquery.js:4409
      m.handle        @      jquery.js:4095





            peter.major Peter Major [X] (Inactive)
            tom.jones Tom Jones [X] (Inactive)
            Filip Kubáň [X] Filip Kubáň [X] (Inactive)
            0 Vote for this issue
            9 Start watching this issue