Re: [Dev] IDENTITY-6965 Intermitent issue in SCIM group creation

2017-11-26 Thread Harsha Thirimanna
On Mon, Nov 27, 2017 at 12:52 PM, Isuranga Perera  wrote:

> Hi
>
> fixed issue [1] with PR [2].
>

​Great thanks and appreciate to ​proactively helping us always Isuranga.

We will review this.



>
> [1] https://wso2.org/jira/browse/IDENTITY-6965
> [2] https://github.com/wso2/charon/pull/81
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] IDENTITY-6965 Intermitent issue in SCIM group creation

2017-11-26 Thread Isuranga Perera
Hi

fixed issue [1] with PR [2].

[1] https://wso2.org/jira/browse/IDENTITY-6965
[2] https://github.com/wso2/charon/pull/81
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Publisher/Store nodes are throwing an error "unable to find valid certification path to requested target"

2017-11-26 Thread Chalitha Waldeniyage
On Mon, Nov 27, 2017 at 12:20 PM, Chalitha Waldeniyage 
wrote:

> Adding  Asela
>
> On Mon, Nov 27, 2017 at 11:26 AM, Chalitha Waldeniyage 
> wrote:
>
>> Hi Harsha/Samitha,
>>
>> Yes i have created a self sign certificate as per [1] and imported all
>> the nginx public keys there. I have verified that with above command as
>> well.
>> Here with I'm attaching the client trust.jks file which i'm using in the
>> servers.
>> Further key manager is fronted via nginx.
>>
>> On Sun, Nov 26, 2017 at 10:09 PM, Samitha Chathuranga 
>> wrote:
>>
>>> Hi Chalitha,
>>>
>>> Are you pointing KM (from other nodes) through load balancer? I don't
>>> think you have done so. And if you have changed the hostnames of the
>>> servers, the default keystore/client-trustore won't work. Refer [1]
>>>
>>> To check which certificates are in a Java keystore, enter the below
>>> command.
>>>
>>> keytool -list -v -keystore client-truststore.jks
>>>
>>>
>>> [1] - https://github.com/wso2/puppet-apim/tree/master/wso2am_runti
>>> me#keystore-and-client-truststore-related-configs
>>>
>>>
>>> Regards,
>>> Samitha
>>>
>>> On Sun, Nov 26, 2017 at 7:17 PM, Harsha Kumara  wrote:
>>>
 Hi Chalitha,

 It seems KM certificate isn't imported to the trustee. Can you verify
 it? If so we will need to fix it.

 Thanks,
 Harsha

 On Sun, Nov 26, 2017 at 1:46 PM, Chalitha Waldeniyage <
 chali...@wso2.com> wrote:

> Hi All,
>
> I'm setting up an APIM cluster puppet patten 6 using APIM 2.1.0 puppet
> scripts[1].
> When I try to generate keys for an application,  pub/store nodes are
> throwing the below error. (IS 5.3.0 used as the Keymanager)
> Additionally in gateway Manager and worker also throwing the similar
> errors in the startup. I have imported the nginx public cert to the each
> node client-truststore.jks file as per instruction in
> [2] .
> Could you please looking to this?
>
>
> *pub/store Node error:*
> TID: [-1234] [] [2017-11-26 06:40:15,956] ERROR
> {org.wso2.carbon.apimgt.impl.APIConsumerImpl} - Could not execute
> Workflow {org.wso2.carbon.apimgt.impl.APIConsumerImpl}
>
> org.wso2.carbon.apimgt.impl.workflow.WorkflowException: Error occurred 
> when updating the status of the Application creation process
>   at 
> org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.complete(ApplicationRegistrationSimpleWorkflowExecutor.java:82)
>   at 
> org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.execute(ApplicationRegistrationSimpleWorkflowExecutor.java:54)
>   at 
> org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalForApplicationRegistration(APIConsumerImpl.java:2789)
>   at 
> org.wso2.carbon.apimgt.impl.UserAwareAPIConsumer.requestApprovalForApplicationRegistration(UserAwareAPIConsumer.java:36)
>   at 
> org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject.jsFunction_getApplicationKey(APIStoreHostObject.java:385)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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.java:386)
>   at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>   at 
> org.jaggeryjs.rhino.store.modules.subscription.c3._c_anonymous_2(/store/modules/subscription/key.jag:39)
>   at 
> org.jaggeryjs.rhino.store.modules.subscription.c3.call(/store/modules/subscription/key.jag)
>   at 
> org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
>   at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
>   at 
> org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
>   at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
>   at 
> org.jaggeryjs.rhino.store.modules.subscription.c0._c_anonymous_10(/store/modules/subscription/module.jag:35)
>   at 
> org.jaggeryjs.rhino.store.modules.subscription.c0.call(/store/modules/subscription/module.jag)
>   at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>   at 
> org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0._c_anonymous_1(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag:240)
>   at 
> org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0.call(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag)
>   at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
>   at 
> org.jaggeryjs.rhi

Re: [Dev] Publisher/Store nodes are throwing an error "unable to find valid certification path to requested target"

2017-11-26 Thread Chalitha Waldeniyage
Adding  Asela

On Mon, Nov 27, 2017 at 11:26 AM, Chalitha Waldeniyage 
wrote:

> Hi Harsha/Samitha,
>
> Yes i have created a self sign certificate as per [1] and imported all the
> nginx public keys there. I have verified that with above command as well.
> Here with I'm attaching the client trust.jks file which i'm using in the
> servers.
> Further key manager is fronted via nginx.
>
> On Sun, Nov 26, 2017 at 10:09 PM, Samitha Chathuranga 
> wrote:
>
>> Hi Chalitha,
>>
>> Are you pointing KM (from other nodes) through load balancer? I don't
>> think you have done so. And if you have changed the hostnames of the
>> servers, the default keystore/client-trustore won't work. Refer [1]
>>
>> To check which certificates are in a Java keystore, enter the below
>> command.
>>
>> keytool -list -v -keystore client-truststore.jks
>>
>>
>> [1] - https://github.com/wso2/puppet-apim/tree/master/wso2am_
>> runtime#keystore-and-client-truststore-related-configs
>>
>>
>> Regards,
>> Samitha
>>
>> On Sun, Nov 26, 2017 at 7:17 PM, Harsha Kumara  wrote:
>>
>>> Hi Chalitha,
>>>
>>> It seems KM certificate isn't imported to the trustee. Can you verify
>>> it? If so we will need to fix it.
>>>
>>> Thanks,
>>> Harsha
>>>
>>> On Sun, Nov 26, 2017 at 1:46 PM, Chalitha Waldeniyage >> > wrote:
>>>
 Hi All,

 I'm setting up an APIM cluster puppet patten 6 using APIM 2.1.0 puppet
 scripts[1].
 When I try to generate keys for an application,  pub/store nodes are
 throwing the below error. (IS 5.3.0 used as the Keymanager)
 Additionally in gateway Manager and worker also throwing the similar
 errors in the startup. I have imported the nginx public cert to the each
 node client-truststore.jks file as per instruction in
 [2] .
 Could you please looking to this?


 *pub/store Node error:*
 TID: [-1234] [] [2017-11-26 06:40:15,956] ERROR
 {org.wso2.carbon.apimgt.impl.APIConsumerImpl} - Could not execute
 Workflow {org.wso2.carbon.apimgt.impl.APIConsumerImpl}

 org.wso2.carbon.apimgt.impl.workflow.WorkflowException: Error occurred 
 when updating the status of the Application creation process
at 
 org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.complete(ApplicationRegistrationSimpleWorkflowExecutor.java:82)
at 
 org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.execute(ApplicationRegistrationSimpleWorkflowExecutor.java:54)
at 
 org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalForApplicationRegistration(APIConsumerImpl.java:2789)
at 
 org.wso2.carbon.apimgt.impl.UserAwareAPIConsumer.requestApprovalForApplicationRegistration(UserAwareAPIConsumer.java:36)
at 
 org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject.jsFunction_getApplicationKey(APIStoreHostObject.java:385)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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.java:386)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at 
 org.jaggeryjs.rhino.store.modules.subscription.c3._c_anonymous_2(/store/modules/subscription/key.jag:39)
at 
 org.jaggeryjs.rhino.store.modules.subscription.c3.call(/store/modules/subscription/key.jag)
at 
 org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
at 
 org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at 
 org.jaggeryjs.rhino.store.modules.subscription.c0._c_anonymous_10(/store/modules/subscription/module.jag:35)
at 
 org.jaggeryjs.rhino.store.modules.subscription.c0.call(/store/modules/subscription/module.jag)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at 
 org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0._c_anonymous_1(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag:240)
at 
 org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0.call(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag)
at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
at 
 org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0._c_script_0(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag:3)
at 
 org.jagg

Re: [Dev] Publisher/Store nodes are throwing an error "unable to find valid certification path to requested target"

2017-11-26 Thread Chalitha Waldeniyage
Hi Harsha/Samitha,

Yes i have created a self sign certificate as per [1] and imported all the
nginx public keys there. I have verified that with above command as well.
Here with I'm attaching the client trust.jks file which i'm using in the
servers.
Further key manager is fronted via nginx.

On Sun, Nov 26, 2017 at 10:09 PM, Samitha Chathuranga 
wrote:

> Hi Chalitha,
>
> Are you pointing KM (from other nodes) through load balancer? I don't
> think you have done so. And if you have changed the hostnames of the
> servers, the default keystore/client-trustore won't work. Refer [1]
>
> To check which certificates are in a Java keystore, enter the below
> command.
>
> keytool -list -v -keystore client-truststore.jks
>
>
> [1] - https://github.com/wso2/puppet-apim/tree/master/
> wso2am_runtime#keystore-and-client-truststore-related-configs
>
>
> Regards,
> Samitha
>
> On Sun, Nov 26, 2017 at 7:17 PM, Harsha Kumara  wrote:
>
>> Hi Chalitha,
>>
>> It seems KM certificate isn't imported to the trustee. Can you verify it?
>> If so we will need to fix it.
>>
>> Thanks,
>> Harsha
>>
>> On Sun, Nov 26, 2017 at 1:46 PM, Chalitha Waldeniyage 
>> wrote:
>>
>>> Hi All,
>>>
>>> I'm setting up an APIM cluster puppet patten 6 using APIM 2.1.0 puppet
>>> scripts[1].
>>> When I try to generate keys for an application,  pub/store nodes are
>>> throwing the below error. (IS 5.3.0 used as the Keymanager)
>>> Additionally in gateway Manager and worker also throwing the similar
>>> errors in the startup. I have imported the nginx public cert to the each
>>> node client-truststore.jks file as per instruction in
>>> [2] .
>>> Could you please looking to this?
>>>
>>>
>>> *pub/store Node error:*
>>> TID: [-1234] [] [2017-11-26 06:40:15,956] ERROR
>>> {org.wso2.carbon.apimgt.impl.APIConsumerImpl} - Could not execute
>>> Workflow {org.wso2.carbon.apimgt.impl.APIConsumerImpl}
>>>
>>> org.wso2.carbon.apimgt.impl.workflow.WorkflowException: Error occurred when 
>>> updating the status of the Application creation process
>>> at 
>>> org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.complete(ApplicationRegistrationSimpleWorkflowExecutor.java:82)
>>> at 
>>> org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.execute(ApplicationRegistrationSimpleWorkflowExecutor.java:54)
>>> at 
>>> org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalForApplicationRegistration(APIConsumerImpl.java:2789)
>>> at 
>>> org.wso2.carbon.apimgt.impl.UserAwareAPIConsumer.requestApprovalForApplicationRegistration(UserAwareAPIConsumer.java:36)
>>> at 
>>> org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject.jsFunction_getApplicationKey(APIStoreHostObject.java:385)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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.java:386)
>>> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>>> at 
>>> org.jaggeryjs.rhino.store.modules.subscription.c3._c_anonymous_2(/store/modules/subscription/key.jag:39)
>>> at 
>>> org.jaggeryjs.rhino.store.modules.subscription.c3.call(/store/modules/subscription/key.jag)
>>> at 
>>> org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
>>> at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
>>> at 
>>> org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
>>> at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
>>> at 
>>> org.jaggeryjs.rhino.store.modules.subscription.c0._c_anonymous_10(/store/modules/subscription/module.jag:35)
>>> at 
>>> org.jaggeryjs.rhino.store.modules.subscription.c0.call(/store/modules/subscription/module.jag)
>>> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>>> at 
>>> org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0._c_anonymous_1(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag:240)
>>> at 
>>> org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0.call(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag)
>>> at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
>>> at 
>>> org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_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.subscription_add.ajax.c0.call(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag)
>>> at 
>>> or

[Dev] [IoTs] Update Device properties of a enrolled device

2017-11-26 Thread Sameera Gunarathne
Hi,

I have created a device type using iot device management APIs and I have
defined several properties when created device type. So at the enrollment
time, I push the initial values for these properties using
DeviceManagementProviderService[1]. But when I try to update the device
properties after enrollment it did not get updated. I have used both
*updateDeviceInfo*[2] and *modifyEnrollment*[3] methods in
DeviceManagementProviderService. Is there a service which can be used to
update the device properties?

[1] -
https://github.com/wso2/carbon-device-mgt/blob/master/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/DeviceManagementProviderServiceImpl.java#L162
[2] -
https://github.com/wso2/carbon-device-mgt/blob/master/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/DeviceManagementProviderServiceImpl.java#L1181
[3] -
https://github.com/wso2/carbon-device-mgt/blob/master/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/DeviceManagementProviderServiceImpl.java#L302
Thanks & Regards,
sameera.
-- 
Sameera Gunarathne
Software Engineer, WSO2 Inc. http://wso2.com

Email: samee...@wso2.com
Mobile: +94714155561
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Car application with only registry resources

2017-11-26 Thread Sashika Wijesinghe
Hi Himasha,

When exporting the carbon application project we can select the required
server role. I have tried that option for 'EnterpriseServiceBus' server
role and it works for me.

Regards,
Sashika

On Mon, Nov 27, 2017 at 10:27 AM, Himasha Guruge  wrote:

> Hi Sashika,
>
> To solve the issue, you can add the 'GovernanceRegistry' server role to
> the EI server under "" in the carbon.xml or set the server
> role of the registry resource to 'EnterpriseIntegrator' when creating the
> CAR file.
> Have we tried out option 2? (setting role to 'EnterpriseIntegrator')
> AFAIR in tooling, we don't list ''EnterpriseIntegrator' role for registry
> projects.
>
> Thanks,
> Himasha
>
> On Mon, Nov 27, 2017 at 10:11 AM, Vinod Kavinda  wrote:
>
>> Hi All,
>> IMO, this should work OOB. If above changes works, we can ship the
>> carbon.xml with the role  'GovernanceRegistry'. Shall we report a bug?
>>
>> Regards,
>> Vinod
>>
>> On Mon, Nov 27, 2017 at 10:05 AM, Sashika Wijesinghe 
>> wrote:
>>
>>> Hi Godwin,
>>>
>>> To solve the issue, you can add the 'GovernanceRegistry' server role to
>>> the EI server under "" in the carbon.xml or set the server
>>> role of the registry resource to 'EnterpriseIntegrator' when creating the
>>> CAR file.
>>>
>>> Regards,
>>> Sashika
>>>
>>> On Mon, Nov 27, 2017 at 8:32 AM, Rukshan Premathunga 
>>> wrote:
>>>
 Hi Godwin,

 I think it because of your car file don't compatible with EI server
 role. Can you please find the EI server role and update in the 
 artifact.xml.

 Thanks and Regards

 On Mon, Nov 27, 2017 at 8:21 AM, Godwin Shrimal 
 wrote:

> Hi Devs,
>
> Can't we have a CAR application with only registry project and deploy?
> It's complaining there are no artifacts to deploy and goes to faulty.
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> *
> twitter: https://twitter.com/godwinamila
> 
>



 --
 Rukshan Chathuranga.
 Software Engineer.
 WSO2, Inc.
 +94711822074 <+94%2071%20182%202074>

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


>>>
>>>
>>> --
>>>
>>> *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
>>>
>>>
>>
>>
>> --
>> Vinod Kavinda
>> Senior Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware .*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>> [image: http://wso2.com/signature]
>> 
>>
>>
>> ___
>> 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
>



-- 

*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] API-Proxy for Single Page Application

2017-11-26 Thread Thilina Madumal
Hi all,

The following is the finalized approach for API-Proxy.

API-Proxy will act as a gateway which will pass the requests coming from
the SPA-client to the corresponding backend API.
Before passage acces_token will be included in the request header as
follows,
"Authorization: Bearer "

If I'm to explain this by using an example, it would look like the
following.

*request from SPA-client to the oauth2-proxy:  *
https://hostA.com/oauth2-proxy/api/{app-session-code}/bar?name=lionels

*request to the backend-api from the oauth2-proxy: *
-H "Authorization: Bearer " https://hostB.com/bar?name=lionels

Here the host-mapping (hostA => hostB) is a configuration of the proxy.

Appreciate suggestions and amendments.

Best,
Thilina.


On Tue, Nov 21, 2017 at 12:48 PM, Thilina Madumal 
wrote:

> Hi all,
>
> Since we are clear with the concept behind the Proxy let's get back to the
> discussion of APIProxy implementation.
>
> While researching I found that Yahoo provides an API proxy service and it
> adopts SQL like language. Please see [1].
>
> In our implementation, we also can adopt the same. For an example from the
> SPA it just need to send a query parameter like [2]
>
> If so a request from SPA to our APIProxy will look like [3]
>
> WDYT?
>
> [1] https://developer.yahoo.com/yql/guide/overview.html
> [2] get name:name,age:18,city:colombo from https://some.third.party.
> api.com
> [3] https://wso2.is:9443/oauth_proxy/api_proxy?code="appIdCode"&query="get
> name:name,age:18,city:colombo from https://some.third.party.api.com";
>
> Thanks,
> Thilina
>
> On Mon, Nov 20, 2017 at 1:29 PM, roshan wijesena 
> wrote:
>
>> Thanks Prabath.
>>
>> It is clear now.
>>
>> Regards
>> Roshan
>>
>>
>> On Mon, Nov 20, 2017 at 6:11 PM Prabath Siriwardena 
>> wrote:
>>
>>> Let me clarify what is solved by the encryption here..
>>>
>>> Here the proxy uses the code grant type - and it gets access token +
>>> refresh token. Proxy can either store that at server side and replicate it
>>> across all the nodes - or store them in an encrypted cookie, and make
>>> things stateless..
>>>
>>> Encryption is used here to make the application stateless - and the end
>>> user will not get access to the access token or the refresh token.
>>>
>>> Then again, if someone finds the value stored in the session storage and
>>> then talk to the proxy API passing that along with all the encrypted
>>> cookies through its own app (say cURL).. it will not work...
>>>
>>> To make the above blocked - you need to have TLS channel binding between
>>> the browser and the proxy - and you need not to worry about APIs (whether
>>> they support channel binding or not)...
>>>
>>> The other benefit proxy gives is support for CORS - you need not to
>>> worry whether the external APIs support CORS or not...
>>>
>>> Thanks & regards,
>>> -Prabath
>>>
>>>
>>> On Sun, Nov 19, 2017 at 11:44 PM, Thilina Madumal 
>>> wrote:
>>>
 +Dev list

 On Mon, Nov 20, 2017 at 11:01 AM, Thilina Madumal 
 wrote:

> Hi Roshan,
>
>
> On Mon, Nov 20, 2017 at 10:43 AM, roshan wijesena <
> roshan86...@gmail.com> wrote:
>
>> Hi Thilina,
>>
>> How do you create this encrypted token? I agree with  NuwanD,  if you
>> store that encrypted token in the browser, and if some one got that token
>> he can
>>
>
> For now I'm using symetric encryption. Encrypted tokens are stored in
> a cookie and sent to the browser.
>
>
>> access your protected backed via proxy call. The point is encrypted
>> token seems not fixing the problem, which you trying to achieve.
>>
>
> So what do you suggest?
> You are suggesting to store the tokens at the Proxy against some key
> (say sessionID), and send this sessionID as a cookie to the 
> browser-client?
> If so, what if this cookie is stolen? It is the same case right?
>
>
>>
>> Regards
>> Roshan
>>
>> On Mon, Nov 20, 2017 at 4:01 PM, Thilina Madumal > > wrote:
>>
>>> Hi Nuwan,
>>>
>>>
>>> On Mon, Nov 20, 2017 at 1:54 AM, Nuwan Dias  wrote:
>>>
 Hi Thilina,

 I still don't understand how encrypting this information makes the
 proxy stateless. What state would the proxy have to bear if this
 information was in plain text? Also why would you need to store the
 id_token on client side?

>>>
>>> If the access_token is not stored at the browser side, then the
>>> proxy need to store the access_token against some key at the proxy 
>>> side. It
>>> is same with the id_token. We need the id_token to understand the 
>>> context
>>> of the access_token.
>>>
>>> In order to avoid storing tokens at the Proxy, we need to send those
>>> to the browser client. Sending them as plain text is not a wise thing to
>>> do. That's where the encryption comes in handy.
>>>
>>> However the important thing to note 

Re: [Dev] [EI] Car application with only registry resources

2017-11-26 Thread Himasha Guruge
Hi Sashika,

To solve the issue, you can add the 'GovernanceRegistry' server role to the
EI server under "" in the carbon.xml or set the server role of
the registry resource to 'EnterpriseIntegrator' when creating the CAR file.
Have we tried out option 2? (setting role to 'EnterpriseIntegrator') AFAIR
in tooling, we don't list ''EnterpriseIntegrator' role for registry
projects.

Thanks,
Himasha

On Mon, Nov 27, 2017 at 10:11 AM, Vinod Kavinda  wrote:

> Hi All,
> IMO, this should work OOB. If above changes works, we can ship the
> carbon.xml with the role  'GovernanceRegistry'. Shall we report a bug?
>
> Regards,
> Vinod
>
> On Mon, Nov 27, 2017 at 10:05 AM, Sashika Wijesinghe 
> wrote:
>
>> Hi Godwin,
>>
>> To solve the issue, you can add the 'GovernanceRegistry' server role to
>> the EI server under "" in the carbon.xml or set the server
>> role of the registry resource to 'EnterpriseIntegrator' when creating the
>> CAR file.
>>
>> Regards,
>> Sashika
>>
>> On Mon, Nov 27, 2017 at 8:32 AM, Rukshan Premathunga 
>> wrote:
>>
>>> Hi Godwin,
>>>
>>> I think it because of your car file don't compatible with EI server
>>> role. Can you please find the EI server role and update in the artifact.xml.
>>>
>>> Thanks and Regards
>>>
>>> On Mon, Nov 27, 2017 at 8:21 AM, Godwin Shrimal  wrote:
>>>
 Hi Devs,

 Can't we have a CAR application with only registry project and deploy?
 It's complaining there are no artifacts to deploy and goes to faulty.

 Thanks
 Godwin

 --
 *Godwin Amila Shrimal*
 Associate Technical Lead
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
 *
 twitter: https://twitter.com/godwinamila
 

>>>
>>>
>>>
>>> --
>>> Rukshan Chathuranga.
>>> Software Engineer.
>>> WSO2, Inc.
>>> +94711822074 <+94%2071%20182%202074>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *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
>>
>>
>
>
> --
> Vinod Kavinda
> Senior Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> 
>
>
> ___
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Car application with only registry resources

2017-11-26 Thread Vinod Kavinda
Hi All,
IMO, this should work OOB. If above changes works, we can ship the
carbon.xml with the role  'GovernanceRegistry'. Shall we report a bug?

Regards,
Vinod

On Mon, Nov 27, 2017 at 10:05 AM, Sashika Wijesinghe 
wrote:

> Hi Godwin,
>
> To solve the issue, you can add the 'GovernanceRegistry' server role to
> the EI server under "" in the carbon.xml or set the server
> role of the registry resource to 'EnterpriseIntegrator' when creating the
> CAR file.
>
> Regards,
> Sashika
>
> On Mon, Nov 27, 2017 at 8:32 AM, Rukshan Premathunga 
> wrote:
>
>> Hi Godwin,
>>
>> I think it because of your car file don't compatible with EI server role.
>> Can you please find the EI server role and update in the artifact.xml.
>>
>> Thanks and Regards
>>
>> On Mon, Nov 27, 2017 at 8:21 AM, Godwin Shrimal  wrote:
>>
>>> Hi Devs,
>>>
>>> Can't we have a CAR application with only registry project and deploy?
>>> It's complaining there are no artifacts to deploy and goes to faulty.
>>>
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Associate Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>>> *
>>> twitter: https://twitter.com/godwinamila
>>> 
>>>
>>
>>
>>
>> --
>> Rukshan Chathuranga.
>> Software Engineer.
>> WSO2, Inc.
>> +94711822074 <+94%2071%20182%202074>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *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
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]

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


Re: [Dev] [EI] Car application with only registry resources

2017-11-26 Thread Sashika Wijesinghe
Hi Godwin,

To solve the issue, you can add the 'GovernanceRegistry' server role to the
EI server under "" in the carbon.xml or set the server role of
the registry resource to 'EnterpriseIntegrator' when creating the CAR file.

Regards,
Sashika

On Mon, Nov 27, 2017 at 8:32 AM, Rukshan Premathunga 
wrote:

> Hi Godwin,
>
> I think it because of your car file don't compatible with EI server role.
> Can you please find the EI server role and update in the artifact.xml.
>
> Thanks and Regards
>
> On Mon, Nov 27, 2017 at 8:21 AM, Godwin Shrimal  wrote:
>
>> Hi Devs,
>>
>> Can't we have a CAR application with only registry project and deploy?
>> It's complaining there are no artifacts to deploy and goes to faulty.
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>> *
>> twitter: https://twitter.com/godwinamila
>> 
>>
>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
> +94711822074 <+94%2071%20182%202074>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*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] Retrieving API details via carbon REST API admin service

2017-11-26 Thread Prasanna Dangalla
On Mon, Nov 27, 2017 at 7:50 AM, roshan wijesena 
wrote:

> Have you tried these APIs?
>
> https://docs.wso2.com/display/AM210/apidocs/publisher/
>
AFAIK if you get it form pubiisher REST API it will have all the data in an
API artifact.  So may be you can use this.

>
>
> On Mon, Nov 27, 2017 at 2:45 AM, Amanda Jayanetti 
> wrote:
>
>> Hi all,
>>
>> For a task that I'm currently working on, I need to retrieve all APIs
>> that have been created/published by a particular tenant. In order to
>> do this, we tried using carbon REST API admin service but details of API
>> handlers were not returned by this service. Is this the expected behavior?
>> If so, is there any other way of retrieving these details?
>>
>> Best Regards,
>> Amanda
>> --
>> *Amanda Jayanetti*
>> Software Engineer
>> WSO2, Inc.; http://wso2.com
>>
>> Mobile: +9471957591 <+94%2071%20185%202792>1
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Retrieving API details via carbon REST API admin service

2017-11-26 Thread Rukshan Premathunga
Hi All,

I RestApiAdmin is from the carbon-meditation and sources found here[1]. But
in the util function[2] it try to extract the source, seems it didn't check
for the handler and hence it may not appear in the payload.
In your case if API handlers are static (If it is sure that users are not
allowed to customize APIs handler) you can add the default handlers to the
source you get as a workaround.

[1]
https://github.com/wso2/carbon-mediation/blob/release-4.6.10/components/mediation-admin/org.wso2.carbon.rest.api/src/main/java/org/wso2/carbon/rest/api/service/RestApiAdmin.java#L680
[2]
https://github.com/wso2/carbon-mediation/blob/release-4.6.10/components/mediation-admin/org.wso2.carbon.rest.api/src/main/java/org/wso2/carbon/rest/api/RestApiAdminUtils.java#L59

Thanks and Regards

On Mon, Nov 27, 2017 at 7:50 AM, roshan wijesena 
wrote:

> Have you tried these APIs?
>
> https://docs.wso2.com/display/AM210/apidocs/publisher/
>
> On Mon, Nov 27, 2017 at 2:45 AM, Amanda Jayanetti 
> wrote:
>
>> Hi all,
>>
>> For a task that I'm currently working on, I need to retrieve all APIs
>> that have been created/published by a particular tenant. In order to
>> do this, we tried using carbon REST API admin service but details of API
>> handlers were not returned by this service. Is this the expected behavior?
>> If so, is there any other way of retrieving these details?
>>
>> Best Regards,
>> Amanda
>> --
>> *Amanda Jayanetti*
>> Software Engineer
>> WSO2, Inc.; http://wso2.com
>>
>> Mobile: +9471957591 <+94%2071%20185%202792>1
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rukshan Chathuranga.
Software Engineer.
WSO2, Inc.
+94711822074
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Car application with only registry resources

2017-11-26 Thread Rukshan Premathunga
Hi Godwin,

I think it because of your car file don't compatible with EI server role.
Can you please find the EI server role and update in the artifact.xml.

Thanks and Regards

On Mon, Nov 27, 2017 at 8:21 AM, Godwin Shrimal  wrote:

> Hi Devs,
>
> Can't we have a CAR application with only registry project and deploy?
> It's complaining there are no artifacts to deploy and goes to faulty.
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> *
> twitter: https://twitter.com/godwinamila
> 
>



-- 
Rukshan Chathuranga.
Software Engineer.
WSO2, Inc.
+94711822074
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [EI] Car application with only registry resources

2017-11-26 Thread Godwin Shrimal
Hi Devs,

Can't we have a CAR application with only registry project and deploy? It's
complaining there are no artifacts to deploy and goes to faulty.

Thanks
Godwin

-- 
*Godwin Amila Shrimal*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
*
twitter: https://twitter.com/godwinamila

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


[Dev] [EI] Oracle multiple cursor support

2017-11-26 Thread Godwin Shrimal
Hi Devs,

Are we supporting $subject in EI-6.1.1? If yes can someone share any
documentation/article/blog?

Thanks
Godwin

-- 
*Godwin Amila Shrimal*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
*
twitter: https://twitter.com/godwinamila

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


Re: [Dev] Retrieving API details via carbon REST API admin service

2017-11-26 Thread roshan wijesena
Have you tried these APIs?

https://docs.wso2.com/display/AM210/apidocs/publisher/

On Mon, Nov 27, 2017 at 2:45 AM, Amanda Jayanetti  wrote:

> Hi all,
>
> For a task that I'm currently working on, I need to retrieve all APIs that
> have been created/published by a particular tenant. In order to do this, we
> tried using carbon REST API admin service but details of API handlers were
> not returned by this service. Is this the expected behavior? If so, is
> there any other way of retrieving these details?
>
> Best Regards,
> Amanda
> --
> *Amanda Jayanetti*
> Software Engineer
> WSO2, Inc.; http://wso2.com
>
> Mobile: +9471957591 <+94%2071%20185%202792>1
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Retrieving API details via carbon REST API admin service

2017-11-26 Thread Sumedha Kodithuwakku
To add more, We are trying to get the XML content of an API deployed in
APIM 2.1.0, using the above admin service. In the above admin service,
getSource method returns the source of the API without any of the handlers
added by APIM. Is this a bug in the above service or is it the expected
behavior.?

Appreciate your thoughts on this..

Regards,
SunedhaS

On Sun, Nov 26, 2017 at 9:15 PM Amanda Jayanetti  wrote:

> Hi all,
>
> For a task that I'm currently working on, I need to retrieve all APIs that
> have been created/published by a particular tenant. In order to do this, we
> tried using carbon REST API admin service but details of API handlers were
> not returned by this service. Is this the expected behavior? If so, is
> there any other way of retrieving these details?
>
> Best Regards,
> Amanda
>
> --
> *Amanda Jayanetti*
> Software Engineer
> WSO2, Inc.; http://wso2.com
>
> Mobile: +9471957591 <+94%2071%20185%202792>1
>
-- 
*Sumedha Kodithuwakku*
Associate Technical Lead
WSO2 Inc. : http://wso2.com
lean . enterprise . middleware

Mobile: +94 71 808 1124
Blog: http://sumedhask.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Publisher/Store nodes are throwing an error "unable to find valid certification path to requested target"

2017-11-26 Thread Samitha Chathuranga
Hi Chalitha,

Are you pointing KM (from other nodes) through load balancer? I don't think
you have done so. And if you have changed the hostnames of the servers, the
default keystore/client-trustore won't work. Refer [1]

To check which certificates are in a Java keystore, enter the below command.

keytool -list -v -keystore client-truststore.jks


[1] -
https://github.com/wso2/puppet-apim/tree/master/wso2am_runtime#keystore-and-client-truststore-related-configs


Regards,
Samitha

On Sun, Nov 26, 2017 at 7:17 PM, Harsha Kumara  wrote:

> Hi Chalitha,
>
> It seems KM certificate isn't imported to the trustee. Can you verify it?
> If so we will need to fix it.
>
> Thanks,
> Harsha
>
> On Sun, Nov 26, 2017 at 1:46 PM, Chalitha Waldeniyage 
> wrote:
>
>> Hi All,
>>
>> I'm setting up an APIM cluster puppet patten 6 using APIM 2.1.0 puppet
>> scripts[1].
>> When I try to generate keys for an application,  pub/store nodes are
>> throwing the below error. (IS 5.3.0 used as the Keymanager)
>> Additionally in gateway Manager and worker also throwing the similar
>> errors in the startup. I have imported the nginx public cert to the each
>> node client-truststore.jks file as per instruction in
>> [2] .
>> Could you please looking to this?
>>
>>
>> *pub/store Node error:*
>> TID: [-1234] [] [2017-11-26 06:40:15,956] ERROR
>> {org.wso2.carbon.apimgt.impl.APIConsumerImpl} - Could not execute
>> Workflow {org.wso2.carbon.apimgt.impl.APIConsumerImpl}
>>
>> org.wso2.carbon.apimgt.impl.workflow.WorkflowException: Error occurred when 
>> updating the status of the Application creation process
>>  at 
>> org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.complete(ApplicationRegistrationSimpleWorkflowExecutor.java:82)
>>  at 
>> org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.execute(ApplicationRegistrationSimpleWorkflowExecutor.java:54)
>>  at 
>> org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalForApplicationRegistration(APIConsumerImpl.java:2789)
>>  at 
>> org.wso2.carbon.apimgt.impl.UserAwareAPIConsumer.requestApprovalForApplicationRegistration(UserAwareAPIConsumer.java:36)
>>  at 
>> org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject.jsFunction_getApplicationKey(APIStoreHostObject.java:385)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>  at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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.java:386)
>>  at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>>  at 
>> org.jaggeryjs.rhino.store.modules.subscription.c3._c_anonymous_2(/store/modules/subscription/key.jag:39)
>>  at 
>> org.jaggeryjs.rhino.store.modules.subscription.c3.call(/store/modules/subscription/key.jag)
>>  at 
>> org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
>>  at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
>>  at 
>> org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
>>  at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
>>  at 
>> org.jaggeryjs.rhino.store.modules.subscription.c0._c_anonymous_10(/store/modules/subscription/module.jag:35)
>>  at 
>> org.jaggeryjs.rhino.store.modules.subscription.c0.call(/store/modules/subscription/module.jag)
>>  at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>>  at 
>> org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0._c_anonymous_1(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag:240)
>>  at 
>> org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0.call(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag)
>>  at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
>>  at 
>> org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_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.subscription_add.ajax.c0.call(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag)
>>  at 
>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
>>  at 
>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
>>  at 
>> org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0.call(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag)
>>  at 
>> org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0.exec(/store/site/bl

[Dev] Retrieving API details via carbon REST API admin service

2017-11-26 Thread Amanda Jayanetti
Hi all,

For a task that I'm currently working on, I need to retrieve all APIs that
have been created/published by a particular tenant. In order to do this, we
tried using carbon REST API admin service but details of API handlers were
not returned by this service. Is this the expected behavior? If so, is
there any other way of retrieving these details?

Best Regards,
Amanda
-- 
*Amanda Jayanetti*
Software Engineer
WSO2, Inc.; http://wso2.com

Mobile: +9471957591 <+94%2071%20185%202792>1
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Publisher/Store nodes are throwing an error "unable to find valid certification path to requested target"

2017-11-26 Thread Harsha Kumara
Hi Chalitha,

It seems KM certificate isn't imported to the trustee. Can you verify it?
If so we will need to fix it.

Thanks,
Harsha

On Sun, Nov 26, 2017 at 1:46 PM, Chalitha Waldeniyage 
wrote:

> Hi All,
>
> I'm setting up an APIM cluster puppet patten 6 using APIM 2.1.0 puppet
> scripts[1].
> When I try to generate keys for an application,  pub/store nodes are
> throwing the below error. (IS 5.3.0 used as the Keymanager)
> Additionally in gateway Manager and worker also throwing the similar
> errors in the startup. I have imported the nginx public cert to the each
> node client-truststore.jks file as per instruction in
> [2] .
> Could you please looking to this?
>
>
> *pub/store Node error:*
> TID: [-1234] [] [2017-11-26 06:40:15,956] ERROR
> {org.wso2.carbon.apimgt.impl.APIConsumerImpl} - Could not execute
> Workflow {org.wso2.carbon.apimgt.impl.APIConsumerImpl}
>
> org.wso2.carbon.apimgt.impl.workflow.WorkflowException: Error occurred when 
> updating the status of the Application creation process
>   at 
> org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.complete(ApplicationRegistrationSimpleWorkflowExecutor.java:82)
>   at 
> org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.execute(ApplicationRegistrationSimpleWorkflowExecutor.java:54)
>   at 
> org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalForApplicationRegistration(APIConsumerImpl.java:2789)
>   at 
> org.wso2.carbon.apimgt.impl.UserAwareAPIConsumer.requestApprovalForApplicationRegistration(UserAwareAPIConsumer.java:36)
>   at 
> org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject.jsFunction_getApplicationKey(APIStoreHostObject.java:385)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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.java:386)
>   at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>   at 
> org.jaggeryjs.rhino.store.modules.subscription.c3._c_anonymous_2(/store/modules/subscription/key.jag:39)
>   at 
> org.jaggeryjs.rhino.store.modules.subscription.c3.call(/store/modules/subscription/key.jag)
>   at 
> org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
>   at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
>   at 
> org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
>   at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
>   at 
> org.jaggeryjs.rhino.store.modules.subscription.c0._c_anonymous_10(/store/modules/subscription/module.jag:35)
>   at 
> org.jaggeryjs.rhino.store.modules.subscription.c0.call(/store/modules/subscription/module.jag)
>   at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>   at 
> org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0._c_anonymous_1(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag:240)
>   at 
> org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0.call(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag)
>   at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
>   at 
> org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_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.subscription_add.ajax.c0.call(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag)
>   at 
> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
>   at 
> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
>   at 
> org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0.call(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag)
>   at 
> org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0.exec(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag)
>   at 
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
>   at 
> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
>   at 
> org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:588)
>   at 
> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:508)
>   at 
> org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
>   at jav

[Dev] Publisher/Store nodes are throwing an error "unable to find valid certification path to requested target"

2017-11-26 Thread Chalitha Waldeniyage
Hi All,

I'm setting up an APIM cluster puppet patten 6 using APIM 2.1.0 puppet
scripts[1].
When I try to generate keys for an application,  pub/store nodes are
throwing the below error. (IS 5.3.0 used as the Keymanager)
Additionally in gateway Manager and worker also throwing the similar errors
in the startup. I have imported the nginx public cert to the each node
client-truststore.jks file as per instruction in
[2] .
Could you please looking to this?


*pub/store Node error:*
TID: [-1234] [] [2017-11-26 06:40:15,956] ERROR
{org.wso2.carbon.apimgt.impl.APIConsumerImpl} - Could not execute Workflow
{org.wso2.carbon.apimgt.impl.APIConsumerImpl}

org.wso2.carbon.apimgt.impl.workflow.WorkflowException: Error occurred
when updating the status of the Application creation process
at 
org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.complete(ApplicationRegistrationSimpleWorkflowExecutor.java:82)
at 
org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.execute(ApplicationRegistrationSimpleWorkflowExecutor.java:54)
at 
org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalForApplicationRegistration(APIConsumerImpl.java:2789)
at 
org.wso2.carbon.apimgt.impl.UserAwareAPIConsumer.requestApprovalForApplicationRegistration(UserAwareAPIConsumer.java:36)
at 
org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject.jsFunction_getApplicationKey(APIStoreHostObject.java:385)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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.java:386)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at 
org.jaggeryjs.rhino.store.modules.subscription.c3._c_anonymous_2(/store/modules/subscription/key.jag:39)
at 
org.jaggeryjs.rhino.store.modules.subscription.c3.call(/store/modules/subscription/key.jag)
at 
org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
at 
org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at 
org.jaggeryjs.rhino.store.modules.subscription.c0._c_anonymous_10(/store/modules/subscription/module.jag:35)
at 
org.jaggeryjs.rhino.store.modules.subscription.c0.call(/store/modules/subscription/module.jag)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at 
org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0._c_anonymous_1(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag:240)
at 
org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0.call(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag)
at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
at 
org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_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.subscription_add.ajax.c0.call(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag)
at 
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at 
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at 
org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0.call(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag)
at 
org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0.exec(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag)
at 
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
at 
org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at 
org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:588)
at 
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:508)
at 
org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at 
org.a