Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9C747200CB3 for ; Mon, 26 Jun 2017 17:01:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9B462160BD9; Mon, 26 Jun 2017 15:01:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EBF63160BDE for ; Mon, 26 Jun 2017 17:01:04 +0200 (CEST) Received: (qmail 75115 invoked by uid 500); 26 Jun 2017 15:01:04 -0000 Mailing-List: contact dev-help@syncope.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@syncope.apache.org Delivered-To: mailing list dev@syncope.apache.org Received: (qmail 75047 invoked by uid 99); 26 Jun 2017 15:01:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jun 2017 15:01:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 9CADE188ACA for ; Mon, 26 Jun 2017 15:01:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 4Q-9C6YJz4VE for ; Mon, 26 Jun 2017 15:01:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 19FCB5FB62 for ; Mon, 26 Jun 2017 15:01:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0E921E0DD9 for ; Mon, 26 Jun 2017 15:01:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 49F532410F for ; Mon, 26 Jun 2017 15:01:00 +0000 (UTC) Date: Mon, 26 Jun 2017 15:01:00 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: dev@syncope.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SYNCOPE-1121) Enduser form customization does not work with empty section in edit mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 26 Jun 2017 15:01:05 -0000 [ https://issues.apache.org/jira/browse/SYNCOPE-1121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16063214#comment-16063214 ] ASF subversion and git services commented on SYNCOPE-1121: ---------------------------------------------------------- Commit 80f8289defa1a226d140cb95a38a425d98fffa82 in syncope's branch refs/heads/2_0_X from [~andrea.patricelli] [ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=80f8289 ] [SYNCOPE-1121] solved NPE with empty sections while updating user > 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)