Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-1121

Enduser form customization does not work with empty section in edit mode

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.0.4, 2.1.0
    • Component/s: enduser
    • Labels:
      None

      Description

      Edit customForm.json in order to have an empty section, for example:

      {
        "PLAIN":
                {
                  "show": true,
                  "attributes": {
                    "firstname": {
                      "readonly": true,
                      "defaultValues": ["defaultFirstname1", "defaultFirstname2"]
                    },
                    "surname": {
                      "readonly": false,
                      "defaultValues": []
                    },
                    "fullname": {
                      "readonly": false
                    },
                    "email": {
                      "readonly": false,
                      "defaultValues": ["test@apache.org"]
                    },
                    "userId": {
                      "readonly": false
                    },
                    "cool": {
                      "readonly": true,
                      "defaultValues": ["true"]
                    },
                    "additional#loginDate": {
                      "readonly": false
                    },
                    "additional#cool": {
                      "readonly": false,
                      "defaultValues": ["true"]
                    }
                  }
                }
      }
      

      Then run Syncope (for example embedded mode) and self-edit user (puccini for example).
      Logs will show NPE and attributes will not be populated.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andrea.patricelli Andrea Patricelli
                Reporter:
                andrea.patricelli Andrea Patricelli
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: