syncope-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Chicchiriccò (JIRA) <j...@apache.org>
Subject [jira] [Updated] (SYNCOPE-1121) Enduser form customization does not work with empty section in edit mode
Date Sat, 24 Jun 2017 11:59:00 GMT

     [ https://issues.apache.org/jira/browse/SYNCOPE-1121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Francesco Chicchiriccò updated SYNCOPE-1121:
--------------------------------------------
    Description: 
Edit customForm.json in order to have an empty section, for example:
{code}
{
  "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"]
              }
            }
          }
}
{code}

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

  was:
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.


> Enduser form customization does not work with empty section in edit mode
> ------------------------------------------------------------------------
>
>                 Key: SYNCOPE-1121
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-1121
>             Project: Syncope
>          Issue Type: Bug
>          Components: enduser
>    Affects Versions: 2.0.3
>            Reporter: Andrea Patricelli
>            Assignee: Andrea Patricelli
>             Fix For: 2.0.4, 2.1.0
>
>
> Edit customForm.json in order to have an empty section, for example:
> {code}
> {
>   "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"]
>               }
>             }
>           }
> }
> {code}
> Then run Syncope (for example embedded mode) and self-edit user (puccini for example).
> Logs will show NPE and attributes will not be populated.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message