mysql - WSO2 identity server: phone fields using SCIM don't accept numbers -


i'm using wso2 identity server version 5.0.0 user store on mysql. when try insert user phone numbers, phone number not stored.

curl -v -k --user admin:admin --data "{"schemas":[],"name":{"familyname":"rossi","givenname":"mario"},"username":"rossiusr","password":"rossipsw","emails":"rossim@aaaa.it" ,"phonenumbers":[{"value":"8811","type":"work"},{"value":"3473344555","type":"mobile"}]}" --header "content-type:application/json" https://localhost:9443/wso2/scim/users 

the result is:

connection #0 host localhost left intact {"id":"f6ce5310-a2ee-4976-9579-0299029183bb","schemas":["urn:scim:schemas:core:1.0"],"name":{"familyname":"rossi","givenname":"mario"},"username":"rossiusr","phonenumbers":[{"type":"work"},{"type":"mobile"}],"emails":"rossim@aaaa.it","meta":{"lastmodified":"2015-08-19t16:09:50","location":"https://192.168.3.43:9443/wso2/scim/users/f6ce5310-a2ee-4976-9579-0299029183bb","created":"2015-08-19t16:09:50"}} 

if put char in phone number, works fine:

curl -v -k --user admin:admin --data "{"schemas":[],"name":{"familyname":"rossi","givenname":"mario"},"username":"rossiusr","password":"rossipsw","emails":"rossim@aaaa.it" ,"phonenumbers":[{"value":"_8811","type":"work"},{"value":"_3473344555","type":"mobile"}]}" --header "content-type:application/json" https://localhost:9443/wso2/scim/users 

the result is:

connection #0 host localhost left intact {"id":"3ce83aca-6f70-4274-a2c3-5429132d6001","schemas":["urn:scim:schemas:core:1.0"],"name":{"familyname":"rossi","givenname":"mario"},"username":"rossiusr","phonenumbers":[{"value":"_8811","type":"work"},{"value":"_3473344555","type":"mobile"}],"emails":"rossim@aaaa.it","meta":{"lastmodified":"2015-08-19t16:12:50","location":"https://192.168.3.43:9443/wso2/scim/users/3ce83aca-6f70-4274-a2c3-5429132d6001","created":"2015-08-19t16:12:50"}} 

why? phone number... number!

phone number can stored when enter number within slashes. example : \"3473344555\"

please find modified curl command works fine. curl -v -k --user admin:admin --data "{"schemas":[],"name":{"familyname":"rossi","givenname":"mario"},"username":"rossiusr","password":"rossipsw","emails":"rossim@aaaa.it" ,"phonenumbers":[{"value":\"8811\","type":"work"},{"value":\"3473344555\","type":"mobile"}]}" --header "content-type:application/json" https://localhost:9443/wso2/scim/users

result : {"id":"a5520dfc-aa7c-4b4b-aba2-57df7b87e2e4","schemas":["urn:scim:schemas:core:1.0"],"name":{"familyname":"rossi","givenname":"mario"},"username": "rossiusr","phonenumbers":[{"value":"8811","type":"work"},{"value":"3473344555","type":"mobile"}],"emails":"rossim@aaaa.it","meta":{"lastmodified" :"2016-01-19t11:04:32","location":"https://localhost:9443/wso2/scim/users/a5520dfc-aa7c-4b4b-aba2-57df7b87e2e4","created":"2016-01-19t11:04:32"}}* connection #0 host localhost left intact


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -