Re: [Dev] Implement a thirdparty web application using the sample in the doc

2017-11-03 Thread Ushani Balasooriya
Thanks Mushtaq. I will try this.

On Fri, Nov 3, 2017 at 11:38 PM, Mushthaq Rumy  wrote:

> Hi Ushani,
>
> AFAIK you can pass null values to initiate a configurationContext as shown
> in [1]. Something like below would do.
>
> configContext = 
> ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,
> null);
>
> And alternatively you can also try this way.
>
> String endPoint = SERVER_URL + "RemoteUserStoreManagerService";
> RemoteUserStoreManagerServiceStub remoteUserStoreManagerServiceStub = new
> RemoteUserStoreManagerServiceStub(endPoint);
> AuthenticateStub.authenticateStub(userName, password,
> remoteUserStoreManagerServiceStub);
>
> remoteUserStoreManagerServiceStub.addRole(roleName, null, null);
>
> I hope this helps.
>
> [1] - http://shazninazeer.blogspot.com/2014/10/creating-roles-
> and-assigning.html
>
> Thanks & Regards,
> Mushthaq
>
> On Fri, Nov 3, 2017 at 4:33 PM, Ushani Balasooriya 
> wrote:
>
>> Hi,
>>
>> I am going to implement a third party web application for Users and roles
>> creation.
>>
>> Below are the steps I carried out.
>>
>> 1. I have taken the same travelocity web app and customizing it adding a
>> form submission in the home which which loads after the login.
>> 2. I have my jsp form with the correct servlet mapping.
>> 3. In My method, I am trying to add a user role by referring the example
>> given in this doc [1]
>>
>> [1] https://docs.wso2.com/display/IS520/Managing+Users+and+
>> Roles+with+APIs
>>
>> My Question is,
>>
>> Without using the below approach to create a
>> *ConfigurationContextFactory* and authenticating the logged in user,
>> what is the correct way to proceed with my implementation? Since this is
>> looking for the given client.axis2.xml.
>>
>>  try {
>>configContext = ConfigurationContextFactory.cr
>> eateConfigurationContextFromFileSystem(
>>  "repo", "repo/conf/client.axis2.xml");
>>authstub = new AuthenticationAdminStub(configContext, SERVER_URL
>>  + "AuthenticationAdmin");
>>
>>// Authenticates as a user having rights to add users.
>>if (authstub.login("admin", "admin", null)) {
>> cookie = (String) authstub._getServiceClient().g
>> etServiceContext().getProperty(
>>   HTTPConstants.COOKIE_STRING);
>>
>>
>> In order to call the addRole method in UserStoreManager class, I need to
>> set correct value to the *realm*. Please correct me if my understanding
>> is wrong since I am not much familiar with this. Appreciate your advice.
>>
>> *UserRealm realm = WSRealmBuilder.createWSRealm(SERVER_URL, cookie,
>> configContext); *
>> *UserStoreManager storeManager = realm.getUserStoreManager(); *
>>
>> Thanks,
>> --
>> *Ushani Balasooriya*
>> Associate Technical Lead - EE;
>> WSO2 Inc; http://www.wso2.com/.
>> Mobile; +94772636796
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Mushthaq Rumy
> *Software Engineer*
> Mobile : +94 (0) 779 492140 <%2B94%20%280%29%20773%20451194>
> Email : musht...@wso2.com
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middleware.
>
> 
>



-- 
*Ushani Balasooriya*
Associate Technical Lead - EE;
WSO2 Inc; http://www.wso2.com/.
Mobile; +94772636796
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to configure SCIM to generate an email when ask password option is provided for user creation

2017-11-03 Thread Sashika Wijesinghe
Hi All,

I want to create users with ask password option using SCIM 1.1. I have
configured the server as documented in [1].

The below curl command is used to create the user. After executing the curl
command, the user created successfully but did not receive any email
notification for the given email address. This works when I created a user
from the management console and SOAP admin service.

Do we need any further configurations to get this done with SCIM 1.1?

curl -v -k --user admin:admin --data
"{"schemas":[],"userName":"neels","password":"password","wso2Extension":{"askPassword":"true"},"emails":"
sash...@wso2.com"}" --header "Content-Type:application/json"
https://localhost:9444/wso2/scim/Users

[1]
https://docs.wso2.com/display/IS530/Creating+Users+using+the+Ask+Password+Option

Thanks
Sashika




-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [SP]Incremental processing not working with SP + RDBMS

2017-11-03 Thread Gokul Balakrishnan
Hi Charini,

Are you sure that this worked with the RDBMS store before? It has not
supported function namespaces from the start.

Thanks,

On 2 November 2017 at 11:40, Charini Nanayakkara  wrote:

> Hi Suho,
>
> Incremental processing is not working with RDBMS due to a new change
> introduced at RDBMS extension level which rejects function namespaces. I
> will discuss this with Gokul as well and find a solution.
>
> Thank you
> Charini
>
> On Thu, Nov 2, 2017 at 3:10 AM, Sriskandarajah Suhothayan 
> wrote:
>
>>
>> Hi Charini
>>
>> Please look into this.
>>
>> The attached Siddhi file is not compiling with RDBMS Aggregation.
>>
>> Thanks
>> Suho
>>
>> --
>>
>> *S. Suhothayan*
>> Associate Director / Architect
>> *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | blog:
>> http://suhothayan.blogspot.com/ twitter:
>> http://twitter.com/suhothayan  | linked-in:
>> http://lk.linkedin.com/in/suhothayan *
>>
>
>
>
> --
> *Charini Vimansha Nanayakkara*
> Software Engineer at WSO2
>
> Mobile: 0714126293
> E-mail: chari...@wso2.com
> Blog: http://www.charini.me/
>
> 
>



-- 
Gokul Balakrishnan
Senior Software Engineer,
WSO2, Inc. http://wso2.com
M +94 77 5935 789 | +44 7563 570502
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error occurred while generating keys for Default application

2017-11-03 Thread Harsha Kumara
On Thu, Nov 2, 2017 at 11:16 AM, Gayan Gunawardana  wrote:

>
>
> On Wed, Nov 1, 2017 at 3:20 PM, Sanjeewa Malalgoda 
> wrote:
>
>> Hi Gayan,
>> I cannot recall fixing something like this. But can we check same with
>> updated pack as well.
>> We dont see same behavior in default pack with H2.
>>
> Thanks. I will look in a updated pack if I get a time. btw according to my
> understanding no need to invoke createApplicationRegistrationEntry()
> method at this point.
>
In order to occur this exception, there should be entry inserted
to AM_APPLICATION_REGISTRATION. Is this occurs for all users who register
or access the store?. You can check this table and the data before token
generation for particular applcation.

> Thanks,
>> sanjeewa.
>>
>> On Wed, Nov 1, 2017 at 11:54 AM, Gayan Gunawardana 
>> wrote:
>>
>>> Hi All,
>>>
>>> I got this exception first time only when generating keys for Default
>>> application.
>>>
>>> Environment:
>>>
>>>- IS as KM IS-5.3.0 and APIM-2.1.0
>>>- DB postgres-10
>>>- Without patches or wum updates
>>>
>>> Other applications works fine. If I delete Default application and
>>> create new one with same name it works.
>>> Appreciate your input.
>>>
>>> [2017-10-31 20:53:13,463] ERROR - 
>>> ApplicationRegistrationSimpleWorkflowExecutor
>>> Error occurred when updating the status of the Application creation process
>>> org.wso2.carbon.apimgt.api.APIManagementException: Application
>>> 'DefaultApplication' is already registered.
>>> at org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.createApplicationR
>>> egistrationEntry(ApiMgtDAO.java:293)
>>> at org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistration
>>> SimpleWorkflowExecutor.complete(ApplicationRegistrationSimpl
>>> eWorkflowExecutor.java:77)
>>> at org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistration
>>> SimpleWorkflowExecutor.execute(ApplicationRegistrationSimple
>>> WorkflowExecutor.java:54)
>>> at org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalF
>>> orApplicationRegistration(APIConsumerImpl.java:2789)
>>> at org.wso2.carbon.apimgt.impl.UserAwareAPIConsumer.requestAppr
>>> ovalForApplicationRegistration(UserAwareAPIConsumer.java:36)
>>> at org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject.jsFunc
>>> tion_getApplicationKey(APIStoreHostObject.java:385)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>> ssorImpl.java:62)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>>> at org.mozilla.javascript.FunctionObject.call(FunctionObject.ja
>>> va:386)
>>> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime
>>> .java:52)
>>> at org.jaggeryjs.rhino.store.modules.subscription.c4._c_anonymo
>>> us_2(/store/modules/subscription/key.jag:39)
>>> at org.jaggeryjs.rhino.store.modules.subscription.c4.call(/stor
>>> e/modules/subscription/key.jag)
>>> at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRunti
>>> me.java:2430)
>>> at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.
>>> java:269)
>>> at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObjec
>>> t.java:97)
>>> at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime
>>> .java:42)
>>> at org.jaggeryjs.rhino.store.modules.subscription.c0._c_anonymo
>>> us_10(/store/modules/subscription/module.jag:35)
>>> at org.jaggeryjs.rhino.store.modules.subscription.c0.call(/stor
>>> e/modules/subscription/module.jag)
>>> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime
>>> .java:52)
>>> at org.jaggeryjs.rhino.store.site.blocks.subscription.subscript
>>> ion_add.ajax.c0._c_anonymous_1(/store/site/blocks/subscripti
>>> on/subscription-add/ajax/subscription-add.jag:240)
>>> at org.jaggeryjs.rhino.store.site.blocks.subscription.subscript
>>> ion_add.ajax.c0.call(/store/site/blocks/subscription/subscri
>>> ption-add/ajax/subscription-add.jag)
>>> at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime
>>> .java:23)
>>> at org.jaggeryjs.rhino.store.site.blocks.subscription.subscript
>>> ion_add.ajax.c0._c_script_0(/store/site/blocks/subscription/
>>> subscription-add/ajax/subscription-add.jag:3)
>>> at org.jaggeryjs.rhino.store.site.blocks.subscription.subscript
>>> ion_add.ajax.c0.call(/store/site/blocks/subscription/subscri
>>> ption-add/ajax/subscription-add.jag)
>>> at org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto
>>> ry.java:394)
>>> at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime
>>> .java:3091)
>>> at org.jaggeryjs.rhino.store.site.blocks.subscription.subscript
>>> ion_add.ajax.c0.call(/store/site/blocks/subscription/subscri
>>> ption-add/ajax/subscription-add.jag)
>>> at org.jaggeryjs

[Dev] WSO2 Identity Server 5.4.0 Alpha 7 Released!

2017-11-03 Thread Jayanga Kaushalya
The WSO2 Identity and Access Management team is pleased to announce the
release of WSO2 Identity Server 5.4.0 Alpha 7.

You can build the distribution from the source tag
https://github.com/wso2/product-is/releases/tag/v5.4.0-alpha
7 following
the steps below.


*Building from the source*

   1. Install Java7 or above
   2. Install Apache Maven 3.x.x(https://maven.apache.org/download.cgi#)
   3. Get a clone from https://github.com/wso2/product-is.git and checkout
   to v5.4.0-alpha7 tag or you can directly download the source for the tag
   from https://github.com/wso2/product-is/releases/tag/v5.4.0-alpha
   7
   4. Run the one of the below maven commands from product-is directory,
  - *mvn** clean install* (To build the binary and source distributions
  with the tests)
  - *mvn** clean install -Dmaven.test.skip=true* (To build the binary
  and source distributions, without running any of the
unit/integration tests)
   5. You can find the wso2is-5.4.0-alpha7.zip binary distribution in
   product-is/modules/distribution/target directory.

The following list contains all the features, improvements, and bug fixes
available with the WSO2 Identity Server 5.4.0 Alpha 7 release.
Bug

   - [IDENTITY-4897 ] -
   Narrower scopes using refresh token
   - [IDENTITY-6840 ] - TOTP is
   not working with WUM updated IS-KM 5.3.0 pack

Improvement

   - [IDENTITY-6473 ] - UI
   Improvements in Users screens
   - [IDENTITY-6474 ] - UI
   improvements in 'Roles' screens
   - [IDENTITY-6476 ] - Common
   UI Improvements in mgt console
   - [IDENTITY-6837 ] - Service
   provider specific custom pages cannot be defined for claims.do servlet
   context
   - [IDENTITY-6839 ] - When
   the refresh token is expired, it sends "invalid_request" error to the
   client instead of "inavlid_grant"


*Contribute to WSO2 Identity Server*

*Mailing Lists*

Join our mailing lists and correspond with the developers directly. We also
encourage you to take part in discussions related to the product in the
architecture mailing list. If you have any questions regarding the product
you can use our StackOverflow forum to raise them as well.

   - Developer List: dev@wso2.org
   - Architecture List: architect...@wso2.org
   - User Forum: StackOverflow
   

Reporting Issues
We encourage you to report issues, improvements, and feature requests
regarding WSO2 Identity Server through our public WSO2 Identity Server JIRA
.

~ The WSO2 Identity and Access Management Team ~

*Jayanga Kaushalya*
Software Engineer
Mobile: +94777860160
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Implement a thirdparty web application using the sample in the doc

2017-11-03 Thread Mushthaq Rumy
Hi Ushani,

AFAIK you can pass null values to initiate a configurationContext as shown
in [1]. Something like below would do.

configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,
null);

And alternatively you can also try this way.

String endPoint = SERVER_URL + "RemoteUserStoreManagerService";
RemoteUserStoreManagerServiceStub remoteUserStoreManagerServiceStub = new
RemoteUserStoreManagerServiceStub(endPoint);
AuthenticateStub.authenticateStub(userName, password,
remoteUserStoreManagerServiceStub);

remoteUserStoreManagerServiceStub.addRole(roleName, null, null);

I hope this helps.

[1] -
http://shazninazeer.blogspot.com/2014/10/creating-roles-and-assigning.html

Thanks & Regards,
Mushthaq

On Fri, Nov 3, 2017 at 4:33 PM, Ushani Balasooriya  wrote:

> Hi,
>
> I am going to implement a third party web application for Users and roles
> creation.
>
> Below are the steps I carried out.
>
> 1. I have taken the same travelocity web app and customizing it adding a
> form submission in the home which which loads after the login.
> 2. I have my jsp form with the correct servlet mapping.
> 3. In My method, I am trying to add a user role by referring the example
> given in this doc [1]
>
> [1] https://docs.wso2.com/display/IS520/Managing+Users+and+Roles+with+APIs
>
> My Question is,
>
> Without using the below approach to create a *ConfigurationContextFactory*
> and authenticating the logged in user, what is the correct way to proceed
> with my implementation? Since this is looking for the given
> client.axis2.xml.
>
>  try {
>configContext = ConfigurationContextFactory.
> createConfigurationContextFromFileSystem(
>  "repo", "repo/conf/client.axis2.xml");
>authstub = new AuthenticationAdminStub(configContext, SERVER_URL
>  + "AuthenticationAdmin");
>
>// Authenticates as a user having rights to add users.
>if (authstub.login("admin", "admin", null)) {
> cookie = (String) authstub._getServiceClient().getServiceContext().
> getProperty(
>   HTTPConstants.COOKIE_STRING);
>
>
> In order to call the addRole method in UserStoreManager class, I need to
> set correct value to the *realm*. Please correct me if my understanding
> is wrong since I am not much familiar with this. Appreciate your advice.
>
> *UserRealm realm = WSRealmBuilder.createWSRealm(SERVER_URL, cookie,
> configContext); *
> *UserStoreManager storeManager = realm.getUserStoreManager(); *
>
> Thanks,
> --
> *Ushani Balasooriya*
> Associate Technical Lead - EE;
> WSO2 Inc; http://www.wso2.com/.
> Mobile; +94772636796
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Mushthaq Rumy
*Software Engineer*
Mobile : +94 (0) 779 492140 <%2B94%20%280%29%20773%20451194>
Email : musht...@wso2.com
WSO2, Inc.; http://wso2.com/
lean . enterprise . middleware.


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to configure SCIM to generate an email when ask password option is provided for user creation

2017-11-03 Thread Sathya Bandara
Hi Sashika,

I guess the documentation is missing some configuration details. The
askPassword and verifyEmail extension attributes should be configured in
$SERVER_HOME/repository/conf/scim-schema-extension.config file in addition
to the other extension attributes which are already defined there, as
follows.

{
"attributeURI":"urn:scim:schemas:extension:wso2:1.0:wso2Extension.askPassword",
"attributeName":"askPassword",
"dataType":"boolean",
"multiValued":"false",
"multiValuedAttributeChildName":"null",
"description":"The User's manager",
"schemaURI":"urn:scim:schemas:extension:wso2:1.0",
"readOnly":"false",
"required":"false",
"caseExact":"false",
"subAttributes":"null"
},


{
"attributeURI":"urn:scim:schemas:extension:wso2:1.0:wso2Extension.verifyEmail",
"attributeName":"verifyEmail",
"dataType":"boolean",
"multiValued":"false",
"multiValuedAttributeChildName":"null",
"description":"The User's manager",
"schemaURI":"urn:scim:schemas:extension:wso2:1.0",
"readOnly":"false",
"required":"false",
"caseExact":"false",
"subAttributes":"null"
},

These two attributes should be added to the list of subAttributes of the
urn:scim:schemas:extension:wso2:1.0 entry which can be find at the end of
the scim-schema-extension.config file as shown below.

{
"attributeURI":"urn:scim:schemas:extension:wso2:1.0",
"attributeName":"wso2Extension",
"dataType":"null",
"multiValued":"false",
"multiValuedAttributeChildName":"null",
"description":"SCIM wso2 User Schema Extension",
"schemaURI":"urn:scim:schemas:extension:wso2:1.0",
"readOnly":"false",
"required":"false",
"caseExact":"false",
"subAttributes":"employeeNumber costCenter organization division department
manager askPassword verifyEmail"
}


Also The correct approach to create claim mappings for SCIM extension
attributes is by configuring external claims for the default SCIM dialect
(scim:schemas:core:1.0) and not by creating a separate dialect for the
extension schema (scim:schemas:extension:wso2:1.0:wso2Extension). This is
already identified in [1] and the relevant documents has been updated.
Please refer Claim Mapping section in [2]. Also I will create a Doc JIRA to
improve the documentation with necessary configuration details in [3].


[1] https://wso2.org/jira/browse/DOCUMENTATION-4647
[2]
https://docs.wso2.com/display/IS530/Extensible+SCIM+User+Schemas+With+WSO2+Identity+Server
[3]
https://docs.wso2.com/display/IS530/Creating+Users+using+the+Ask+Password+Option

Thanks,
Sathya



On Fri, Nov 3, 2017 at 2:46 PM, Sashika Wijesinghe  wrote:

> Hi All,
>
> I want to create users with ask password option using SCIM 1.1. I have
> configured the server as documented in [1].
>
> The below curl command is used to create the user. After executing the
> curl command, the user created successfully but did not receive any email
> notification for the given email address. This works when I created a user
> from the management console and SOAP admin service.
>
> Do we need any further configurations to get this done with SCIM 1.1?
>
> curl -v -k --user admin:admin --data "{"schemas":[],"userName":"
> neels","password":"password","wso2Extension":{"askPassword":
> "true"},"emails":"sash...@wso2.com"}" --header "Content-Type:application/json"
> https://localhost:9444/wso2/scim/Users
>
> [1] https://docs.wso2.com/display/IS530/Creating+Users+
> using+the+Ask+Password+Option
>
> Thanks
> Sashika
>
>
>
>
> --
>
> *Sashika WijesingheSoftware Engineer - QA Team*
> Mobile : +94 (0) 774537487
> sash...@wso2.com
>



-- 
Sathya Bandara
Software Engineer
WSO2 Inc. http://wso2.com
Mobile: (+94) 715 360 421 <+94%2071%20411%205032>

<+94%2071%20411%205032>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-11-03 Thread aditya shivankar
Hi

Thanks . That Works..
Thanks to all (  Himasha Guruge, Sudharma Subasinghe, Manorama
Perera,Vinod Kavinda...  ) who worked on the issue.

With Regards,
Aditya




On 10/30/17, Himasha Guruge  wrote:
> Hi Aditya,
>
> The list parameters available for different transformations are available
> in [1]. For your current requirement, could you try adding below property
> in EI/conf/synapse.properties and restart the server?
>
> *synapse.commons.json.output.xmloutMultiplePI=true*
>
> I have tried it out with the proxy you have provided and it returns the
> expected output.
>
> {
> "id": 3,
> "parts": [
> "Screen"
> ],
> "test": [],
> "numberTest": 40,
> "make": "Tamsung"
> }
>
> [1]
> https://docs.wso2.com/display/EI611/JSON+Support#JSONSupport-XMLtoJSONtransformationparameters
>
> Thanks,
> Himasha
>
> On Sun, Oct 29, 2017 at 9:42 PM, aditya shivankar <
> shivankar.adit...@gmail.com> wrote:
>
>> Hi Sudharma,
>>
>> I tried adding below line in synapse.properties file present
>> at C:\wso2ei-6.1.1-update7\conf this location and restarted the server.
>>
>> synapse.json.to.xml.processing.instruction.enable=true.
>>
>> Still it did not work.
>>
>> Do let me know , if I did anything wrong.
>>
>> With Regards,
>> Aditya
>>
>> On Sun, Oct 29, 2017 at 8:58 PM, aditya shivankar <
>> shivankar.adit...@gmail.com> wrote:
>>
>>> Hi Sudharma,
>>>
>>> Thanks for you reply.
>>> As per previous mail suggestion, I downloaded wso2ei-6.1.1-update7, and
>>> ran the same application on it.
>>> But I did not get the expected result.
>>>
>>> Request I fired through postman.
>>>
>>> {
>>> "id" : "3",
>>> "parts" : ["Screen"],
>>> "test" : [],
>>> "numberTest" : 40
>>> }
>>>
>>>
>>> Response received :
>>>
>>> {
>>> "id": 3,
>>> "parts": "Screen",
>>> "numberTest": 40,
>>> "make": "Tamsung"
>>> }
>>>
>>> Please Guide. Array is still absent in response.
>>>
>>>
>>> With Regards,
>>> Aditya
>>>
>>>
>>>
>>>
>>> On Sun, Oct 29, 2017 at 3:55 PM, Sudharma Subasinghe
>>> 
>>> wrote:
>>>
 These fixes are available with the latest release Enterprise Integrator
 6.1.1-update7. which is available for download from here
 .

 Thanks
 Sudharma

 On Sun, Oct 29, 2017 at 12:58 PM, aditya shivankar <
 shivankar.adit...@gmail.com> wrote:

> Hi Sudharma,
>
> Thanks for the reply.
> Request you to please provide a link to download the version of wso2
> esb(WSO2
> EI) , in which these defects are fixed. So that I do not end up , in
> downloading wrong versions.
> Thanks
>
> With Regards,
> Aditya
>
> On Fri, Oct 27, 2017 at 4:49 PM, Sudharma Subasinghe <
> sudhar...@wso2.com> wrote:
>
>> Hi Aditya,
>>
>> This has been fixed with[1] and you can try with latest WSO2
>> Enterprise Integrator(WSO2 EI), integrator profile. There you can
>> avoid
>> above both issues by enabling
>> *synapse.json.to.xml.processing.instruction.enable
>> *in synapse.properties file.
>>
>> Please refer[2] for more info about using EI.
>>
>> [1] https://wso2.org/jira/browse/ESBJAVA-4721
>> [2] https://docs.wso2.com/display/EI611/
>>
>> Thanks
>> Sudharma
>>
>> On Thu, Oct 26, 2017 at 3:00 PM, aditya shivankar <
>> shivankar.adit...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Few more similar things, I found regarding this same flow .
>>> If the request consists of an empty. It gets disappeared in response
>>> completely.
>>> For E.g.
>>>
>>> Request :
>>>{
>>> "id" : "3",
>>> "parts" : ["Screen"],
>>> "test" : [],
>>> "numberTest" : 40
>>> }
>>>
>>>
>>> Actual Response :
>>> {
>>> "id": "3",
>>> "parts": "Screen",
>>> "numberTest": "40",
>>> "make": "Tamsung"
>>>}
>>>
>>> Desired Response :
>>> {
>>>"id": "3",
>>>"parts": ["Screen"],
>>>"test" : [],
>>>"numberTest": "40",
>>>"make": "Tamsung"
>>> }
>>>
>>>
>>> Issue :
>>>
>>>   In the actual response , the empty array named "test" is missing.
>>>
>>>   So overall there are two issues scenarios.
>>> 1. When there is a array in request , with a single(one) element in
>>> it .
>>> 2. When there is an empty array in request.
>>>
>>>
>>> With Regards,
>>> Aditya
>>> 
>>> 
>>> ---
>>>
>>> On Wed, Oct 25, 2017 at 5:37 PM, aditya shivankar <
>>> shivankar.adit...@gmail.com> wrote:
>>>
 Hi,

 Let me reformat(summarize) the remaining issue now, as one issue is
 resolved.
 

[Dev] MessageContext and CAR Name

2017-11-03 Thread Melodias
Hi,
It is possible to get from MessageContext name of CAR(Composite Application
Project) for proxy?



--
Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-Development-f3.html
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] [C5] package-lock.json files are untracked

2017-11-03 Thread Harsha Kumara
Adding Chanka.

@Chanka what would be the best here. To ignore or commit it? @Menuka it
seems we can ignore it from the .gitignire as per you reference issues.
Let's add a pull request and fix it.

On Thu, Nov 2, 2017 at 1:41 PM, Menuka Warushavithana 
wrote:

> Hi all,
> I have created a GitHub issue for $subject. [1]
> AFAIK package-lock.json files should either be committed or ignored (added
> to .gitignore) to avoid unexpected results. [2]
> Or the generation of package-lock.json could be disabled altogether by
> adding the line 'package-lock=false' to the .npmrc file. [3]
>
>
> [1] https://github.com/wso2/carbon-apimgt/issues/4676
> [2] https://github.com/nodejs/citgm/issues/451
> [3] https://github.com/hapijs/contrib/issues/114
>
> Regards
>
> *Menuka Warushavithana*
> *Software Engineering Intern*
> *WSO2*
>
> *Moblie:  + <%2B%2094%2011%202145345%20%C2%A0Ext.%205737> 94 77
> 6979690*
> *LinkedIn:   **https://www.linkedin.com/in/menukawarushavithana/
> *
> *GitHub:  **https://github.com/menuka94/
> *
>
>
>


-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] RabbitMQ connection related errors on WSO2 startup

2017-11-03 Thread Norberto Fernandes
Hi,

Any ideias on the below issue? 
Already tried to run the IE with SNAPSHOT versions of axis and rabbitmq jar 
files but had the same outcome. 

This looks like a main issue for scenarios where we have one wso2 node 
connecting to rabbitmq cluster. 

Regards,
Norberto

> On 2 Nov 2017, at 16:09, Norberto Fernandes  wrote:
> 
> Hi all,
> 
> I am getting some strange errors while starting up the WSO2 6.1.1 server. 
> Hope that you can help. 
> 
> So, I have a single node WSO2 Server running and connecting to a RabbitMQ 
> node (rmqNode1) that is part of a cluster of two (rmqNode1 and rmqNode2). 
> Have in mind that all the transportSender and listeners are pointing to 
> rmqNode1. No connection details are defined for rmqNode2. 
> 
> 
> If I have the two RabbitMQ cluster nodes up and running and start the WSO2 
> 6.1.1 server there isn’t any issue. 
> With all servers up, if I shutdown rmqNode2, all continues ok with no errors. 
> 
> If I only have rmqNode1 up and then start WSO2 6.1.1, I get a endless stream 
> of errors like : 
> TID: [-1] [] [2017-11-02 15:34:48,232] ERROR 
> {org.apache.axis2.transport.rabbitmq.ServiceTaskManager} -  Error, Connection 
> already closed myProxysample, Listner id - 78 
> {org.apache.axis2.transport.rabbitmq.ServiceTaskManager}
> com.rabbitmq.client.AlreadyClosedException: channel is already closed due to 
> channel error; protocol method: #method(reply-code=404, 
> reply-text=NOT_FOUND - home node 'rabbit@node2.site1' of durable queue 
> ’sample.queue' in vhost ’sample' is down or inaccessible, class-id=50, 
> method-id=10)
>   at com.rabbitmq.client.impl.AMQChannel.ensureIsOpen(AMQChannel.java:198)
>   at com.rabbitmq.client.impl.AMQChannel.rpc(AMQChannel.java:244)
>   at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:222)
>   at 
> com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:117)
>   at com.rabbitmq.client.impl.ChannelN.queueDeclare(ChannelN.java:925)
>   at 
> com.rabbitmq.client.impl.recovery.AutorecoveringChannel.queueDeclare(AutorecoveringChannel.java:332)
>   at 
> org.apache.axis2.transport.rabbitmq.utils.RabbitMQUtils.declareQueue(RabbitMQUtils.java:213)
>   at 
> org.apache.axis2.transport.rabbitmq.ServiceTaskManager$MessageListenerTask.initConsumer(ServiceTaskManager.java:527)
>   at 
> org.apache.axis2.transport.rabbitmq.ServiceTaskManager$MessageListenerTask.run(ServiceTaskManager.java:335)
>   at 
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>   at java.lang.Thread.run(Thread.java:748)
> TID: [-1234] [] [2017-11-02 15:34:48,267]  INFO 
> {org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector for 
> servlet write/read {org.apache.tomcat.util.net.NioSelectorPool}
> TID: [-1] [] [2017-11-02 15:34:48,303]  INFO 
> {org.apache.axis2.transport.rabbitmq.ServiceTaskManager} -  Successfully 
> reconnected to RabbitMQ Broker for the service myProxysampleSecond, Listner 
> id - 78 {org.apache.axis2.transport.rabbitmq.ServiceTaskManager}
> TID: [-1] [] [2017-11-02 15:34:48,243] ERROR 
> {org.apache.axis2.transport.rabbitmq.ServiceTaskManager} -  Error, Connection 
> already closed STD.cacheXRefReceiver.1.0.0, Listner id - 77 
> {org.apache.axis2.transport.rabbitmq.ServiceTaskManager}
> com.rabbitmq.client.AlreadyClosedException: channel is already closed due to 
> channel error; protocol method: #method(reply-code=404, 
> reply-text=NOT_FOUND - home node 'rabbit@node2.site1' of durable queue 
> ’second.sample.queue' in vhost 'sample' is down or inaccessible, class-id=50, 
> method-id=10)
>   at com.rabbitmq.client.impl.AMQChannel.ensureIsOpen(AMQChannel.java:198)
> 
> Please note that node2.site1 is the hostname for rmqNode2. 
> I don’t think the server should complain about this. The node that is used on 
> the transport configuration is always node1. 
> 
> 
> Any ideias on what may be incorrect? Or can be done ? 
> I didn’t find any connection parameter that is related to cluster setup, is 
> there any? 
> 
> 
> Many thanks in advance. 
> 
> Norberto

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS][OAuth] Token Response request validation

2017-11-03 Thread Nuwandi Wickramasinghe
+1
I will work on refactoring

On Friday, November 3, 2017, Isura Karunaratne  wrote:
>
> On Thu, Nov 2, 2017 at 9:37 PM Danushka Fernando 
wrote:
>>
>> @Isura
>> Thanks for pointing out. But still there is a dead code there which will
never get triggered right? Shall we refactor that code?
>
> +1
> @Nuwandi,
> Can you work on this refactoring?
> Thanks
> Isura.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Associate Tech Lead
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>> On Thu, Nov 2, 2017 at 9:08 PM, Isura Karunaratne  wrote:
>>>
>>> Hi Danushka,
>>> Other than the responseType validation validateAccessDelegation
method does the OAuth callback handles invocation. OAuth callback handler
is an extension point that can be used to validate the access based on
>>>
>>> AuthenticatedUser
>>> Consumer Key
>>> Scopes
>>> ResponseType
>>>
>>> We can register new CallBackHandlers based on the requirements and
configure it in identity.xml file
>>>   
>>> 
>>> 
>>> Thanks
>>> Isura.
>>> On Thu, Nov 2, 2017 at 2:54 PM, Danushka Fernando 
wrote:

 Hi All
 When access token, id token, auth code or open id token is requested,
it will go through AuthorizationHandlerManager[1] class to authorize the
client. There are three authorization steps [2].

 First check is isAuthorized check. Here it checks whether its
requesting a token or a code and according to that it will check implicit
or code grant types are allowed for the application and returns true of
false.[3]
 Second check is validateAccessDelegation check. Here also it checks
the request type and will check allowance of implicit or code grant types
and returns true or false.[4]
 Third is scope validation

 So according to this analysis both check #1 and #2 are doing the same
thing and I don't see a way of check #1 getting passed and check #2 getting
failed. Please correct me if I am wrong.
 If this is correct shall we do the necessary adjustment to reduce the
complexity of the code?

 [1]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authz/AuthorizationHandlerManager.java
 [2]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authz/AuthorizationHandlerManager.java#L100-L123
 [3]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authz/handlers/AbstractResponseTypeHandler.java#L128-L165
 [4]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authz/handlers/AbstractResponseTypeHandler.java#L66-L104

 Thanks & Regards
 Danushka Fernando
 Associate Tech Lead
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729
>>>
>>>
>>> --
>>> Isura Dilhara Karunaratne
>>> Associate Technical Lead | WSO2
>>> Email: is...@wso2.com
>>> Mob : +94 772 254 810
>>> Blog : http://isurad.blogspot.com/
>>>
>>>
>>
> --
> Isura Dilhara Karunaratne
> Associate Technical Lead | WSO2
> Email: is...@wso2.com
> Mob : +94 772 254 810
> Blog : http://isurad.blogspot.com/
>
>
>

-- 

Best Regards,

Nuwandi Wickramasinghe

Software Engineer

WSO2 Inc.

Web : http://wso2.com

Mobile : 0719214873
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Implement a thirdparty web application using the sample in the doc

2017-11-03 Thread Ushani Balasooriya
Hi,

I am going to implement a third party web application for Users and roles
creation.

Below are the steps I carried out.

1. I have taken the same travelocity web app and customizing it adding a
form submission in the home which which loads after the login.
2. I have my jsp form with the correct servlet mapping.
3. In My method, I am trying to add a user role by referring the example
given in this doc [1]

[1] https://docs.wso2.com/display/IS520/Managing+Users+and+Roles+with+APIs

My Question is,

Without using the below approach to create a *ConfigurationContextFactory*
and authenticating the logged in user, what is the correct way to proceed
with my implementation? Since this is looking for the given
client.axis2.xml.

 try {
   configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(
 "repo", "repo/conf/client.axis2.xml");
   authstub = new AuthenticationAdminStub(configContext, SERVER_URL
 + "AuthenticationAdmin");

   // Authenticates as a user having rights to add users.
   if (authstub.login("admin", "admin", null)) {
cookie = (String)
authstub._getServiceClient().getServiceContext().getProperty(
  HTTPConstants.COOKIE_STRING);


In order to call the addRole method in UserStoreManager class, I need to
set correct value to the *realm*. Please correct me if my understanding is
wrong since I am not much familiar with this. Appreciate your advice.

*UserRealm realm = WSRealmBuilder.createWSRealm(SERVER_URL, cookie,
configContext); *
*UserStoreManager storeManager = realm.getUserStoreManager(); *

Thanks,
-- 
*Ushani Balasooriya*
Associate Technical Lead - EE;
WSO2 Inc; http://www.wso2.com/.
Mobile; +94772636796
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 BPS REST API and query with variables filtering

2017-11-03 Thread Thomas LEGRAND
Hello Himasha,

Thank for your answer but the documentation says that transient variables
are not persisted in the history. And I used variables to filter on the
historic-* tables. And another problem with transient variables is that I
am using the REST API to instanciate new processes and not the Java API.

However, I found a workaround to my problem and I don't know if we can say
that it is clean or not. I am using the description field of the user task
to add the information I need. So, the variables are located in the process
instances, and in the description field of the task under the pattern:
var1=value1|var2=value2|var3=... That way, I can filter on the variables
via the query API without asking for the returning of all of them because
for each task I receive, I will be able to extract them from the
description field.

I suspect the return takes a very long time because it may have to make a
request of the variables for each returned historic-task-instance. So if we
have 10 variables for 10 task instances, we will have 10 * 10 requests?
That is just a theory.

Regards,

Thomas

2017-11-02 4:36 GMT+01:00 Himasha Guruge :

> Hi Thomas,
>
> Could you try using TransientVariables[1] for your use-case? REST api
> provided through WSO2 BPS is actually wrapping the REST API provided by
> Activiti.In [2] it suggests that transient variables might be better for
> performance.
>
> [1] https://www.activiti.org/userguide/#apiTransientVariables
> [2] http://www.jorambarrez.be/blog/2016/09/01/how-to-use-
> transient-variables-in-activiti/
>
> Thanks
> Himasha
>
> On Wed, Nov 1, 2017 at 12:33 AM, Thomas LEGRAND <
> thomas.legr...@versusmind.eu> wrote:
>
>> Hello everybody,
>>
>> I am creating an interface to display the list of the current user tasks
>> waiting for approval. In this list, I display some information provided by
>> the variables inside the process instances. For example, it can be the id
>> of an object that I defined during the creation of the instance of the
>> process.
>>
>> To retrieve the information for the list, I am using the REST API. But,
>> because I would like the user to be able to filter the list with criteria,
>> I am using the query endpoint for the tasks to be able to filter by the
>> values of the variables in the instances.
>>
>> However, I have a problem because it seems that I have huge
>> responsiveness lag when I want the REST API to return the current state of
>> the variables of the instances. Actually, when I send a query request, it
>> takes around 40 seconds for the server to respond, if it does not time out.
>> The problem disappears when I don't set the attribute to retrieve the list
>> of the variables in my query request.
>>
>> For example, this one causes problems:
>>
>> {
>> "includeProcessVariables": true
>> "variables": [
>> {
>> "name": "group",
>> "operation": "equals",
>> "value": "MyGroupName
>> }
>> ]
>> }
>>
>> whereas this one causes no problems:
>> {
>> "variables": [
>> {
>> "name": "group",
>> "operation": "equals",
>> "value": "MyGroupName
>> }
>> ]
>> }
>>
>> I don't see other way to retrieve "custom" informations from a process
>> instance except by using the variables. And because this is a list I want
>> to display, it is really overkill to retrieve the list of the instances to
>> loop on each one of them to retrieve their variables.
>>
>> Of course, in this example, I try to retrieve the current pending
>> instances because one of their user task is waiting to be unblocked by a
>> user. But I am doing the same thing to retrieve a list of already finished
>> tasks/process instances (so by using the historic-task-instances endpoint).
>> And I have exactly the same problem. Too much time to respond or time out.
>>
>> So, here are my questions:
>>
>> - Do you have any idea from where those "latency" problems could come
>> from?
>> - Do you know if I can use the Activiti Java API with the embedded
>> Activiti in the WSO2 Business Process Server?
>>
>> I am using WSO2 Enterprise Integrator 6.0.0.
>>
>> Regards,
>>
>> Thomas
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Himasha Guruge
> Senior Software Engineer
> WS*O2* *Inc.*
> Mobile: +94 777459299 <+94%2077%20745%209299>
> himas...@wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Ask password cannot be configured from management console when using identity REST API

2017-11-03 Thread Sashika Wijesinghe
Hi All,

I faced the same issue "*PasswordInvalidAsk Password Feature
is disabled*" when accessing
the RemoteUserStoreManagerService, addUser() method to add a user with
asking password option when user's credentials are not defined in the
payload.

When an admin user performs this operation from the management console, it
is not required to provide a password. Is there any reason for requesting
to define a password to perform ask password when creating a user with SOAP
admin service?

Thanks
Sashika




On Thu, Jun 15, 2017 at 11:59 AM, Indunil Upeksha Rathnayake <
indu...@wso2.com> wrote:

> Hi,
>
> AFAIK, to differ adding a user with a default password using User On
> boarding feature and adding a user in normal way, we can consider "http://
> wso2.org/claims/identity/askPassword" claim value. And I think in both of
> the above scenarios, when adding a user, credentials shouldn't be null. UI
> validation to be included I guess?
>
> Thanks and Regards
>
> On Wed, Jun 7, 2017 at 9:38 AM, Danushka Fernando 
> wrote:
>
>> Hi Isura
>> What I meant here is, when ASK Password is enabled through
>> identity-mgt.properties, when admin user adds users, we give him two
>> options. Which are enter a default password or send email. So if its new
>> User On boarding feature, we can still let him enter a default password.
>> But problem is with no password case. Are you suggesting to generate a
>> password in this case?
>>
>> Thanks & Regards
>> Danushka Fernando
>> Associate Tech Lead
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729 <+94%2071%20633%202729>
>>
>> On Tue, Jun 6, 2017 at 10:02 PM, Isura Karunaratne 
>> wrote:
>>
>>>
>>>
>>> On Tue, Jun 6, 2017 at 9:12 PM Danushka Fernando 
>>> wrote:
>>>
 So Johan/ Isura
 How should we approach here? If its not new feature we ask user to add
 default password? In that case we dont need this to fixed I guess.

>>>
>>> We shouldn't use a default password, instead we have to generate a
>>> random password.
>>>
>>> Thanks
>>> Isura
>>>

 Thanks & Regards
 Danushka Fernando
 Associate Tech Lead
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729 <+94%2071%20633%202729>

 On Tue, Jun 6, 2017 at 9:02 PM, Johann Nallathamby 
 wrote:

>
>
> On Tue, Jun 6, 2017 at 8:52 PM, Isura Karunaratne 
> wrote:
>
>> Hi Danushka,
>>
>> You have to set a none empty password while adding a user.
>>
>
> Sorry, I saw your reply only after I sent my reply :)
>
>
>>
>> Thanks
>> Isura
>>
>> On Tue, Jun 6, 2017 at 8:46 PM Danushka Fernando 
>> wrote:
>>
>>> Hi All
>>>
>>> I am working on jira [1]. I could enable User Onboarding / ASK
>>> Password New version and then get the UI displayed according to that. 
>>> But
>>> we cannot create user without password here. Reason is following code is
>>> throwing the exception saying ASK Password is disabled. How should we
>>> proceed?
>>>
>>>
>>> package org.wso2.carbon.identity.mgt;
>>>
>>> ...
>>>
>>> public class IdentityMgtEventListener extends 
>>> AbstractIdentityUserOperationEventListener {
>>>
>>> ...
>>>
>>> @Override
>>> public boolean doPreAddUser(String userName, Object credential, 
>>> String[] roleList,
>>> Map claims, String profile,
>>> UserStoreManager userStoreManager) throws 
>>> UserStoreException {
>>>
>>>
>>> if (!isEnable()) {
>>> if (credential == null || 
>>> StringUtils.isBlank(credential.toString())) {
>>> log.error("Identity Management listener is disabled");
>>> throw new UserStoreException(PASSWORD_INVALID + 
>>> ASK_PASSWORD_FEATURE_IS_DISABLED);
>>> }
>>> return true;
>>> }
>>>
>>>
>>> [2017-06-06 19:45:43,491] ERROR 
>>> {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} -  Identity 
>>> Management listener is disabled[2017-06-06 19:45:43,493] ERROR 
>>> {org.wso2.carbon.user.mgt.UserRealmProxy} -  PasswordInvalidAsk 
>>> Password Feature is disabled
>>> org.wso2.carbon.user.core.UserStoreException: PasswordInvalidAsk 
>>> Password Feature is disabled
>>> at 
>>> org.wso2.carbon.user.core.common.AbstractUserStoreManager.callSecure(AbstractUserStoreManager.java:172)
>>> at 
>>> org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:1443)
>>> at 
>>> org.wso2.carbon.user.mgt.UserRealmProxy.addUser(UserRealmProxy.java:770)
>>> at 
>>> org.wso2.carbon.user.mgt.UserAdmin.addUser(UserAdmin.java:199)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at 
>>> sun.reflect.Deleg