Re: [Dev] One Specific API not responding

2018-04-24 Thread Abimaran Kugathasan
Hi Alapan,

When you get Gateway timeout errors, do you see the request hit to your
backend services?

On Tue, Apr 24, 2018 at 6:10 PM, <alapan@valuelabs.com> wrote:

> Thanks Nuwan, we will try that.
>
>
>
> Just to give you few more data pointers:
>
> 1.   We are getting around 100 Kb of data as response.
>
> 2.   When we do restart of the application everything work like charm
> but after few 5 – 6 hours or 10 K – 15 K API hits, we are started getting
> Gateway timeout errors.
>
> Best regards
>
> *Alapan Sur*
>
> Project Manager - SD
>
> ValueLabs - *'inspired by potential'*
>
> Desk: +91-40-6623-9000 | Ext: 32112
>
> Mobile: +91-7799681717
>
> This e-mail may contain information that is proprietary, confidential or
> otherwise protected from disclosure and is sent for the intended
> recipient(s) only. For email disclaimer details, please visit:
>  http://www.valuelabs.com/terms-of-use/
>
>
>
> *From:* Nuwan Dias [mailto:nuw...@wso2.com]
> *Sent:* Tuesday, April 24, 2018 5:55 PM
>
> *To:* alapan@valuelabs.com
> *Cc:* Abimaran Kugathasan <abima...@wso2.com>; dev <dev@wso2.org>
> *Subject:* Re: [Dev] One Specific API not responding
>
>
>
> I was specifically interested in seeing the value of the Transfer-Encoding
> request header. Since it appears to be missing, can you try disabling
> chunking of this particular API by setting  name="DISABLE_CHUNKING" value="true" scope="axis2"/> in the api xml file
> located at 
> /repository/deployment/server/synapse-configs/default/api
> ? You should put this config within the  of the 
> being executed.
>
>
>
> If the above works, you could apply this solution as documented at [1].
>
>
>
> [1] - https://docs.wso2.com/display/AM210/Disable+Message+Chunking
>
>
>
> Thanks,
>
> Nuwan.
>
>
>
> On Tue, Apr 24, 2018 at 5:47 PM, <alapan@valuelabs.com> wrote:
>
> Hello Nuwan,
>
>
>
> Please find the requested information for backend API directly :
>
>
>
> *Request Headers --*
>
> Source-Identifier:  A076FCBB-41F3-4FB5-A9P8-DA2DCF6YR942
>
> Content-Type: application/json
>
> Authorization-Token :
>
>
>
> *Response Headers -- *
>
> Cache-Control →no-cache
>
> Content-Length →25078
>
> Content-Type →application/json; charset=utf-8
>
> Date →Tue, 24 Apr 2018 12:11:06 GMT
>
> Expires →-1
>
> Pragma →no-cache
>
> Server →Microsoft-IIS/8.0
>
> X-AspNet-Version →4.0.30319
>
> X-Powered-By →ASP.NET
>
>
>
> Best regards
>
> *Alapan Sur*
>
> Project Manager - SD
>
> ValueLabs - *'inspired by potential'*
>
> Desk: +91-40-6623-9000 | Ext: 32112
>
> Mobile: +91-7799681717
>
> This e-mail may contain information that is proprietary, confidential or
> otherwise protected from disclosure and is sent for the intended
> recipient(s) only. For email disclaimer details, please visit:
> http://www.valuelabs.com/terms-of-use/
>
>
>
> *From:* Nuwan Dias [mailto:nuw...@wso2.com]
> *Sent:* Tuesday, April 24, 2018 5:24 PM
> *To:* alapan@valuelabs.com
> *Cc:* Abimaran Kugathasan <abima...@wso2.com>; dev <dev@wso2.org>
>
>
> *Subject:* Re: [Dev] One Specific API not responding
>
>
>
> Hi Alan,
>
>
>
> Can you send the list of Request headers and Response headers from a
> successful request that goes to your back-end directly (without going
> through the Gateway)?
>
>
>
> Thanks,
>
> Nuwan.
>
>
>
> On Tue, Apr 24, 2018 at 5:03 PM, <alapan@valuelabs.com> wrote:
>
> Hello Abimaran,
>
>
>
> I have increased socket timeout and connection timeout to 3 mints and also
> disabled the suspension of API, I am still getting 504 gateway timeout
> error and sometime I get the response. Also I have checked the backend API
> but we are getting response from backend server within 2 -3 seconds .
>
>
>
> I need immediate help to sort this out as we already moved this to
> production and customers are facing issue with timeout.
>
>
>
> Best regards
>
> *Alapan Sur*
>
> Project Manager - SD
>
> ValueLabs - *'inspired by potential'*
>
> Desk: +91-40-6623-9000 | Ext: 32112
>
> Mobile: +91-7799681717
>
> This e-mail may contain information that is proprietary, confidential or
> otherwise protected from disclosure and is sent for the intended
> recipient(s) only. For email disclaimer details, please visit:
> http://www.valuelabs.com/terms-of-use/
>
>
>
> *From:* Abimaran Kugathasan [mailto:abima...@wso2.com]
> *Sent:* Tuesday, April 24, 2018 4:41 PM
> *To

Re: [Dev] One Specific API not responding

2018-04-24 Thread Abimaran Kugathasan
Hi Alapan,

Do you want to increase socket timeout or remove the suspension of API?

On Fri, Apr 20, 2018 at 11:24 AM, <alapan@valuelabs.com> wrote:

> Hello Team,
>
>
>
> Any idea on the below ?
>
>
>
> Best regards
>
> *Alapan Sur*
>
> Project Manager - SD
>
> ValueLabs - *'inspired by potential'*
>
> Desk: +91-40-6623-9000 | Ext: 32112
>
> Mobile: +91-7799681717
>
> This e-mail may contain information that is proprietary, confidential or
> otherwise protected from disclosure and is sent for the intended
> recipient(s) only. For email disclaimer details, please visit:
>  http://www.valuelabs.com/terms-of-use/
>
>
>
> *From:* alapan@valuelabs.com [mailto:alapan@valuelabs.com]
> *Sent:* Thursday, April 19, 2018 1:24 PM
> *To:* 'dev@wso2.org' <dev@wso2.org>
> *Subject:* One Specific API not responding
>
>
>
> Hello Team,
>
>
>
> We are facing an issue file working with WSO2 API Manager 2.1.0.
>
>
>
> There is one request for a specific endpoint is continuously failing for
> some reason and as a result, this specific API is getting down and we are
> not getting an response from WSO2 APIM gateway  although we are receiving
> the response from backend API before the socket time out error.  Please
> find the below error we are getting :
>
>
>
> TID: [-1] [] [2018-04-19 04:54:24,294] WARN 
> {org.apache.synapse.transport.passthru.SourceHandler}
> - Connection time out after request is read: http-incoming-106261 Socket
> Timeout : 6 Remote Address : /10.138.120.228:36754
> <https://l.facebook.com/l.php?u=http%3A%2F%2F10.138.120.228%3A36754%2F=ATOl7IzK7wN9mVsfkzG0fh6ZtnMR7L9K40MZWk0LYuJEbmNeWspvtYMO4BNt3VE7oDGgr23jwDtmmzAmNzl9jDrCHFvSnNLITEmpFqP6iWx4v_OkfvIqNnIxGpvMv6PB>
> {org.apache.synapse.transport.passthru.SourceHandler}
>
>
> Is there any threshold configuration which is configured to handle the
> multiple API failure and WSO2 skips suspend the end point ?
> <http://l.facebook.com/l.php?u=http%3A%2F%2F10.138.120.228%3A36754%2F=ATPsubv-DfKlSaiNx21YeahwUalUYsKADBcz4F-OaA0nNb7IrCxSzP9E4OvrEmhKGyMow8idhB7i0Ij9HBZZRiJUfMgIi7R31JXKm0GM27z_dVvC_69FV9pEg9RG9I6_2afAkKPvJcE=1>
>
>
>
> Can anyone help in this regard ?
>
> Best regards
>
> *Alapan Sur*
>
> Project Manager - SD
>
> ValueLabs - *'inspired by potential'*
>
> Desk: +91-40-6623-9000 | Ext: 32112
>
> Mobile: +91-7799681717
>
> This e-mail may contain information that is proprietary, confidential or
> otherwise protected from disclosure and is sent for the intended
> recipient(s) only. For email disclaimer details, please visit:
>  http://www.valuelabs.com/terms-of-use/
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to get the Maven project version into a shell script?

2018-04-17 Thread Abimaran Kugathasan
Hi Nipuni,

You can use xmlstarlet to read the version of the project without adding a
maven plugin to POM file. I used this to read XML values in the command
line. An example can be found here [2]

[1]: http://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html
[2]: https://stackoverflow.com/questions/12640152/xmlstarlet-select-value

On Tue, Apr 17, 2018 at 2:37 PM, Nipuni Bhagya <nipu...@wso2.com> wrote:

> Hi all,
>
> I have encountered a problem while trying to get the version number of a
> jar into a shell script. Currently, the name of the jar is hardcoded in the
> script. But the problem is when the maven version get updated in the
> project it should reflect in the script. The closest solution I have come
> up at the moment is to use the Maven Help Plugin
> <http://maven.apache.org/plugins/maven-help-plugin/>. The
> goal help:evaluate can evaluate Maven expression,
> -Dexpression=project.version and then I can grep the version from its
> result.
>
> I would really appreciate if someone of you could help me to find a better
> way to achieve this task.
>
> Thank you in advance,
>
> --
>
>
>
> *Kind Regards,Nipuni Bhagya*
>
> *Software Engineering Intern*
> *WSO2*
>
>
>
> *Mobile : +94 0779028904 <+94%2077%20767%201807>*
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clarification on Private key JWT Client Authentication for OIDC

2018-03-06 Thread Abimaran Kugathasan
Hi Shanika,

11th, 12th, and 13th are subsets of 10th (Import the public key of the
private_key_jwt issuer). You have to rename because management console
takes the file name of the public key as the alias which is clientID.

The 14th step is an alternative way to install public key through keytool
and it requires a server restart.

On Tue, Mar 6, 2018 at 2:56 PM, Shanika Wickramasinghe <shani...@wso2.com>
wrote:

> Hi All,
>
> I tried the steps included under the section Deploying and configuring JWT
> client-handler artifacts in [1]. There in step 10 it says to Import the
> public key of the private_key_jwt issuer. Document does not have a detailed
> explanation on this or does not include any command to use. Is this
> referring to export the certificate from the key store and convert the
> binary encoded certificate into a PEM encoded certificate and import it
> under the Application certificate in the service provider as in [2].
>
> Under step 11 again it is asking to rename the public certificate with
> OAuth App client ID name
>
> Further step 14 specify as to import the above certificate to the default
> keystore [1]
>
> I am not clear with step 10, 11, 14 appreciate any guidance on how to
> proceed with these steps.
>
>
>
> [1]. https://docs.wso2.com/display/IS550/Private+Key+JWT+Cli
> ent+Authentication+for+OIDC
> [2]. https://docs.wso2.com/display/IS550/Adding+and+Configur
> ing+a+Service+Provider
>
> Thanks,
> Shanika.
>
>
> --
> *Shanika Wickramasinghe*
> Software Engineer - QA Team
>
> Email: shani...@wso2.com
> Mobile  : +94713503563 <+94%2071%20350%203563>
> Web : http://wso2.com
>
> <http://wso2.com/signature>
>



-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820 <+94%2077%20392%202820>

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] REST API - adding a custom sequence and associating with an api

2018-01-22 Thread Abimaran Kugathasan
Hi Chathurika,

If you have already added the sequence to registry through the registry
APIs, then you can use sequence parameter to populate it in the API
creation time, otherwise, you will have to create the API first and upload
the sequence through the API mentioned by Praminda.

On Mon, Jan 22, 2018 at 2:47 PM, Chathurika De Silva <chathuri...@wso2.com>
wrote:

> Hi Praminda
>
> Thank you. I will try this. Since the payload in [1] consists of a
> parameter called "sequence" it was bit confusing.
>
> [1] https://docs.wso2.com/display/AM210/apidocs/publisher/#!/models#API
>
> On Mon, Jan 22, 2018 at 2:43 PM, Praminda Jayawardana <prami...@wso2.com>
> wrote:
>
>> Hi Erandi,
>>
>> I don't think you can attach a sequence at API creation. However did you
>> try [1] which is the API for adding a mediation sequence to existing API?
>>
>> [1]: https://docs.wso2.com/display/AM210/apidocs/publisher/#!/ope
>> rations#MediationPolicyCollection#apisApiIdPoliciesMediationPost
>>
>> Thanks,
>> Praminda
>>
>> On Mon, Jan 22, 2018 at 2:31 PM, Chathurika De Silva <
>> chathuri...@wso2.com> wrote:
>>
>>> Hi
>>>
>>> There is a need to create/update an api with a custom sequence
>>> associated through the REST APIs. In [1] the sample payload has a field
>>> called sequences which is taking an array as the argument. But from the
>>> document it's not clear how to proceed with it (whether we need to first
>>> upload the sequence to the registry, etc...) It would be highly appreciated
>>> if a sample can be pointed out that addresses the $subject need.
>>>
>>> [1] https://docs.wso2.com/display/AM210/apidocs/publisher/#!/ope
>>> rations#APIIndividual#apisApiIdPut
>>>
>>> Thanks
>>> Erandi
>>>
>>> --
>>> *Chathurika Erandi*
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>>
>>> *E-mail:* chathuri...@wso2.com
>>> *Mobile: *+94714 328 612
>>> *Blog*: chathurikaerandi.blogspot.com
>>>
>>
>>
>>
>> --
>>
>> *Praminda Jayawardana*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> Mobile : +94 (0) 716 590918 <+94%2071%20659%200918>
>>
>
>
>
> --
> *Chathurika Erandi*
> Senior Software Engineer,
> WSO2 Inc.
>
> *E-mail:* chathuri...@wso2.com
> *Mobile: *+94714 328 612
> *Blog*: chathurikaerandi.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Error occurred while connecting to back end

2017-12-12 Thread Abimaran Kugathasan
un(
> TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: sun.security.validator.ValidatorException: PKIX path
> validation failed: java.security.cert.CertPathValidatorException:
> timestamp check failed
> at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:352)
> at sun.security.validator.PKIXValidator.engineValidate(
> PKIXValidator.java:260)
> at sun.security.validator.Validator.validate(Validator.java:260)
> at sun.security.ssl.X509TrustManagerImpl.validate(
> X509TrustManagerImpl.java:324)
> at sun.security.ssl.X509TrustManagerImpl.checkTrusted(
> X509TrustManagerImpl.java:229)
> at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(
> X509TrustManagerImpl.java:124)
> at sun.security.ssl.ClientHandshaker.serverCertificate(
> ClientHandshaker.java:1496)
> ... 89 more
> Caused by: java.security.cert.CertPathValidatorException: timestamp check
> failed
> at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(
> PKIXMasterCertPathValidator.java:135)
> at sun.security.provider.certpath.PKIXCertPathValidator.validate(
> PKIXCertPathValidator.java:219)
> at sun.security.provider.certpath.PKIXCertPathValidator.validate(
> PKIXCertPathValidator.java:140)
> at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(
> PKIXCertPathValidator.java:79)
> at java.security.cert.CertPathValidator.validate(
> CertPathValidator.java:292)
> at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:347)
> ... 95 more
> Caused by: java.security.cert.CertificateExpiredException: NotAfter: Mon
> Jun 19 14:43:07 IST 2017
> at sun.security.x509.CertificateValidity.valid(
> CertificateValidity.java:274)
> at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:629)
> at sun.security.provider.certpath.BasicChecker.
> verifyTimestamp(BasicChecker.java:190)
> at sun.security.provider.certpath.BasicChecker.check(
> BasicChecker.java:144)
> at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(
> PKIXMasterCertPathValidator.java:125)
> ... 100 more
>
>
>
> Regards,
>
> *Senuwan Withana*
> Software Engineer - Support Team | WSO2
>
> Email : senu...@wso2.com
> Mobile: 94773212853
> Web: http://www.wso2.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] APIManagerComponent Exception occurred while creating JMS Event Adapter

2017-12-05 Thread Abimaran Kugathasan
artChild.call(Conta
>>>> inerBase.java:1571)
>>>> at org.apache.catalina.core.ContainerBase$StartChild.call(Conta
>>>> inerBase.java:1561)
>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>>>> Executor.java:1142)
>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>>>> lExecutor.java:617)
>>>> at java.lang.Thread.run(Thread.java:748)
>>>> [2017-12-05 09:14:25,437]  INFO - AMQConnection Unable to connect to
>>>> broker at tcp://10.100.7.13:5674
>>>> org.wso2.andes.transport.TransportException: Could not open connection
>>>> at org.wso2.andes.transport.network.mina.MinaNetworkTransport$I
>>>> oConnectorCreator.connect(MinaNetworkTransport.java:216)
>>>> at org.wso2.andes.transport.network.mina.MinaNetworkTransport.c
>>>> onnect(MinaNetworkTransport.java:74)
>>>> at org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerCo
>>>> nnection(AMQConnectionDelegate_8_0.java:130)
>>>> at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:631)
>>>> at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:628)
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>> at org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQ
>>>> Connection.java:628)
>>>> at org.wso2.andes.client.AMQConnection.(AMQConnection.java:409)
>>>> at org.wso2.andes.client.AMQConnectionFactory.createConnection(
>>>> AMQConnectionFactory.java:351)
>>>> at org.wso2.andes.client.AMQConnectionFactory.createConnection(
>>>> AMQConnectionFactory.java:40)
>>>> at org.wso2.carbon.apimgt.jms.listener.utils.JMSUtils.createCon
>>>> nection(JMSUtils.java:387)
>>>> at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.checkJ
>>>> MSConnection(JMSListener.java:137)
>>>> at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.start(
>>>> JMSListener.java:79)
>>>> at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.run(JM
>>>> SListener.java:186)
>>>> at java.lang.Thread.run(Thread.java:748)
>>>> org.wso2.andes.AMQConnectionFailureException: Could not open connection
>>>> at org.wso2.andes.client.AMQConnection.(AMQConnection.java:486)
>>>> at org.wso2.andes.client.AMQConnectionFactory.createConnection(
>>>> AMQConnectionFactory.java:351)
>>>> at org.wso2.andes.client.AMQConnectionFactory.createConnection(
>>>> AMQConnectionFactory.java:40)
>>>> at org.wso2.carbon.apimgt.jms.listener.utils.JMSUtils.createCon
>>>> nection(JMSUtils.java:387)
>>>> at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.checkJ
>>>> MSConnection(JMSListener.java:137)
>>>> at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.start(
>>>> JMSListener.java:79)
>>>> at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.run(JM
>>>> SListener.java:186)
>>>> at java.lang.Thread.run(Thread.java:748)
>>>> Caused by: org.wso2.andes.transport.TransportException: Could not open
>>>> connection
>>>> at org.wso2.andes.transport.network.mina.MinaNetworkTransport$I
>>>> oConnectorCreator.connect(MinaNetworkTransport.java:216)
>>>> at org.wso2.andes.transport.network.mina.MinaNetworkTransport.c
>>>> onnect(MinaNetworkTransport.java:74)
>>>> at org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerCo
>>>> nnection(AMQConnectionDelegate_8_0.java:130)
>>>> at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:631)
>>>> at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:628)
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>> at org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQ
>>>> Connection.java:628)
>>>> at org.wso2.andes.client.AMQConnection.(AMQConnection.java:409)
>>>> ... 7 more
>>>>
>>>>
>>>> [1] - https://docs.wso2.com/display/AM210/Distributed+Deployment
>>>> +of+the+Gateway#5a69bb14f904452ab5c678035c21178e
>>>>
>>>>
>>>> Any suggestion to over come the above issue.
>>>>
>>>> Regards,
>>>>
>>>> *Senuwan Withana*
>>>> Software Engineer - Support Team | WSO2
>>>>
>>>> Email : senu...@wso2.com
>>>> Mobile: 94773212853
>>>> Web: http://www.wso2.com
>>>>
>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *Krishan Wijesena*
>>> Software Engineer | WSO2
>>>
>>> Email : krish...@wso2.com
>>> Mobile : +94776219923 <+94%2077%20621%209923>
>>> WSO2 Inc : http://wso2.com
>>> [image: http://wso2.com/signature] <http://wso2.com/signature>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Samitha Chathuranga
>> Software Engineer, WSO2 Inc.
>> lean.enterprise.middleware
>> Mobile: +94715123761
>>
>> [image: http://wso2.com/signature] <http://wso2.com/signature>
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5] Setting TrustStore and KeyStore as Java System properties

2017-11-29 Thread Abimaran Kugathasan
Hi Dulanja,

If we set these keystores through system properties, we will be losing
the flexibility of having different keystore for different purposes like
SSL, JWT signing, etc.

On Wed, Nov 29, 2017 at 4:09 PM, Dulanja Liyanage <dula...@wso2.com> wrote:

> Hi All,
>
> From the conversations I had with some of the developers, it seems
> $subject is not done from the kernel level. Is my understanding correct?
>
> If so, any particular reason for not doing this from the kernel level?
>
> Thanks,
> Dulanja
>
> --
> Thanks & Regards,
> Dulanja Liyanage
> Lead, Platform Security Team
> WSO2 Inc.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] nginx master_process on; (code=exited, status=1/FAILURE)

2017-11-29 Thread Abimaran Kugathasan
>>>>> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
>>>>> nginx.service: Control process exited, code=exited status=1
>>>>> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th systemd[1]: Failed
>>>>> to start A high performance web server and a reverse proxy server.
>>>>> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
>>>>> nginx.service: Unit entered failed state.
>>>>> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
>>>>> nginx.service: Failed with result 'exit-code'.
>>>>>
>>>>>
>>>>> If you have come across this kind of error please advice.
>>>>>
>>>>> Regards
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Nov 28, 2017 at 5:17 PM, Senuwan Withana <senu...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Dushantha,
>>>>>>
>>>>>> Its seems your port is already used. Please check on it again
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> *Senuwan Withana*
>>>>>> Software Engineer - Support Team | WSO2
>>>>>>
>>>>>> Email : senu...@wso2.com
>>>>>> Mobile: 94773212853 <077%20321%202853>
>>>>>> Web: http://www.wso2.com
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Nov 28, 2017 at 5:09 PM, Dushantha Batuwita <
>>>>>> dushan...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Dev
>>>>>>>
>>>>>>> I have installed the nginx and when I try  starting the nginx, I
>>>>>>> receive following error.
>>>>>>>
>>>>>>>  sudo service nginx start
>>>>>>>
>>>>>>> Job for nginx.service failed because the control process exited with
>>>>>>> error code.
>>>>>>> See "systemctl  status nginx.service" and "journalctl  -xe" for
>>>>>>> details.
>>>>>>>
>>>>>>>
>>>>>>> when I check the status it gives me.
>>>>>>>
>>>>>>> ● nginx.service - A high performance web server and a reverse proxy
>>>>>>> server
>>>>>>>Loaded: loaded (/lib/systemd/system/nginx.service; enabled;
>>>>>>> vendor preset: enabled)
>>>>>>>Active: failed (Result: exit-code) since Tue 2017-11-28 16:33:48
>>>>>>> +0530; 50s ago
>>>>>>>  Docs: man:nginx(8)
>>>>>>>   Process: 953 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
>>>>>>> master_process on; (code=exited, status=1/FAILURE)
>>>>>>>
>>>>>>> නෙවැ 28 16:44:57 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]:
>>>>>>> nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
>>>>>>> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]:
>>>>>>> nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in
>>>>>>> use)
>>>>>>> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]:
>>>>>>> nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
>>>>>>> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]:
>>>>>>> nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in
>>>>>>> use)
>>>>>>> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]:
>>>>>>> nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
>>>>>>> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]:
>>>>>>> nginx: [emerg] still could not bind()
>>>>>>> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
>>>>>>> nginx.service: Control process exited, code=exited status=1
>>>>>>> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
>>>>>>> Failed to start A high performance web server and a reverse proxy 
>>>>>>> server.
>>>>>>> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
>>>>>>> nginx.service: Unit entered failed state.
>>>>>>> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
>>>>>>> nginx.service: Failed with result 'exit-code'.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Is there any possible solution to get rid of the error
>>>>>>> regards
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Dushantha Nayanajith Chandima Batuwita*
>>>>>>> Software Engineer Support | WSO2
>>>>>>> dushan...@wso2.com
>>>>>>> mobile : 0094777453010 <077%20745%203010>
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Dushantha Nayanajith Chandima Batuwita*
>>>>> Software Engineer Support | WSO2
>>>>> dushan...@wso2.com
>>>>> mobile : 0094777453010 <077%20745%203010>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Senduran *
>>>> Senior Software Engineer,
>>>> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
>>>> Mobile: +94 77 952 6548 <+94%2077%20952%206548>
>>>>
>>>
>>>
>>>
>>> --
>>> *Dushantha Nayanajith Chandima Batuwita*
>>> Software Engineer Support | WSO2
>>> dushan...@wso2.com
>>> mobile : 0094777453010 <077%20745%203010>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Isuru Udana*
>> Senior Technical Lead
>> WSO2 Inc.; http://wso2.com
>> email: isu...@wso2.com cell: +94 77 3791887 <+94%2077%20379%201887>
>> blog: http://mytecheye.blogspot.com/
>>
>
>
>
> --
> *Dushantha Nayanajith Chandima Batuwita*
> Software Engineer Support | WSO2
> dushan...@wso2.com
> mobile : 0094777453010
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] hostname in certificate didn't match: !=

2017-11-28 Thread Abimaran Kugathasan
catorBase.java:506)
>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHo
>> stValve.java:169)
>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
>> rtValve.java:103)
>> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInv
>> ocation(CompositeValve.java:99)
>> at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke
>> (CarbonTomcatValve.java:47)
>> at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(Tena
>> ntLazyLoaderValve.java:57)
>> at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invok
>> eValves(TomcatValveContainer.java:47)
>> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(Comp
>> ositeValve.java:62)
>> at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetection
>> Valve.invoke(CarbonStuckThreadDetectionValve.java:159)
>> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVa
>> lve.java:962)
>> at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.
>> invoke(CarbonContextCreatorValve.java:57)
>> at org.apache.catalina.core.StandardEngineValve.invoke(Standard
>> EngineValve.java:116)
>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd
>> apter.java:445)
>> at org.apache.coyote.http11.AbstractHttp11Processor.process(Abs
>> tractHttp11Processor.java:1115)
>> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler
>> .process(AbstractProtocol.java:637)
>> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
>> (NioEndpoint.java:1775)
>> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(
>> NioEndpoint.java:1734)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>> Executor.java:1142)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>> lExecutor.java:617)
>> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.
>> run(TaskThread.java:61)
>>
>>
>> --
>>
>>
>> *Nuwan Silva*
>> *Associate Technical Lead*
>> Mobile: +9477 980 4543 <077%20980%204543>
>>
>> WSO2 Inc.
>> lean . enterprise . middleware.
>> http://www.wso2.com
>>
>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048 <+94%2071%20635%208048>* <http://wso2.com/>*
>
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to validate email adddress

2017-11-27 Thread Abimaran Kugathasan
Hi Dilusha,

Since you have defined is as path parameter in the template, you must use '
uri.var.id' instead of 'query.param.id' in the filter mediator like below.



On Sat, Nov 25, 2017 at 11:37 AM, Dilusha Alphonso <dilu...@wso2.com> wrote:

> Hi All,
>
> Requirement: I need to check a condition " Patient ID is the email address
> of given patient". When I give any string to the ID, it must be an email
> address. I have to validate ID whether it is in email format. For this, I
> used the filter mediator in ESB, But I noticed my request didn't go through
> that filter mediator.
>
> I attached my API configuration in ESB. Please, anyone, help me to
> validate the email address with ID.
>
> http://ws.apache.org/ns/synapse; name="Durdan"
> context="/test">
>
>   
>  
>   regex="/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/">
> 
>
>
>   
>  http://schemas.
> xmlsoap.org/soap/envelope/">
> 
>17
> 
> 
>http://service.
> sample.durdans.com">
>   $1
>
> 
>  
>   
>   
>  
>   
>
>
> scope="transport"/>
>
>   
>  
>   
>
>
> scope="axis2" type="STRING"/>
> 
> 
>
>   
>
> 
>  
>   
>   
>  
>   
>
> 
>
> Thanks
> Dilusha
>
>
>
>
>
> before loop back to out sequence whether the USER_NAME and PATIENT_ID are
> equal.
>
> --
>
>
> *Best Regards,Dilusha Alphonso*
>
> *Software Engineer - Support Team*
>
>
> *WSO2*
> *Mobile : *
>
> *+94766837098 <+94%2076%20683%207098>[image: http://wso2.com/signature]
> <http://wso2.com/signature>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Disabling HTTP Transports in Carbon Servers - Servlet and Passthru

2017-11-27 Thread Abimaran Kugathasan
Hi Isuru,

Servlet HTTP transport is by default is disabled and you can enable it
through EnableHTTPAdminConsole property[1]. For passthrough transport, we
can disable HTTP transportReceiver and transportSender in axis2.xml file.

[1]: Enable WSO2 Carbon Management Console via HTTP Transport not working?

On Mon, Nov 27, 2017 at 2:18 PM, Isuru Haththotuwa <isu...@wso2.com> wrote:

>
>
> On Mon, Nov 27, 2017 at 1:57 PM, Rukshan Premathunga <ruks...@wso2.com>
> wrote:
>
>> Hi Isuru,
>>
>> It is already reported[1]
>>
>> [1] https://wso2.org/jira/browse/DOCUMENTATION-4179
>>
> This is about enabling HTTP access, but am trying to disable them at the
> transport level.
>
>>
>> Thanks and Regards
>>
>> On Mon, Nov 27, 2017 at 1:40 PM, Isuru Haththotuwa <isu...@wso2.com>
>> wrote:
>>
>>> Hi Devs,
>>>
>>> Do we have documentation for $subject?
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048 <+94%2071%20635%208048>* <http://wso2.com/>*
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rukshan Chathuranga.
>> Software Engineer.
>> WSO2, Inc.
>> +94711822074 <071%20182%202074>
>>
>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048 <071%20635%208048>* <http://wso2.com/>*
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API with Ip based throttling gives an error

2017-11-23 Thread Abimaran Kugathasan
tiesFileInitialContextFactory, transport.jms.DestinationType=topic,
> transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory,
> transport.jms.Destination=throttleData}
> at org.wso2.carbon.event.output.adapter.jms.internal.util.
> JMSConnectionFactory.handleException(JMSConnectionFactory.java:197)
> at org.wso2.carbon.event.output.adapter.jms.internal.util.
> JMSConnectionFactory.createConnection(JMSConnectionFactory.java:278)
> at org.wso2.carbon.event.output.adapter.jms.internal.util.
> JMSConnectionFactory$PoolableJMSConnectionFactory.makeObject(
> JMSConnectionFactory.java:356)
> at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(
> GenericObjectPool.java:1181)
> at org.wso2.carbon.event.output.adapter.jms.internal.util.
> JMSConnectionFactory.getConnectionFromPool(JMSConnectionFactory.java:286)
> at org.wso2.carbon.event.output.adapter.jms.internal.util.
> JMSMessageSender.send(JMSMessageSender.java:86)
> at org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter$
> JMSSender.run(JMSEventAdapter.java:284)
> at java.util.concurrent.Executors$RunnableAdapter.
> call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: javax.jms.JMSException: Error creating connection: Could not
> open connection
> at org.wso2.andes.client.AMQConnectionFactory.createConnection(
> AMQConnectionFactory.java:361)
> at org.wso2.andes.client.AMQConnectionFactory.createConnection(
> AMQConnectionFactory.java:40)
> at org.wso2.carbon.event.output.adapter.jms.internal.util.
> JMSUtils.createConnection(JMSUtils.java:387)
> at org.wso2.carbon.event.output.adapter.jms.internal.util.
> JMSConnectionFactory.createConnection(JMSConnectionFactory.java:268)
> ... 10 more
> Caused by: org.wso2.andes.AMQConnectionFailureException: Could not open
> connection
> at org.wso2.andes.client.AMQConnection.(AMQConnection.java:486)
> at org.wso2.andes.client.AMQConnectionFactory.createConnection(
> AMQConnectionFactory.java:351)
> ... 13 more
> Caused by: org.wso2.andes.transport.TransportException: Could not open
> connection
> at org.wso2.andes.transport.network.mina.MinaNetworkTransport$
> IoConnectorCreator.connect(MinaNetworkTransport.java:216)
> at org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(
> MinaNetworkTransport.java:74)
> at org.wso2.andes.client.AMQConnectionDelegate_8_0.
> makeBrokerConnection(AMQConnectionDelegate_8_0.java:130)
> at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:631)
> at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:628)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.wso2.andes.client.AMQConnection.makeBrokerConnection(
> AMQConnection.java:628)
> at org.wso2.andes.client.AMQConnection.(AMQConnection.java:409)
> ... 14 more
> [2017-11-23 12:45:48,041] ERROR - JMSMessageSender
> java.lang.NullPointerException
> at org.wso2.carbon.event.output.adapter.jms.internal.util.
> JMSMessageSender.send(JMSMessageSender.java:88)
> at org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter$
> JMSSender.run(JMSEventAdapter.java:284)
> at java.util.concurrent.Executors$RunnableAdapter.
> call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:748)
>
> How can I resolve this problem? Your support is highly appreciated.
>
> Thanks
> --
>
>
> *Buddhimala Ranasinghe*
> Software Engineer-Support Team | WSO2
> Emil: buddhim...@wso2.com
> Mobile:+94771563138 <+94%2077%20156%203138>
> Web:http://wso2.com
> [image: https://wso2.com/signature] <https://wso2.com/signature>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Invoking an API through Android Application

2017-11-22 Thread Abimaran Kugathasan
Hi Isuru,

Based on the following error, you should have org.wso2.client.api.TestApi1
and org.wso2.client.model.TestApi1 packages. Can you check the whether you
have both?  It's a compilation error.

/TestApi1_1.0.0_android/src/main/java/org/wso2/client/api/TestApi1/DefaultApi.java:[31,1]
package org.wso2.client.model.TestApi1 does not exist

On Wed, Nov 22, 2017 at 7:53 AM, Isuru Uyanage <isur...@wso2.com> wrote:

> Hi All,
>
> I have an Android application developed and need to invoke an API created
> in WSO2 API Manager(2.1.0) through the Android app.
>
> The following tasks have been done.
>
> 1. I have created an API using an existing SOAP Endpoint(wsdl)
>
> 2. Downloaded the SDK from API Manager for Android.
>
> 3. Android application has been developed.
>
> 4. As in the README.md file(which has been downloaded with the SDK), when
> I'm trying to generate the jar by executing *'mvn package' *command, the
> build gets failed as below. The API which I created was TestApi1.
>
> /TestApi1_1.0.0_android/src/main/java/org/wso2/client/api/TestApi1/DefaultApi.java:[31,1]
> package org.wso2.client.model.TestApi1 does not exist
>
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile
> *(default-compile)* on projectorg.wso2.client.TestApi1: *Compilation
> failure*
>
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
> oExecutor.java:213)
>
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
> oExecutor.java:154)
>
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
> oExecutor.java:146)
>
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b
> uildProject(LifecycleModuleBuilder.java:117)
>
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b
> uildProject(LifecycleModuleBuilder.java:81)
>
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.S
> ingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:128)
>
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
>
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
>
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
>
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
>
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
>
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
>
> 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnha
> nced(Launcher.java:289)
>
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
> Launcher.java:229)
>
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithEx
> itCode(Launcher.java:415)
>
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(
> Launcher.java:356)
>
> Caused by: org.apache.maven.plugin.compiler.CompilationFailureException:
> Compilation failure
>
> at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execut
> e(AbstractCompilerMojo.java:972)
>
> at org.apache.maven.plugin.compiler.CompilerMojo.execute(Compil
> erMojo.java:129)
>
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMoj
> o(DefaultBuildPluginManager.java:134)
>
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
> oExecutor.java:208)
>
> ... 20 more
>
> Any thoughts on what should be done to invoke API created through the
> Android Application. And any comments are appreciated on what has gone
> wrong here in step 4.
>
>
> *Thanks and Best Regards,*
>
> *Isuru Uyanage*
> *Software Engineer - QA | WSO2*
> *Mobile : **+94 77 <+94%2077%20767%201807> 55 30752*
> *LinkedIn: **https://www.linkedin.com/in/isuru-uyanage/
> <https://www.linkedin.com/in/isuru-uyanage/>*
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Using a Proxy or an API is the best practice for a secured legacy(SOAP) back end service.

2017-11-13 Thread Abimaran Kugathasan
Hi Thivya,

Normally, API refers to REST APIs, while a proxy service can be used with
any type of backend services like HTTP, WSDL, [1]. Since you have a WSDL
service as the backend, better to use WSDL Based Proxy, otherwise you have
to convert REST to SOAP before sending to the backend.

Also, for REST API, we can use OAuth header which is handled through auth
handler, and for proxies based on WSDL, it's better to WS-Security. But,
you can use auth handler too.

[1]: https://docs.wso2.com/display/ESB500/WSO2+ESB+Endpoints

On Mon, Nov 13, 2017 at 5:52 PM, Thivya Mahenthirarasa <thi...@wso2.com>
wrote:

> Hi All,
>
> I am working on the scenario which is having CRUD operations where I have
> to create a service in ESB 5.0.0 using a WSDL of a SOAP backend service.
>
> I have tried this scenario with both Proxy and API in ESB. Also, I need to
> secure the ESB service too.
>
> I have configured the WS-Security policy[1] to secure the Proxy service
> and but API I couldn't able to secure API with WS-Security policy so I have
> used custom Auth Handler[2] to secure API.
>
> 1. What you think whether to use a Proxy or API, for me to be the best
> practice to access a SOAP backend WSDL service?
> 2. Using custom auth handler or WS-Security policy is the best way for the
> security.
>
>
> Could you please advice on this. Your ideas are much appreciated.
>
>
>
> [1] https://docs.wso2.com/display/ESB500/Securing+APIs#SecuringAPIs-
> BasicAuthUsingaBasicAuthhandler
> [2] https://docs.wso2.com/display/ESB500/Applying+Security+to+a+
> Proxy+Servicev
>
>
>
>
> --
>
> *Thivya Mahenthirarasa*
>
> *Software Engineer -Support Team | WSO2*
>
>
> *Email: thi...@wso2.com <thi...@wso2.com>*
>
> *Mobile: +94766461966 <+94%2076%20646%201966> <http://wso2.com/signature>*
> *Web: http://wso2.com <http://wso2.com>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Code formatting for swagger2MSF4J

2017-11-13 Thread Abimaran Kugathasan
Hi Inosh,

On Mon, Nov 13, 2017 at 2:27 PM, Inosh Perera <ino...@wso2.com> wrote:

> Hi All,
>
> I'm writing device type APIs for IoT server and I have written a yaml that
> I'm trying to convert[1] to MSF4J. When checking the generated code, it
> looks bit messy and there is no proper formatting or license headers in the
> generated code. Is there a way to do this with io.swagger.codegen or is it
> done manually?
>

 Normally we don't format the code or license header for the generated
code. License can be added through mustache files. But, this code gen don't
have the capability to auto format the code as class names, parameters
names are depends on your API swagger file parameters. It's hard to format.

Also, since this gen directory is replace each time you generate the code,
we don't do anything manually there. But, functionality should work.

[1]:
https://github.com/sanjeewa-malalgoda/swagger2MSF4J/tree/master/src/main/resources/MSF4J


>
> [1]. https://github.com/sanjeewa-malalgoda/swagger2MSF4J
>
> Regards,
> Inosh
>
> --
> Inosh Perera
> Senior Software Engineer, WSO2 Inc.
> Tel: 077813 7285, 0785293686
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820 <+94%2077%20392%202820>

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Usage of "sticky cookie JSESSIONID" parameter.

2017-11-09 Thread Abimaran Kugathasan
Hi Pubudu,

We can recompile and install sticky module on community version.

On Fri, Nov 10, 2017 at 9:55 AM, Senuwan Withana <senu...@wso2.com> wrote:

> Hi Pubudu,
>
> Thanks for information, I will try out ip_hash;
>
> *Senuwan Withana*
> Software Engineer - Support Team | WSO2
>
> Email : senu...@wso2.com
> Mobile: 94773212853
> Web: http://www.wso2.com
>
>
>
> On Fri, Nov 10, 2017 at 9:52 AM, Pubudu Gunatilaka <pubu...@wso2.com>
> wrote:
>
>> Hi Senuwan,
>>
>> For session persistence, you can use ip_hash instead of sticky sessions
>> [1]. Nginx community version does not support sticky sessions.
>>
>> [1] - https://docs.wso2.com/display/CLUSTER44x/Configuring+NGINX
>>
>> Thank you!
>>
>> On Thu, Nov 9, 2017 at 4:38 PM, Senuwan Withana <senu...@wso2.com> wrote:
>>
>>> Hi Abimaran,
>>>
>>> No, I have not installed it. I just follow the documentation steps.
>>>
>>> *Senuwan Withana*
>>> Software Engineer - Support Team | WSO2
>>>
>>> Email : senu...@wso2.com
>>> Mobile: 94773212853
>>> Web: http://www.wso2.com
>>>
>>>
>>>
>>> On Thu, Nov 9, 2017 at 4:34 PM, Abimaran Kugathasan <abima...@wso2.com>
>>> wrote:
>>>
>>>> Hi Senuwan,
>>>>
>>>> Have you installed sticky module on your Nginx?
>>>>
>>>> [1]: https://bitbucket.org/nginx-goodies/nginx-sticky-module
>>>> -ng/overview
>>>>
>>>> On Thu, Nov 9, 2017 at 2:29 PM, Senuwan Withana <senu...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Team,
>>>>>
>>>>> I would like to know what is the usage of below parameter, in the
>>>>> NGINX configuring file which located on [1] document.
>>>>>
>>>>>
>>>>> sticky cookie JSESSIONID;
>>>>>
>>>>>
>>>>> I got following error message when restarts my NGINX service, but when
>>>>> I removed above parameter no issue came.
>>>>>
>>>>>
>>>>> -- Unit nginx.service has begun starting up.
>>>>> Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: [emerg] unknown
>>>>> directive "sticky" in /etc/nginx/conf.d/am.https.conf:2
>>>>> Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: configuration
>>>>> file /etc/nginx/nginx.conf test failed
>>>>> Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: nginx.service: Control
>>>>> process exited, code=exited status=1
>>>>> Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: Failed to start A high
>>>>> performance web server and a reverse proxy server.
>>>>>
>>>>>
>>>>> [1] https://docs.wso2.com/display/CLUSTER44x/Clustering+the+
>>>>> Gateway#ClusteringtheGateway-Configuringtheloadbalancer
>>>>>
>>>>> Regards,
>>>>>
>>>>> *Senuwan Withana*
>>>>> Software Engineer - Support Team | WSO2
>>>>>
>>>>> Email : senu...@wso2.com
>>>>> Mobile: 94773212853
>>>>> Web: http://www.wso2.com
>>>>>
>>>>>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Thanks
>>>> Abimaran Kugathasan
>>>> Senior Software Engineer - API Technologies
>>>>
>>>> Email : abima...@wso2.com
>>>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>>>
>>>> <http://stackoverflow.com/users/515034>
>>>> <http://lk.linkedin.com/in/abimaran>
>>>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>>>> <https://twitter.com/abimaran>
>>>>
>>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Pubudu Gunatilaka*
>> Committer and PMC Member - Apache Stratos
>> Senior Software Engineer
>> WSO2, Inc.: http://wso2.com
>> mobile : +94774078049 <%2B94772207163>
>>
>>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Usage of "sticky cookie JSESSIONID" parameter.

2017-11-09 Thread Abimaran Kugathasan
Hi Senuwan,

Have you installed sticky module on your Nginx?

[1]: https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/overview

On Thu, Nov 9, 2017 at 2:29 PM, Senuwan Withana <senu...@wso2.com> wrote:

> Hi Team,
>
> I would like to know what is the usage of below parameter, in the NGINX
> configuring file which located on [1] document.
>
>
> sticky cookie JSESSIONID;
>
>
> I got following error message when restarts my NGINX service, but when I
> removed above parameter no issue came.
>
>
> -- Unit nginx.service has begun starting up.
> Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: [emerg] unknown
> directive "sticky" in /etc/nginx/conf.d/am.https.conf:2
> Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: configuration file
> /etc/nginx/nginx.conf test failed
> Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: nginx.service: Control
> process exited, code=exited status=1
> Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: Failed to start A high
> performance web server and a reverse proxy server.
>
>
> [1] https://docs.wso2.com/display/CLUSTER44x/Clustering+the+Gateway#
> ClusteringtheGateway-Configuringtheloadbalancer
>
> Regards,
>
> *Senuwan Withana*
> Software Engineer - Support Team | WSO2
>
> Email : senu...@wso2.com
> Mobile: 94773212853
> Web: http://www.wso2.com
>
>
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Testing for Offline Microgateway

2017-10-24 Thread Abimaran Kugathasan
Hi Sabeena,

I guess you are planning to write an HTTP client library to invoke APIs. In
that case, there are many HTTP libraries out there. Swagger codegen [1]
provides a client for different languages, for Java, it provides client SDK
compatible with Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x,
Feign, RestTemplate, RESTEasy, Vertx

[1]: https://github.com/swagger-api/swagger-codegen

On Tue, Oct 24, 2017 at 10:34 PM, Rajith Roshan <raji...@wso2.com> wrote:

> Hi,
>
> In C5 we have used  feign library[1] as a http client. You can refer the
> usages in code[2]
>
> [1] - https://github.com/OpenFeign/feign
> [2] - https://github.com/wso2/carbon-apimgt/blob/master/
> components/apimgt/org.wso2.carbon.apimgt.core/src/main/
> java/org/wso2/carbon/apimgt/core/auth/DCRMServiceStub.java#L36
>
> On Thu, Oct 19, 2017 at 3:02 PM, Sabeena Kumrawadu <sabe...@wso2.com>
> wrote:
>
>> Thank you Farasath.
>> But AFAIK SwaggerHub is for creating the API swagger defintion.
>> But my task is to write an API client for the integration tests of the
>> microgateway.
>> I want to know which library would be more suitable. Jersey, Apache HTTP
>> clienr or any other?
>>
>> Regards.
>>
>> On Thu, Oct 19, 2017 at 11:09 AM, Farasath Ahamed <farasa...@wso2.com>
>> wrote:
>>
>>> I have used https://editor.swagger.io/ to generate clients. Pretty easy
>>> and gives plenty of options when you have the swagger files.
>>>
>>> Thanks,
>>> Farasath
>>>
>>> Farasath Ahamed
>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>> Mobile: +94777603866
>>> Blog: blog.farazath.com
>>> Twitter: @farazath619 <https://twitter.com/farazath619>
>>> <http://wso2.com/signature>
>>>
>>>
>>>
>>> On Thu, Oct 19, 2017 at 9:20 AM, Sabeena Kumrawadu <sabe...@wso2.com>
>>> wrote:
>>>
>>>> Hello Farasath,
>>>>
>>>> Yes.  For the testing purpose only.
>>>>
>>>> Regards.
>>>>
>>>> On Wed, Oct 18, 2017 at 7:13 PM, Farasath Ahamed <farasa...@wso2.com>
>>>> wrote:
>>>>
>>>>>
>>>>> Hi Sabeena,
>>>>> On Wednesday, October 18, 2017, Sabeena Kumrawadu <sabe...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I have to test the Offline Microgateway, which I finished building
>>>>>> recently,
>>>>>>
>>>>>> To introduce about the Offline Microgateway, it can be started
>>>>>> independantly, and has no connection with the API Core, where the
>>>>>> authentication is done with the API keys.
>>>>>>
>>>>>> User only has to give the API bal files and the API swagger files of
>>>>>> each APIS to start the gateway.
>>>>>>
>>>>>> Currently it has been suggested to build an API client with the
>>>>>> Jersey client. What would be the best way of creting an API client for 
>>>>>> this
>>>>>> task?
>>>>>>
>>>>>
>>>>> By API Client you mean clients for each API we deploy?
>>>>>
>>>>>>
>>>>>> Thanks and Regards.
>>>>>>
>>>>>> --
>>>>>> *Sabeena Kumarawadu* | Software Engineering Intern
>>>>>> WSO2 Lanka (Pvt) Ltd.
>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>>>> <https://maps.google.com/?q=20,+Palm+Grove,+Colombo+03,+Sri+Lanka=gmail=g>
>>>>>> Mobile: +94 71 0372856 <+94%2071%20037%202856>
>>>>>> Email: sabe...@wso2.com
>>>>>> [image: http://wso2.com/signature] <http://wso2.com/signature>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> Farasath Ahamed
>>>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>>>> Mobile: +94777603866
>>>>> Blog: blog.farazath.com
>>>>> Twitter: @farazath619 <https://twitter.com/farazath619>
>>>>> <http://wso2.com/signature>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Sabeena Kumarawadu* | Software Engineering Intern
>>>> WSO2 Lanka (Pvt) Ltd.
>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>> <https://maps.google.com/?q=20,+Palm+Grove,+Colombo+03,+Sri+Lanka=gmail=g>
>>>> Mobile: +94 71 0372856 <+94%2071%20037%202856>
>>>> Email: sabe...@wso2.com
>>>> [image: http://wso2.com/signature] <http://wso2.com/signature>
>>>>
>>>>
>>>
>>
>>
>> --
>> *Sabeena Kumarawadu* | Software Engineering Intern
>> WSO2 Lanka (Pvt) Ltd.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 0372856 <+94%2071%20037%202856>
>> Email: sabe...@wso2.com
>> [image: http://wso2.com/signature] <http://wso2.com/signature>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajith Roshan
> Senior Software Engineer, WSO2 Inc.
> Mobile: +94-7 <%2B94-71-554-8430>17-064-214
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Entitlement Mediator is Content Aware

2017-10-12 Thread Abimaran Kugathasan
Because it has to create XACML request for PDP based on the content and
process response.



On Fri, Oct 13, 2017 at 6:03 AM, Isuru Haththotuwa <isu...@wso2.com> wrote:

> Hi,
>
> It seems $subject [1]. Any specific reason?
>
> [1]. https://github.com/wso2/carbon-mediation/blob/master/
> components/mediators/entitlement/org.wso2.carbon.
> identity.entitlement.mediator/src/main/java/org/wso2/carbon/
> identity/entitlement/mediator/EntitlementMediator.java
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048 <+94%2071%20635%208048>* <http://wso2.com/>*
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] remoteInstance port for registry when configuring API manager cluster

2017-09-15 Thread Abimaran Kugathasan
Hi Feng,

It's the URL of the remote instance which depends on the port offset. You
can refer
https://docs.wso2.com/display/Governance540/Remote+Instance+and+Mount+Configuration+Details
.

On Thu, Sep 14, 2017 at 6:41 AM, Feng Xu <ive...@gmail.com> wrote:

> Hi all,
>
> I'm following this article to configure a cluster for API manager (
> https://docs.wso2.com/display/AM210/Configuring+an+
> Active-Active+Deployment ).
>
> I'm confused by the port used for registry in step 6.
>
> The document says
>
> https://localhost: <https://localhost:9453/registry>
> 9453 <https://localhost:9453/registry>/registry"
> <https://localhost:9453/registry>>
> wso2gov
> wso2gov
> false
> /
> 
>
> Please note it's 9453, but in default registry.xml in installed folder, it
> provides an example:
>
> 
>
>
> My question is which one is correct.
>
> Thanks in advance!
>
>
> --
> Regards,
> Iven
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Change token url in WSO2 API Manager

2017-09-06 Thread Abimaran Kugathasan
Hi Shiva,

This token endpoint URL is independent of tenants, also, tenants are
added/removed at runtime, so token API can't depend on tenants. Why do you
need such requirement?

On Tue, Sep 5, 2017 at 11:19 AM, <shiv...@securelyshare.com> wrote:

> Hi Wso2 team,
>
>
>
> Please can you suggest any ways to change default token generation url,
> http://:8280/token  to http://:8280/t/<
> tenant-domain>/token.
>
> For eg.
>
> Default token generation is http://wso2.com:8280/token
>
> I want – http://wso2.com:8280/t/securelyshare.com/token
>
>
>
> How can I achieve this, thanks in advance.
>
>
>
> Thank You,
>
> Shiva Kumar KR
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting exception while using andes-client lib as JMS client for API Manager 3.0.

2017-08-21 Thread Abimaran Kugathasan
Hi Asanka,

As I checked offline with Niranjan, this SPI service introduced in C5. I'm
checking on this further.

On Mon, Aug 21, 2017 at 11:03 AM, Asanka Abeyweera <asank...@wso2.com>
wrote:

> Hi Abimaran and all,
>
> Is the requirement to expose as SPI service something introduced in
> Carbon 5? I am curious on how it worked with APIM 2.1.0. Can't we do the
> same thing?
>
> On Mon, Aug 21, 2017 at 10:48 AM, Abimaran Kugathasan <abima...@wso2.com>
> wrote:
>
>> Hi,
>>
>> We are embedding Message Broker feature into API Manager 3.0 core, now
>> API Manager will function as both MB server and client to manage its
>> artifacts such as API, application, subscription, throttling etc between
>> its nodes and Gateway. andes-client [1] will function as JMS client for
>> embedded MB.
>>
>> I'm getting the following exception [3] while starting API Manager. When
>> I check the OSGi console for available services with 'ls', I don't see any
>> services from andes-client, but andes-client bundle is active. Please find
>> the half committed PR [2].
>>
>> I learned that, on top of wrapping a library as OSGI bundle, we have to
>> expose them as SPI services too. So the issue here is, andes-client library
>> isn't exposing any SPI service to consume by carbon-jndi.
>>
>> Carbon team please confirm.
>>
>> [1]: https://github.com/wso2/andes/blob/v3.2.22/modules/orbi
>> t/andes-client/pom.xml
>> [2]: https://github.com/wso2/carbon-apimgt/pull/4421
>> [3]:
>> [2017-08-21 09:28:17,041] ERROR {org.wso2.carbon.apimgt.core.util.BrokerUtil}
>> - Could not create a JMS client connection from the class
>> javax.naming.NoInitialContextException: Cannot find the
>> InitialContextFactory org.wso2.andes.jndi.Properties
>> FileInitialContextFactory.
>> at org.wso2.carbon.jndi.internal.osgi.JNDIContextManagerImpl.la
>> mbda$getInitialContextInternal$28(JNDIContextManagerImpl.java:118)
>> at java.util.Optional.orElseThrow(Optional.java:290)
>> at org.wso2.carbon.jndi.internal.osgi.JNDIContextManagerImpl.ge
>> tInitialContextInternal(JNDIContextManagerImpl.java:118)
>> at org.wso2.carbon.jndi.internal.osgi.JNDIContextManagerImpl.ne
>> wInitialContext(JNDIContextManagerImpl.java:68)
>> at org.wso2.carbon.jndi.internal.osgi.factory.DefaultContextFac
>> tory.lambda$getInitialContext$21(DefaultContextFactory.java:68)
>> at org.wso2.carbon.jndi.internal.util.LambdaExceptionUtils.lamb
>> da$rethrowFunction$2(LambdaExceptionUtils.java:120)
>> at java.util.Optional.map(Optional.java:215)
>> at org.wso2.carbon.jndi.internal.osgi.factory.DefaultContextFac
>> tory.getInitialContext(DefaultContextFactory.java:68)
>> at javax.naming.spi.NamingManager.getInitialContext(NamingManag
>> er.java:684)
>> at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
>> at javax.naming.InitialContext.init(InitialContext.java:244)
>> at javax.naming.InitialContext.(InitialContext.java:216)
>> at org.wso2.carbon.apimgt.core.impl.BrokerImpl.(BrokerImpl.java:59)
>> at org.wso2.carbon.apimgt.core.internal.BundleActivator.start(
>> BundleActivator.java:70)
>> 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.eclipse.equinox.internal.ds.model.ServiceComponent.activ
>> ate(ServiceComponent.java:235)
>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a
>> ctivate(ServiceComponentProp.java:146)
>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
>> uild(ServiceComponentProp.java:345)
>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>> nt(InstanceProcess.java:620)
>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>> nts(InstanceProcess.java:197)
>> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolve
>> r.java:343)
>> at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SC
>> RManager.java:222)
>> at org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis
>> tener.serviceChanged(FilteredServiceListener.java:109)
>> at org.eclipse.osgi.internal.framework.BundleContextImpl.dispat
>> chEvent(BundleContextImpl.java:915)
>> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve
>> nt(EventManager.java:230)
>> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv
>&g

Re: [Dev] Getting exception while using andes-client lib as JMS client for API Manager 3.0.

2017-08-20 Thread Abimaran Kugathasan
+Thusitha, +Jayanga

On Mon, Aug 21, 2017 at 10:48 AM, Abimaran Kugathasan <abima...@wso2.com>
wrote:

> Hi,
>
> We are embedding Message Broker feature into API Manager 3.0 core, now API
> Manager will function as both MB server and client to manage its artifacts
> such as API, application, subscription, throttling etc between its nodes
> and Gateway. andes-client [1] will function as JMS client for embedded MB.
>
> I'm getting the following exception [3] while starting API Manager. When I
> check the OSGi console for available services with 'ls', I don't see any
> services from andes-client, but andes-client bundle is active. Please find
> the half committed PR [2].
>
> I learned that, on top of wrapping a library as OSGI bundle, we have to
> expose them as SPI services too. So the issue here is, andes-client library
> isn't exposing any SPI service to consume by carbon-jndi.
>
> Carbon team please confirm.
>
> [1]: https://github.com/wso2/andes/blob/v3.2.22/modules/
> orbit/andes-client/pom.xml
> [2]: https://github.com/wso2/carbon-apimgt/pull/4421
> [3]:
> [2017-08-21 09:28:17,041] ERROR {org.wso2.carbon.apimgt.core.util.BrokerUtil}
> - Could not create a JMS client connection from the class 
> javax.naming.NoInitialContextException:
> Cannot find the InitialContextFactory org.wso2.andes.jndi.
> PropertiesFileInitialContextFactory.
> at org.wso2.carbon.jndi.internal.osgi.JNDIContextManagerImpl.lambda$
> getInitialContextInternal$28(JNDIContextManagerImpl.java:118)
> at java.util.Optional.orElseThrow(Optional.java:290)
> at org.wso2.carbon.jndi.internal.osgi.JNDIContextManagerImpl.
> getInitialContextInternal(JNDIContextManagerImpl.java:118)
> at org.wso2.carbon.jndi.internal.osgi.JNDIContextManagerImpl.
> newInitialContext(JNDIContextManagerImpl.java:68)
> at org.wso2.carbon.jndi.internal.osgi.factory.
> DefaultContextFactory.lambda$getInitialContext$21(
> DefaultContextFactory.java:68)
> at org.wso2.carbon.jndi.internal.util.LambdaExceptionUtils.
> lambda$rethrowFunction$2(LambdaExceptionUtils.java:120)
> at java.util.Optional.map(Optional.java:215)
> at org.wso2.carbon.jndi.internal.osgi.factory.DefaultContextFactory.
> getInitialContext(DefaultContextFactory.java:68)
> at javax.naming.spi.NamingManager.getInitialContext(
> NamingManager.java:684)
> at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
> at javax.naming.InitialContext.init(InitialContext.java:244)
> at javax.naming.InitialContext.(InitialContext.java:216)
> at org.wso2.carbon.apimgt.core.impl.BrokerImpl.(BrokerImpl.java:59)
> at org.wso2.carbon.apimgt.core.internal.BundleActivator.
> start(BundleActivator.java:70)
> 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.eclipse.equinox.internal.ds.model.ServiceComponent.
> activate(ServiceComponent.java:235)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.
> activate(ServiceComponentProp.java:146)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.
> build(ServiceComponentProp.java:345)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(
> InstanceProcess.java:620)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(
> InstanceProcess.java:197)
> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(
> SCRManager.java:222)
> at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.
> serviceChanged(FilteredServiceListener.java:109)
> at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(
> BundleContextImpl.java:915)
> at org.eclipse.osgi.framework.eventmgr.EventManager.
> dispatchEvent(EventManager.java:230)
> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.
> dispatchEventSynchronous(ListenerQueue.java:148)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.
> publishServiceEventPrivileged(ServiceRegistry.java:862)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.
> publishServiceEvent(ServiceRegistry.java:801)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.
> register(ServiceRegistrationImpl.java:127)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.
> registerService(ServiceRegistry.java:225)
> at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(
> BundleContextImpl.java:464)
> at org.eclipse.equinox.internal.ds.InstanceProcess.registerService(
> InstanceProce

[Dev] Getting exception while using andes-client lib as JMS client for API Manager 3.0.

2017-08-20 Thread Abimaran Kugathasan
)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:482)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:999)
at
org.wso2.carbon.connector.framework.ConnectorManager.registerServerConnector(ConnectorManager.java:56)
at java.util.ArrayList.forEach(ArrayList.java:1249)
at
org.wso2.carbon.connector.framework.ConnectorManager.registerServerConnectorProvider(ConnectorManager.java:124)
at
org.wso2.carbon.connector.framework.server.internal.ServerConnectorSC.registerServerConnectorProvider(ServerConnectorSC.java:55)
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.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:444)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(ServiceComponentProp.java:218)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:343)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:915)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464)
at
org.eclipse.equinox.internal.ds.InstanceProcess.registerService(InstanceProcess.java:536)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:213)
at
org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
at
org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
at
org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
at
org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
at
org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)

[2017-08-21 09:28:17,121]  INFO
{org.wso2.andes.configuration.AndesConfigurationManager} - Main andes
configuration located at :
/home/abimaran/sources/wso2/git/abimaran/product-apim/product/target/wso2apim-3.0.0-SNAPSHOT/conf/broker.xml


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to create a websocket implementation of an end point

2017-08-02 Thread Abimaran Kugathasan
Hi Sagar,

WebSocket APIs are introduced in 2.1, it's in 'Design' tab as below.



​

On Wed, Aug 2, 2017 at 4:20 PM, Sagar Kapadia <ks197...@gmail.com> wrote:

> Hi,
> I cant see a way to create a web socket endpoint implementation .Please
> let me know how to do this
> Sagar
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Why does WSO2 API Manager change the endpoint ip and port addresses to 192.168.144.2:8280

2017-08-02 Thread Abimaran Kugathasan
Hi Sagar,

API Manager runs on 192.168.144.2 and this IP is shown in Store UI. If you
want to hit the backend directly from your client, then there isn't any
reason for using API Manager. I don't understand why you are expecting to
hit backend URL directly. API Manager function as a proxy to route the
request to the backend which runs on 192.168.11.65.

There can be many reasons not receiving a response, this might help you on
this [1]. Also, You can try using cURL.

[1]:
http://blog.lakmali.com/2014/11/troubleshooting-issues-with-swagger-in.html

On Wed, Aug 2, 2017 at 5:15 PM, Sagar Kapadia <ks197...@gmail.com> wrote:

> Hi Thuistha,
> Thanks for your quick response. I had followed the tutorial below. My
> problem is my pc has ip 192.168.11.68 and not 192.168.144.2.
> when I try to call the api from the api store page via it's swagger
> definition ,there is a call to my server but, i get no response from the
> server. I believe the reason is that the implementation url of the api
> points to an invalid ip (192.168.144.2), instead of the ip i specified in
> production and sandbox url.
> This is my confusion.
> Sagar
>
> On Aug 2, 2017 4:24 PM, "Thusitha Thilina Dayaratne" <thusit...@wso2.com>
> wrote:
>
>> Hi Sagar,
>>
>> 192.168.144.2 is the IP address of your APIM running instance and 8280 is
>> the port which exposes your API through the API manager. When you invoke
>> the http://192.168.144.2:8280/// it will be sent
>> to the production endpoint that you configured through the UI.
>>
>> You can refer to APIM Docs[1] for more details
>>
>> [1] - https://docs.wso2.com/display/AM210/Create+and+Publish+an+API
>>
>> Thanks
>>
>>
>>
>> On Wed, Aug 2, 2017 at 4:19 PM, Sagar Kapadia <ks197...@gmail.com> wrote:
>>
>>>
>>>
>>> On Wed, Aug 2, 2017 at 4:18 PM, Sagar Kapadia <ks197...@gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>> I tried to create an API in the API manager. Everything is ok, except
>>>> for the fact that the end point ip anddress and port in the implementation
>>>> page are ignored. I get the following ip address and port
>>>> 192.168.144.2:8280
>>>>
>>>> The screen shots show the issue
>>>> Sagar
>>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <+94%2071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Why does WSO2 API Manager change the endpoint ip and port addresses to 192.168.144.2:8280

2017-08-02 Thread Abimaran Kugathasan
Hi Sagar,

Production URL shown in publisher UI is your real backend production URL
and Production and Sandbox URL shown in Store is Gateway's (or API Manager)
URL for that API, not the real backend URL. And you are supposed to use
that to invoke the API.

On Wed, Aug 2, 2017 at 4:24 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Sagar,
>
> 192.168.144.2 is the IP address of your APIM running instance and 8280 is
> the port which exposes your API through the API manager. When you invoke
> the http://192.168.144.2:8280/// it will be sent
> to the production endpoint that you configured through the UI.
>
> You can refer to APIM Docs[1] for more details
>
> [1] - https://docs.wso2.com/display/AM210/Create+and+Publish+an+API
>
> Thanks
>
>
>
> On Wed, Aug 2, 2017 at 4:19 PM, Sagar Kapadia <ks197...@gmail.com> wrote:
>
>>
>>
>> On Wed, Aug 2, 2017 at 4:18 PM, Sagar Kapadia <ks197...@gmail.com> wrote:
>>
>>> Hi,
>>> I tried to create an API in the API manager. Everything is ok, except
>>> for the fact that the end point ip anddress and port in the implementation
>>> page are ignored. I get the following ip address and port
>>> 192.168.144.2:8280
>>>
>>> The screen shots show the issue
>>> Sagar
>>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809 <+94%2071%20275%206809>
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
> <http://wso2.com/signature>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5] MB Components still uses XML based configurations.

2017-07-30 Thread Abimaran Kugathasan
Hi Indika,

Do we have any plans to incorporate these changes and re-release the
components in near future? I think all the products including EI 7 suppose
to have deployment.yaml file for the configuration.

On Tue, Jul 25, 2017 at 4:49 PM, Indika Sampath <indi...@wso2.com> wrote:

> Hi Abimaran,
>
> We have implemented enum based config read approach for all the above
> configurations. Please find the implementation [1]. Every config has a
> default value and it gets overrides after reading from the XML file. I
> think we could figure out approach to read data from deployment.yaml and
> inject it.
>
> [1] https://github.com/wso2/andes/blob/4.x.x/modules/andes-core/
> broker/src/main/java/org/wso2/andes/configuration/enums/
> AndesConfiguration.java
>
> Cheers!
>
> On Tue, Jul 25, 2017 at 4:22 PM, Abimaran Kugathasan <abima...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> We planned to embed MB features [1] into API Manager 3.0 core to share
>> API Manager artifacts (APIs, Policies, Subscription, etc) between different
>> nodes/profiles.
>>
>> All the products/features which are written on C5 should have default
>> configuration values in source code and should be able to override this
>> value through YAML based configuration files [2]
>>
>> Recently released MB features based on C5 [1] are having old XML based
>> configuration files such as broker.xml, qpid-config.xml, q
>> pid-virtualhosts.xml.
>>
>> Can we please move these default values into source code, provide the
>> capability to override them through deployment.yaml file and release these
>> components?
>>
>>
>> [1]: https://github.com/wso2/carbon-business-messaging/tree/v4.0.2
>> [2]: [Architecture] Move away from XML to YAML config files
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>
>> <http://stackoverflow.com/users/515034>
>> <http://lk.linkedin.com/in/abimaran>
>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>> <https://twitter.com/abimaran>
>>
>>
>
>
> --
> Indika Sampath
> Associate Technical Lead
> WSO2 Inc.
> http://wso2.com
>
> Phone: +94 716 424 744 <+94%2071%20642%204744>
> Blog: http://indikasampath.blogspot.com/
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [C5] MB Components still uses XML based configurations.

2017-07-25 Thread Abimaran Kugathasan
Hi All,

We planned to embed MB features [1] into API Manager 3.0 core to share API
Manager artifacts (APIs, Policies, Subscription, etc) between different
nodes/profiles.

All the products/features which are written on C5 should have default
configuration values in source code and should be able to override this
value through YAML based configuration files [2]

Recently released MB features based on C5 [1] are having old XML based
configuration files such as
broker.xml, qpid-config.xml, qpid-virtualhosts.xml.

Can we please move these default values into source code, provide the
capability to override them through deployment.yaml file and release these
components?


[1]: https://github.com/wso2/carbon-business-messaging/tree/v4.0.2
[2]: [Architecture] Move away from XML to YAML config files


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Hostname verification error when call BPS endpoint

2017-07-14 Thread Abimaran Kugathasan
Hi Godwin,

Can you try using -Dhttpclient.hostnameVerifier=false if you are using APIM
2.1. The configuration in axis2.xml will suitable for PT.

On Fri, Jul 14, 2017 at 6:17 AM, Godwin Shrimal <god...@wso2.com> wrote:

> Hi All,
>
> I am getting below error when invoking BPS endpoing from APIM, I know its
> due to keystore and we need to create a keystore and put into the server
> with correct CN. My problem is there are other URLs such as DASRestApiURL,
> PolicyDeployer used https endpoints with IP address and there are no
> errors. What tis the reason for that and do we have any configuration to
> skip this ?
>
>
> javax.net.ssl.SSLException: *hostname in certificate didn't match:
> <192.168.10.10> != 
> *at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
> ory.verifyHostName(SSLProtocolSocketFactory.java:341)
> at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
> ory.verifyHostName(SSLProtocolSocketFactory.java:277)
> at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
> ory.verifyHostName(SSLProtocolSocketFactory.java:260)
> at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
> ory.createSocket(SSLProtocolSocketFactory.java:169)
> at org.apache.commons.httpclient.HttpConnection.open(HttpConnec
> tion.java:707)
>
>
> *Note : I tried with AllowAll in axis.xml and
> -Dorg.wso2.ignoreHostnameVerification=true in wso2server.sh and no one
> works*
>
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
> twitter: https://twitter.com/godwinamila
> <http://wso2.com/signature>
>



-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM]Source code of entitlement jar file

2017-07-12 Thread Abimaran Kugathasan
Hi Denuwanthi,

As I remember, we are using the sample provided by Nadeesha here [1], also
decompiling the JAR will give you more information from META-INF/MANIFEST.MF

[1]:
http://wso2.com/library/articles/2014/02/use-of-wso2-api-manager-to-validate-fine-grained-policy-decisions-using-xacml/

On Wed, Jul 12, 2017 at 1:10 PM, Denuwanthi De Silva <denuwan...@wso2.com>
wrote:

> Hi,
>
> When referring document[1] to enable RBAC using XACML in APIM, it mentions
> to add ' entitlement-1.0-SNAPSHOT JAR' file. In the doc the link for the
> JAR is provided.
> But where can I get the source repository of this jar?
>
> I checked in carbon-apimgt & product-apim. Couldn't find.
> Appreciate if some one can point me to the source of it?
>
>
> [1]https://docs.wso2.com/display/AM210/Enabling+Role-
> Based+Access+Control+Using+XACML
>
>
> Thanks
> --
> Denuwanthi De Silva
> Senior Software Engineer;
> WSO2 Inc.; http://wso2.com,
> Email: denuwan...@wso2.com
> Blog: https://denuwanthi.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SSO Configuration

2017-05-25 Thread Abimaran Kugathasan
Hi Javier,

Have you enabled signature verification in both IDP and SP? Also, Are you
using the default keystore in both servers?

On Fri, May 26, 2017 at 5:28 AM, Vazquez-Hidalgo, Javier <
javier.vazquez-hida...@tdsecurities.com> wrote:

> Hello,
>
>
>
> I’m trying to configure APIM store/publisher/carbon sites to use SSO by
> following the steps provided at
>
>
>
> https://docs.wso2.com/display/AM210/Configuring+API+Manager+for+SSO
>
> https://docs.wso2.com/display/AM210/Configuring+Identity+
> Server+as+IDP+for+SSO
>
>
>
> Identity Server is acting as the SSO IDP.
>
>
>
> The problem is that I’m getting signature verification failed on all
> sites. I see the redirection happening and in the carbon site I get the
> login screen but it fails to authenticate the user
>
>
>
> Logs when trying to login to “carbon” site:
>
> [2017-05-25 19:48:58,727] ERROR - SAML2SSOAuthenticator Authentication
> Request is rejected. Signature validation failed.
>
> [2017-05-25 19:48:58,730]  WARN - CarbonAuthenticationUtil Failed
> Administrator login attempt 'admin[-1234]' at [2017-05-25 19:48:58,730-0400]
>
> [2017-05-25 19:48:58,734] ERROR - SAML2SSOUIAuthenticator Authentication
> failed.
>
>
>
> Logs when trying to login to “publisher” site:
>
> [2017-05-25 19:49:43,724] ERROR - jaggery_acs:jag SAML response signature
> is verification failed.
>
>
>
>
>
>
>
> Any ideas?
>
>
>
>
>
> Thanks,
>
> Javier
>
>
>
>
>
> If you wish to unsubscribe from receiving commercial electronic messages
> from TD Bank Group, please click here <http://www.td.com/tdoptout> or go
> to the following web address: www.td.com/tdoptout
> Si vous souhaitez vous désabonner des messages électroniques de nature
> commerciale envoyés par Groupe Banque TD veuillez cliquer ici
> <http://www.td.com/tddesab> ou vous rendre à l'adresse www.td.com/tddesab
>
>
> NOTICE: Confidential message which may be privileged. Unauthorized
> use/disclosure prohibited. If received in error, please go to
> www.td.com/legal for instructions.
> AVIS : Message confidentiel dont le contenu peut être privilégié.
> Utilisation/divulgation interdites sans permission. Si reçu par erreur,
> prière d'aller au www.td.com/francais/avis_juridique pour des
> instructions.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Help me build WSO2-API Manage

2017-05-24 Thread Abimaran Kugathasan
You must be building v6.1.66 [1] and v2.1.0 [2] respectively.

[1]: https://github.com/wso2/carbon-apimgt/tree/v6.1.66
[2]: https://github.com/wso2/product-apim/tree/v2.1.0

On Wed, May 24, 2017 at 4:02 PM, Phổ Chu Quang <teppi.6...@gmail.com> wrote:

> Vesion i using
> carbon-apimgt-release-6.1.60-i840 and product-apim-2.1.0-rc5
>
> 2017-05-24 17:30 GMT+07:00 Abimaran Kugathasan <abima...@wso2.com>:
>
>>
>>
>> On Wed, May 24, 2017 at 3:58 PM, Phổ Chu Quang <teppi.6...@gmail.com>
>> wrote:
>>
>>> Hi  Abimaran Kugathasan
>>> i using cmd run command: mvn clean install -Dchekcstyle.skip
>>>
>>
>> Yes, which git branch/tag you have check out to build?
>>
>>>
>>>
>>>
>>> 2017-05-24 17:24 GMT+07:00 Abimaran Kugathasan <abima...@wso2.com>:
>>>
>>>> Hi Pho,
>>>>
>>>> Which are the branch/tag you used to build?
>>>>
>>>> On Wed, May 24, 2017 at 3:52 PM, Phổ Chu Quang <teppi.6...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Abimaran Kugathasan
>>>>> I downloaded source Carbon-Apimgt from:https://github.com/wso2/c
>>>>> arbon-apimgt
>>>>> and Product-apim from: https://github.com/wso2/product-apim.
>>>>> I changed source code Carbon-Apimgt and rebuild Carbon-Apimgt and 
>>>>> Product-apim
>>>>> using Maven: mvn clean install -Dchekcstyle.skip.
>>>>> But result after rebuild Product-Apim to: wso2am-2.1.0.zip did not
>>>>> change( i changed source code Carbon-Apimgt).
>>>>> Can you help me??
>>>>>
>>>>> Thank so much.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Thanks
>>>> Abimaran Kugathasan
>>>> Senior Software Engineer - API Technologies
>>>>
>>>> Email : abima...@wso2.com
>>>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>>>
>>>> <http://stackoverflow.com/users/515034>
>>>> <http://lk.linkedin.com/in/abimaran>
>>>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>>>> <https://twitter.com/abimaran>
>>>>
>>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>
>> <http://stackoverflow.com/users/515034>
>> <http://lk.linkedin.com/in/abimaran>
>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>> <https://twitter.com/abimaran>
>>
>>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Help me build WSO2-API Manage

2017-05-24 Thread Abimaran Kugathasan
On Wed, May 24, 2017 at 3:58 PM, Phổ Chu Quang <teppi.6...@gmail.com> wrote:

> Hi  Abimaran Kugathasan
> i using cmd run command: mvn clean install -Dchekcstyle.skip
>

Yes, which git branch/tag you have check out to build?

>
>
>
> 2017-05-24 17:24 GMT+07:00 Abimaran Kugathasan <abima...@wso2.com>:
>
>> Hi Pho,
>>
>> Which are the branch/tag you used to build?
>>
>> On Wed, May 24, 2017 at 3:52 PM, Phổ Chu Quang <teppi.6...@gmail.com>
>> wrote:
>>
>>> Hi Abimaran Kugathasan
>>> I downloaded source Carbon-Apimgt from:https://github.com/wso2/c
>>> arbon-apimgt
>>> and Product-apim from: https://github.com/wso2/product-apim.
>>> I changed source code Carbon-Apimgt and rebuild Carbon-Apimgt and 
>>> Product-apim
>>> using Maven: mvn clean install -Dchekcstyle.skip.
>>> But result after rebuild Product-Apim to: wso2am-2.1.0.zip did not
>>> change( i changed source code Carbon-Apimgt).
>>> Can you help me??
>>>
>>> Thank so much.
>>>
>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>
>> <http://stackoverflow.com/users/515034>
>> <http://lk.linkedin.com/in/abimaran>
>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>> <https://twitter.com/abimaran>
>>
>>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Help me build WSO2-API Manage

2017-05-24 Thread Abimaran Kugathasan
Hi Pho,

Which are the branch/tag you used to build?

On Wed, May 24, 2017 at 3:52 PM, Phổ Chu Quang <teppi.6...@gmail.com> wrote:

> Hi Abimaran Kugathasan
> I downloaded source Carbon-Apimgt from:https://github.com/wso2/
> carbon-apimgt
> and Product-apim from: https://github.com/wso2/product-apim.
> I changed source code Carbon-Apimgt and rebuild Carbon-Apimgt and Product-apim
> using Maven: mvn clean install -Dchekcstyle.skip.
> But result after rebuild Product-Apim to: wso2am-2.1.0.zip did not
> change( i changed source code Carbon-Apimgt).
> Can you help me??
>
> Thank so much.
>



-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] IS 5.2.0 DB2 migration scripts

2017-05-09 Thread Abimaran Kugathasan
I'm Ok to enhance the documentation, but, we don't really need to use / as
the terminator in migration scripts as they are supposed to run manually.

On Tue, May 9, 2017 at 12:22 PM, Rajith Roshan <raji...@wso2.com> wrote:

> Hi,
>
> Yeah I think we can agree with maduranga. AFAIK this only happens with
> db2. Because its default delimiter is ;. Other dbscripts get executed when
> we run them against the database. Its better to update the docs in order to
> provide guidance saying that delimiter we have used in our db scripts are
> "/"  so we can give options to specify delimiter when running db script as
> in [1]
>
> [1] - db2 -td/ -vf db2.sql
>
> On Tue, May 9, 2017 at 11:01 AM, Maduranga Siriwardena <madura...@wso2.com
> > wrote:
>
>> Hi Abimaran,
>>
>> Usually if we start the pack with -Dsetup option product database scripts
>> are run through [1] to create databases which specifically checks for "/"
>> to identify a single query for DB2. So product database scripts has "/" as
>> the statement terminator. Anyway this terminator will not be there in the
>> query when executing the query.
>>
>> We also have created a similar class to execute the database scripts in
>> migration and used the similar approach with "/". In my opinion if we are
>> going to change this, we need to do this everywhere in the product.
>>
>> [1] https://github.com/wso2/carbon-kernel/blob/v4.4.16/core/
>> org.wso2.carbon.utils/src/main/java/org/wso2/carbon/util
>> s/dbcreator/DatabaseCreator.java#L291
>>
>> Thanks,
>>
>> On Tue, May 9, 2017 at 10:12 AM, Abimaran Kugathasan <abima...@wso2.com>
>> wrote:
>>
>>> Hi Ishara,
>>>
>>> Any reason for having / as the statement terminator in DB2 script? The
>>> default DB2 statement terminator is ;
>>>
>>> API Manager had the same issue and we fixed it.
>>>
>>> [1] : https://www.ibm.com/support/knowledgecenter/SS62YD_2.2.1/c
>>> om.ibm.datatools.sqlxeditor.doc/topics/tchngstmtterm.html
>>> [2] : https://dba.stackexchange.com/questions/122652/what-is-the
>>> -formal-statement-terminator-with-db2-sql
>>>
>>>
>>> On Sat, May 6, 2017 at 11:16 AM, Ishara Karunarathna <isha...@wso2.com>
>>> wrote:
>>>
>>>> Thanks Rajith for finding out this.
>>>>
>>>> @Dinali Can you please update the scripts.
>>>>
>>>> -Ishara
>>>>
>>>> On Fri, May 5, 2017 at 11:52 PM, Rajith Roshan <raji...@wso2.com>
>>>> wrote:
>>>>
>>>>> The migration resources for db2 specified in step 11 of doc [1] is
>>>>> giving errors. It tries to insert boolean values to columns which have 
>>>>> type
>>>>> smallint. They should be replaced with 0s and 1s. Please find the modified
>>>>> script below [2]
>>>>>
>>>>> [1] - https://docs.wso2.com/display/IS520/Upgrading+from+a+Previ
>>>>> ous+Release
>>>>>
>>>>> [2] -
>>>>> INSERT INTO UM_CLAIM (
>>>>> UM_DIALECT_ID,
>>>>> UM_CLAIM_URI,
>>>>> UM_DISPLAY_TAG,
>>>>> UM_DESCRIPTION,
>>>>> UM_MAPPED_ATTRIBUTE,
>>>>> UM_TENANT_ID,
>>>>> UM_READ_ONLY,
>>>>>UM_SUPPORTED,
>>>>>UM_REQUIRED,
>>>>>UM_DISPLAY_ORDER,
>>>>>UM_CHECKED_ATTRIBUTE)
>>>>> VALUES ((SELECT UM_ID FROM UM_DIALECT WHERE UM_DIALECT_URI='
>>>>> http://wso2.org/claims' AND UM_TENANT_ID=-1234),
>>>>> 'http://wso2.org/claims/identity/lastLoginTime','Last Login
>>>>> Time','Last Login Time','carLicense',-1234,1,0,0,7,0)/
>>>>>
>>>>>
>>>>> INSERT INTO UM_CLAIM (
>>>>>UM_DIALECT_ID,
>>>>>UM_CLAIM_URI,
>>>>>UM_DISPLAY_TAG,
>>>>>UM_DESCRIPTION,
>>>>>UM_MAPPED_ATTRIBUTE,
>>>>>UM_TENANT_ID,
>>>>>UM_READ_ONLY)
>>>>>
>>>>> SELECT DIALECT.UM_ID,
>>>>>   'http://wso2.org/claims/identity/lastLoginTime',
>>>>>'Last Login Time',
>>>>>'Last Login Time',
>>>>>'carLicense',
>>>>>   DIALECT.UM_TENANT_ID,
>>

Re: [Dev] IS 5.2.0 DB2 migration scripts

2017-05-08 Thread Abimaran Kugathasan
Hi Ishara,

Any reason for having / as the statement terminator in DB2 script? The
default DB2 statement terminator is ;

API Manager had the same issue and we fixed it.

[1] :
https://www.ibm.com/support/knowledgecenter/SS62YD_2.2.1/com.ibm.datatools.sqlxeditor.doc/topics/tchngstmtterm.html
[2] :
https://dba.stackexchange.com/questions/122652/what-is-the-formal-statement-terminator-with-db2-sql


On Sat, May 6, 2017 at 11:16 AM, Ishara Karunarathna <isha...@wso2.com>
wrote:

> Thanks Rajith for finding out this.
>
> @Dinali Can you please update the scripts.
>
> -Ishara
>
> On Fri, May 5, 2017 at 11:52 PM, Rajith Roshan <raji...@wso2.com> wrote:
>
>> The migration resources for db2 specified in step 11 of doc [1] is giving
>> errors. It tries to insert boolean values to columns which have type
>> smallint. They should be replaced with 0s and 1s. Please find the modified
>> script below [2]
>>
>> [1] - https://docs.wso2.com/display/IS520/Upgrading+from+a+
>> Previous+Release
>>
>> [2] -
>> INSERT INTO UM_CLAIM (
>> UM_DIALECT_ID,
>> UM_CLAIM_URI,
>> UM_DISPLAY_TAG,
>> UM_DESCRIPTION,
>> UM_MAPPED_ATTRIBUTE,
>> UM_TENANT_ID,
>> UM_READ_ONLY,
>>UM_SUPPORTED,
>>UM_REQUIRED,
>>UM_DISPLAY_ORDER,
>>UM_CHECKED_ATTRIBUTE)
>> VALUES ((SELECT UM_ID FROM UM_DIALECT WHERE UM_DIALECT_URI='
>> http://wso2.org/claims' AND UM_TENANT_ID=-1234),
>> 'http://wso2.org/claims/identity/lastLoginTime','Last Login Time','Last
>> Login Time','carLicense',-1234,1,0,0,7,0)/
>>
>>
>> INSERT INTO UM_CLAIM (
>>UM_DIALECT_ID,
>>UM_CLAIM_URI,
>>UM_DISPLAY_TAG,
>>UM_DESCRIPTION,
>>UM_MAPPED_ATTRIBUTE,
>>UM_TENANT_ID,
>>UM_READ_ONLY)
>>
>> SELECT DIALECT.UM_ID,
>>   'http://wso2.org/claims/identity/lastLoginTime',
>>'Last Login Time',
>>'Last Login Time',
>>'carLicense',
>>   DIALECT.UM_TENANT_ID,
>>1
>>FROM UM_DIALECT as DIALECT JOIN UM_TENANT as TENANT ON
>> DIALECT.UM_TENANT_ID=TENANT.UM_ID WHERE DIALECT.UM_DIALECT_URI='http:/
>> /wso2.org/claims'/
>>
>>
>> INSERT INTO UM_CLAIM (
>> UM_DIALECT_ID,
>> UM_CLAIM_URI,
>> UM_DISPLAY_TAG,
>> UM_DESCRIPTION,
>> UM_MAPPED_ATTRIBUTE,
>> UM_TENANT_ID,
>> UM_READ_ONLY,
>>UM_SUPPORTED,
>>UM_REQUIRED,
>>UM_DISPLAY_ORDER,
>>UM_CHECKED_ATTRIBUTE)
>> VALUES ((SELECT UM_ID FROM UM_DIALECT WHERE UM_DIALECT_URI='
>> http://wso2.org/claims' AND UM_TENANT_ID=-1234),
>> 'http://wso2.org/claims/identity/lastPasswordUpdateTime','Last Password
>> Update','Last Password Update','businessCategory',-1234,1,0,0,7,0)/
>>
>>
>> INSERT INTO UM_CLAIM (
>>UM_DIALECT_ID,
>>UM_CLAIM_URI,
>>UM_DISPLAY_TAG,
>>UM_DESCRIPTION,
>>UM_MAPPED_ATTRIBUTE,
>>UM_TENANT_ID,
>>UM_READ_ONLY)
>>
>> SELECT DIALECT.UM_ID,
>> 'http://wso2.org/claims/identity/lastPasswordUpdateTime',
>> 'Last Password Update',
>> 'Last Password Update',
>> 'businessCategory',
>> DIALECT.UM_TENANT_ID,
>> 1
>> FROM UM_DIALECT as DIALECT JOIN UM_TENANT as TENANT ON
>> DIALECT.UM_TENANT_ID=TENANT.UM_ID WHERE DIALECT.UM_DIALECT_URI='http:/
>> /wso2.org/claims'/
>>
>>
>> CREATE INDEX REG_LOG_IND_BY_P1
>> ON REG_LOG(REG_LOGGED_TIME, REG_TENANT_ID)/
>>
>> CREATE INDEX REG_RESOURCE_IND_3
>> ON REG_RESOURCE(REG_UUID)/
>>
>> CREATE INDEX REG_RESOURCE_IND_4
>> ON REG_RESOURCE(REG_TENANT_ID, REG_UUID)/
>>
>> CREATE INDEX REG_RESOURCE_IND_5
>> ON REG_RESOURCE(REG_TENANT_ID, REG_MEDIA_TYPE)/
>> --
>> Rajith Roshan
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>>
>
>
>
> --
> Ishara Karunarathna
> Associate Technical Lead
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
> +94717996791 <+94%2071%20799%206791>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MSF4J Websocket security token transmit

2017-04-21 Thread Abimaran Kugathasan
Hi Godwin,

You can find the source code of API Manager websocket Inbound Handler here
[1] which reading and validating Authorization header.

[1] :
https://github.com/wso2/carbon-apimgt/blob/6.1.x/components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/handlers/WebsocketInboundHandler.java#L177

On Fri, Apr 21, 2017 at 11:32 AM, Irunika Weeraratne <irun...@wso2.com>
wrote:

> Hi Godwin,
> IMHO the best way to do it using HTTP header. Are you using netty
> directly? If that so there is a way to add necessary headers for the
> initial handshake and we can check them in the server side.
>
> Thanks,
> Irunika
>
> *Irunika Weeraratne*
> *Software Engineer | WSO2, Inc. <http://wso2.com/>*
> *Email : irun...@wso2.com <irun...@wso2.com>*
> *LinkedIn : https://lk.linkedin.com/in/irunika
> <https://lk.linkedin.com/in/irunika>*
> *Mobile : +94712403314 <+94%2071%20240%203314>*
> *Lean . Enterprise . Middleware*
>
>
> On Fri, Apr 21, 2017 at 11:27 AM, Arshardh Ifthikar <arsha...@wso2.com>
> wrote:
>
>> You can find it here: https://docs.wso2.com/display/
>> AM210/Create+a+WebSocket+API
>>
>> Thanks
>>
>> On Fri, Apr 21, 2017 at 11:24 AM, Godwin Shrimal <god...@wso2.com> wrote:
>>
>>> Can you please share the relevant API Manager source ?
>>>
>>>
>>> Thanks
>>> Godwin
>>>
>>> On Fri, Apr 21, 2017 at 11:22 AM, Arshardh Ifthikar <arsha...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> IMHO the best approach would be to send it via a header in the initial
>>>> HTTP request used to establish the connection. This is the method we follow
>>>> to send the access token for websocket APIs in the API Manager.
>>>>
>>>> Thanks
>>>> Arshardh
>>>>
>>>> On Fri, Apr 21, 2017 at 11:11 AM, Godwin Shrimal <god...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> What is the best way to transmit a security token in web socket while
>>>>> establishing a connection ? Currently we are passing through path 
>>>>> parameter
>>>>> such as wss://localhost:8080/server/
>>>>>
>>>>> Is it secure to sent it via path parameter ? If not what is the
>>>>> correct approach ?
>>>>>
>>>>>
>>>>> Thanks
>>>>> Godwin
>>>>>
>>>>> --
>>>>> *Godwin Amila Shrimal*
>>>>> WSO2 Inc.; http://wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>> mobile: *+94772264165*
>>>>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>>>>> twitter: https://twitter.com/godwinamila
>>>>> <http://wso2.com/signature>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Arshardh Ifthikar*
>>>> Trainee Software Engineer
>>>> WSO2, Inc.
>>>> Mobile: +94719806525 <+94%2071%20980%206525>
>>>>
>>>
>>>
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>>> twitter: https://twitter.com/godwinamila
>>> <http://wso2.com/signature>
>>>
>>
>>
>>
>> --
>> *Arshardh Ifthikar*
>> Trainee Software Engineer
>> WSO2, Inc.
>> Mobile: +94719806525 <+94%2071%20980%206525>
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM 2.1.0] Tenant Websocket API Invocation Issue

2017-04-06 Thread Abimaran Kugathasan
On Thu, Apr 6, 2017 at 11:27 AM, Arshardh Ifthikar <arsha...@wso2.com>
wrote:

> Hi,
>
> The instance variables defined should not be an issue because a new
> instance of the handler is created for each Websocket connection [1]. But
> the tenantDomain variable should not be static.
>
> IMHO the issue should be that the uri parameter of the req object is set
> twice in line 109 and 124 of [2], hence the first change is overwritten.
>

Yes, issue was with URI, We have to convert tenant URI /t/
api.com/echowebsocket/1.0.0 to -t/api.com/echowebsocket/1.0.0 to mimic the
carbon-mediation as the request came from super tenant API.

But, Having tenantDomain as static variable will be a problem, if multiple
APIs from different tenants are invoked. I will fix it too.


>
>
> [1] https://github.com/wso2/carbon-mediation/blob/master/
> components/inbound-endpoints/org.wso2.carbon.inbound.
> endpoint/src/main/java/org/wso2/carbon/inbound/endpoint/
> protocol/websocket/InboundWebsocketChannelInitializer.java#L100
>
> [2] https://github.com/wso2/carbon-apimgt/blob/v6.1.66/compo
> nents/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/
> org/wso2/carbon/apimgt/gateway/handlers/WebsocketInboundHandler.java
> <https://github.com/wso2/carbon-apimgt/blob/v6.1.66/components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/handlers/WebsocketInboundHandler.java#L59>
>
> Thanks,
> Arshardh
>
> On Wed, Apr 5, 2017 at 2:11 PM, Abimaran Kugathasan <abima...@wso2.com>
> wrote:
>
>> Hi Isuru,
>>
>> Currently, WebSocket isn't working for any tenants.
>>
>> Seems, WebSocket uri, tenantDomain, etc are defined as static variables.
>> I guess this will be a cause for this problem.
>>
>> https://github.com/wso2/carbon-apimgt/blob/v6.1.66/component
>> s/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/
>> org/wso2/carbon/apimgt/gateway/handlers/WebsocketInboundHandler.java#L59
>>
>> On Wed, Mar 29, 2017 at 6:59 PM, Isuru Haththotuwa <isu...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> This is a standalone APIM 2.1.0 setup.
>>>
>>> I have an API published by a tenant (a.com), and subscribed by another
>>> tenant (b.com). I'm using the sample netty based ws client from the
>>> docs [1].
>>>
>>> While invoking this API, error [2] can be sen in the APIM. Going through
>>> the code, noted that there is a check for 
>>> 'tenantDomain.equals(req.getUri())'
>>> at [3]. Down the line this causes the endpoint to be null for this
>>> particular tenant domain (a.com). This works for super tenant since the
>>> method getTenantDomainFromUrl actually returns the same url for super
>>> tenants.
>>>
>>> Any explanation for this logic? What am I doing wrong here?
>>>
>>> [1]. https://docs.wso2.com/display/AM210/Create+a+WebSocket+API
>>> [2]. ERROR - InboundWebsocketSourceHandler Endpoint not found for port
>>> : 9099 tenant domain : a.com
>>> [3]. https://github.com/wso2/carbon-mediation/blob/release-4.6.10
>>> /components/inbound-endpoints/org.wso2.carbon.inbound.endpoi
>>> nt/src/main/java/org/wso2/carbon/inbound/endpoint/protoc
>>> ol/websocket/InboundWebsocketSourceHandler.java#L160
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048 <+94%2071%20635%208048>* <http://wso2.com/>*
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>
>> <http://stackoverflow.com/users/515034>
>> <http://lk.linkedin.com/in/abimaran>
>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>> <https://twitter.com/abimaran>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Arshardh Ifthikar*
> Trainee Software Engineer
> WSO2, Inc.
> Mobile: +94719806525 <+94%2071%20980%206525>
>



-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM 2.1.0] Tenant Websocket API Invocation Issue

2017-04-05 Thread Abimaran Kugathasan
Hi Isuru,

Currently, WebSocket isn't working for any tenants.

Seems, WebSocket uri, tenantDomain, etc are defined as static variables. I
guess this will be a cause for this problem.

https://github.com/wso2/carbon-apimgt/blob/v6.1.66/components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/handlers/WebsocketInboundHandler.java#L59

On Wed, Mar 29, 2017 at 6:59 PM, Isuru Haththotuwa <isu...@wso2.com> wrote:

> Hi,
>
> This is a standalone APIM 2.1.0 setup.
>
> I have an API published by a tenant (a.com), and subscribed by another
> tenant (b.com). I'm using the sample netty based ws client from the docs
> [1].
>
> While invoking this API, error [2] can be sen in the APIM. Going through
> the code, noted that there is a check for 'tenantDomain.equals(req.getUri())'
> at [3]. Down the line this causes the endpoint to be null for this
> particular tenant domain (a.com). This works for super tenant since the
> method getTenantDomainFromUrl actually returns the same url for super
> tenants.
>
> Any explanation for this logic? What am I doing wrong here?
>
> [1]. https://docs.wso2.com/display/AM210/Create+a+WebSocket+API
> [2]. ERROR - InboundWebsocketSourceHandler Endpoint not found for port :
> 9099 tenant domain : a.com
> [3]. https://github.com/wso2/carbon-mediation/blob/release-
> 4.6.10/components/inbound-endpoints/org.wso2.carbon.
> inbound.endpoint/src/main/java/org/wso2/carbon/inbound/
> endpoint/protocol/websocket/InboundWebsocketSourceHandler.java#L160
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048 <+94%2071%20635%208048>* <http://wso2.com/>*
>
>
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MSF4J] Is it possible to startup microservices parallelly?

2017-04-04 Thread Abimaran Kugathasan
Hi Devs,

For APIM 3.0, due to swagger to MSF4J generator generating microservice for
each path defined in swagger yaml, we are having nearly 15 micro services
currently and this will grow in future.

We are in the process of regrouping some microservice to one [1]. We wanted
to know, Can we boot microservice parallelly instead of sequentially?

[1]: [Architecture] [APIM] [MSF4J] Reason for creating separate micro
service for each path defined swagger

-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MSF4J] Interceptor#preCall method stopped serving HTTP GET randomly.

2017-03-31 Thread Abimaran Kugathasan
Hi All,

RESTAPISecurityInterceptor is used to bypass the authentication for swagger
json via /api/am/admin/v1/policies/swagger.json. There should be a
microservice registered in /api/am/admin/v1/policies, but there weren't. So
this issue occurred.

Any MSF4J interception will be invoked if there are matching path
registered in the MSF4J registry.

On Wed, Mar 29, 2017 at 12:09 PM, Abimaran Kugathasan <abima...@wso2.com>
wrote:

> Hi Thusitha,
>
>
> On Wed, Mar 29, 2017 at 12:04 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Abimaran,
>>
>> In API Manager 3.0, We have RESTAPISecurityInterceptor which implements
>>> org.wso2.msf4j.Interceptor.
>>> When I send HTTP Get request, I'm getting 405, for HTTP POST and PUT it
>>> works correctly.
>>> I debugged MSF4JMessageProcessor, there is a method named
>>> 'receive(CarbonMessage carbonMessage, CarbonCallback carbonCallback)' which
>>> haven't hit when I send GET.
>>
>> This is the entry point for MSF4J. If that doesn't get hit, it implies
>> due to some reason the http message doesn't reach to MSF4J side through the
>> transport. But that is strange. COuold you please verify that?
>>
>
> I'm getting 405 for GET, who is responding with 405? How can I verify? I
> thought MSF4J uses carbon-transport as underlying framework for HTTP
> transport.
>
>
>
>>
>> Thanks
>> Thusitha
>>
>> On Wed, Mar 29, 2017 at 12:01 PM, Abimaran Kugathasan <abima...@wso2.com>
>> wrote:
>>
>>> Hi Dev,
>>>
>>> In API Manager 3.0, We have RESTAPISecurityInterceptor which implements
>>> org.wso2.msf4j.Interceptor.
>>>
>>> When I send HTTP Get request, I'm getting 405, for HTTP POST and PUT it
>>> works correctly.
>>>
>>> I debugged MSF4JMessageProcessor, there is a method named
>>> 'receive(CarbonMessage carbonMessage, CarbonCallback carbonCallback)' which
>>> haven't hit when I send GET.
>>>
>>> Which component calls this method? Also is there any configuration to
>>> decide which HTTP verb should be served?
>>>
>>> Appreciate your responses.
>>>
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>> Senior Software Engineer - API Technologies
>>>
>>> Email : abima...@wso2.com
>>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>>
>>> <http://stackoverflow.com/users/515034>
>>> <http://lk.linkedin.com/in/abimaran>
>>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>>> <https://twitter.com/abimaran>
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <+94%2071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820 <+94%2077%20392%202820>
>
> <http://stackoverflow.com/users/515034>
> <http://lk.linkedin.com/in/abimaran>
> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
> <https://twitter.com/abimaran>
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MSF4J] Interceptor#preCall method stopped serving HTTP GET randomly.

2017-03-29 Thread Abimaran Kugathasan
Hi Thusitha,


On Wed, Mar 29, 2017 at 12:04 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Abimaran,
>
> In API Manager 3.0, We have RESTAPISecurityInterceptor which implements
>> org.wso2.msf4j.Interceptor.
>> When I send HTTP Get request, I'm getting 405, for HTTP POST and PUT it
>> works correctly.
>> I debugged MSF4JMessageProcessor, there is a method named
>> 'receive(CarbonMessage carbonMessage, CarbonCallback carbonCallback)' which
>> haven't hit when I send GET.
>
> This is the entry point for MSF4J. If that doesn't get hit, it implies due
> to some reason the http message doesn't reach to MSF4J side through the
> transport. But that is strange. COuold you please verify that?
>

I'm getting 405 for GET, who is responding with 405? How can I verify? I
thought MSF4J uses carbon-transport as underlying framework for HTTP
transport.



>
> Thanks
> Thusitha
>
> On Wed, Mar 29, 2017 at 12:01 PM, Abimaran Kugathasan <abima...@wso2.com>
> wrote:
>
>> Hi Dev,
>>
>> In API Manager 3.0, We have RESTAPISecurityInterceptor which implements
>> org.wso2.msf4j.Interceptor.
>>
>> When I send HTTP Get request, I'm getting 405, for HTTP POST and PUT it
>> works correctly.
>>
>> I debugged MSF4JMessageProcessor, there is a method named
>> 'receive(CarbonMessage carbonMessage, CarbonCallback carbonCallback)' which
>> haven't hit when I send GET.
>>
>> Which component calls this method? Also is there any configuration to
>> decide which HTTP verb should be served?
>>
>> Appreciate your responses.
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>
>> <http://stackoverflow.com/users/515034>
>> <http://lk.linkedin.com/in/abimaran>
>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>> <https://twitter.com/abimaran>
>>
>>
>
>
> --
> Thusitha Dayaratne
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809 <+94%2071%20275%206809>
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
> <http://wso2.com/signature>
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MSF4J] Interceptor#preCall method stopped serving HTTP GET randomly.

2017-03-29 Thread Abimaran Kugathasan
Hi Dev,

In API Manager 3.0, We have RESTAPISecurityInterceptor which implements
org.wso2.msf4j.Interceptor.

When I send HTTP Get request, I'm getting 405, for HTTP POST and PUT it
works correctly.

I debugged MSF4JMessageProcessor, there is a method named
'receive(CarbonMessage carbonMessage, CarbonCallback carbonCallback)' which
haven't hit when I send GET.

Which component calls this method? Also is there any configuration to
decide which HTTP verb should be served?

Appreciate your responses.


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Traffic Manager HA deployment on DC/OS

2017-02-26 Thread Abimaran Kugathasan
Hi Jose,

I'm sorry, we need a separate database for each Traffic Manager node. What
you understood if correct. Sorry for the confusion.

On Mon, Feb 27, 2017 at 9:57 AM, Abimaran Kugathasan <abima...@wso2.com>
wrote:

> Hi Jose,
>
> On Thu, Feb 23, 2017 at 10:45 PM, JOSE MARIA ALVAREZ FERNANDEZ <
> josemaria.alvarezfernan...@elcorteingles.es> wrote:
>
>> Hi all,
>>
>> As you may know, we are implementing WSO2 in El Corte Ingles, and we are
>> trying to fit Traffic Manager in our architecture, based on DC/OS and
>> containers. We would like to know which approach you think it may be better
>> for the Traffic Manager component. As we are in a PaaS system, we would
>> like to be able to scale this system out without problems.
>>
>> a) It is our understanding that we have to create a different database
>> schema for every TM instance that we run. We would like to know if it is
>> possible to run this without having to create a new schema for every
>> component (that is, share the same schema). If we create a new schema, that
>> would force us to differentiate the component at DC/OS level, giving them
>> different configurations for different Traffic Manager instances.
>>
>
> I guess, by scheme you mean database, if so, we don't need seperate
> database for each Traffic manager nodes. You need to have one database
> among your Traffic Manager nodes.
>
> You can refer Traffic manager deployment patterns here [1] and [2]
>
>
>>
>> b) If that is not possible, we would like to know if it is possible to
>> run TM with H2 in memory. As there is nothing that should be persisted in
>> the TM schema, we thought that could be possible.
>>
>
> We don't encourage H2 database in production.
>
>>
>> If none of the options are viable, what deployment schema would be the
>> best for this component, taking into account that we would like to be
>> active/active (being able to scale out)?
>>
>
> Additionally you can refer API Manager clustering guide here [3]. And,
> common deployement patterns here [4]
>
>
> [1] : http://wso2.com/library/articles/2016/10/article-
> scalable-traffic-manager-deployment-patterns-for-wso2-api-manager-part-1/
> [2] : http://wso2.com/library/articles/2016/10/article-
> scalable-traffic-manager-deployment-patterns-for-wso2-api-manager-part-2/
> [3] : https://docs.wso2.com/display/CLUSTER44x/Clustering+
> API+Manager+2.0.0
> [4] : https://docs.wso2.com/display/CLUSTER44x/API+
> Manager+Deployment+Patterns
>
>
>> Thank you very much for your help and comments,
>>
>> Jose Maria.
>>
>>
>> www.elcorteingles.es
>>
>> 
>> ---
>>
>> Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede
>> contener información confidencial, siendo para uso exclusivo del
>> destinatario, quedando prohibida su divulgación copia o  distribución a
>> terceros sin la autorización expresa del remitente. Si Vd. ha recibido
>> este mensaje erróneamente, se ruega lo  notifique al remitente y
>> proceda a su borrado.
>> Gracias por su colaboración.
>>
>> This message (including any attachments) may contain confidential
>> information. It is intended for use by the recipient only. Any
>> dissemination, copying or distribution to third parties without the
>> express consent of the sender is strictly prohibited. If you have
>> received this message in error, please delete it immediately and
>> notify the sender.
>> Thank you for your collaboration.
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820 <+94%2077%20392%202820>
>
> <http://stackoverflow.com/users/515034>
> <http://lk.linkedin.com/in/abimaran>
> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
> <https://twitter.com/abimaran>
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Traffic Manager HA deployment on DC/OS

2017-02-26 Thread Abimaran Kugathasan
Hi Jose,

On Thu, Feb 23, 2017 at 10:45 PM, JOSE MARIA ALVAREZ FERNANDEZ <
josemaria.alvarezfernan...@elcorteingles.es> wrote:

> Hi all,
>
> As you may know, we are implementing WSO2 in El Corte Ingles, and we are
> trying to fit Traffic Manager in our architecture, based on DC/OS and
> containers. We would like to know which approach you think it may be better
> for the Traffic Manager component. As we are in a PaaS system, we would
> like to be able to scale this system out without problems.
>
> a) It is our understanding that we have to create a different database
> schema for every TM instance that we run. We would like to know if it is
> possible to run this without having to create a new schema for every
> component (that is, share the same schema). If we create a new schema, that
> would force us to differentiate the component at DC/OS level, giving them
> different configurations for different Traffic Manager instances.
>

I guess, by scheme you mean database, if so, we don't need seperate
database for each Traffic manager nodes. You need to have one database
among your Traffic Manager nodes.

You can refer Traffic manager deployment patterns here [1] and [2]


>
> b) If that is not possible, we would like to know if it is possible to run
> TM with H2 in memory. As there is nothing that should be persisted in the
> TM schema, we thought that could be possible.
>

We don't encourage H2 database in production.

>
> If none of the options are viable, what deployment schema would be the
> best for this component, taking into account that we would like to be
> active/active (being able to scale out)?
>

Additionally you can refer API Manager clustering guide here [3]. And,
common deployement patterns here [4]


[1] :
http://wso2.com/library/articles/2016/10/article-scalable-traffic-manager-deployment-patterns-for-wso2-api-manager-part-1/
[2] :
http://wso2.com/library/articles/2016/10/article-scalable-traffic-manager-deployment-patterns-for-wso2-api-manager-part-2/

[3] : https://docs.wso2.com/display/CLUSTER44x/Clustering+API+Manager+2.0.0
[4] :
https://docs.wso2.com/display/CLUSTER44x/API+Manager+Deployment+Patterns


> Thank you very much for your help and comments,
>
> Jose Maria.
>
>
> www.elcorteingles.es
>
> 
> ---
>
> Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede
> contener información confidencial, siendo para uso exclusivo del
> destinatario, quedando prohibida su divulgación copia o  distribución a
> terceros sin la autorización expresa del remitente. Si Vd. ha recibido
> este mensaje erróneamente, se ruega lo  notifique al remitente y
> proceda a su borrado.
> Gracias por su colaboración.
>
> This message (including any attachments) may contain confidential
> information. It is intended for use by the recipient only. Any
> dissemination, copying or distribution to third parties without the
> express consent of the sender is strictly prohibited. If you have
> received this message in error, please delete it immediately and
> notify the sender.
> Thank you for your collaboration.
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] How to get a query parameter in a REst request?

2017-02-16 Thread Abimaran Kugathasan
Hi Ishara,

Have you tried using get-property('query.param.clientId')?

You need to define Endpoint like

https://localhost:9444//wb/1/countries/us?clientId={query.param.clientId}

On Thu, Feb 16, 2017 at 5:19 PM, Ishara Cooray <isha...@wso2.com> wrote:

> In APIM 2.1.0 i am trying to read a request query parameter .
>
> i have this request "GET /wb/1/countries/us?clientId=isharac
>
> in an In sequence i read query parameter as below.
> 
>
> But when i log it 'cid' is null
> am i doing anything wrong here?
> how can i read the query param in a seq?
>
> This is the sequence i used.
>
> 
> http://ws.apache.org/ns/synapse; name="admin--WB:v1--In">
>
>   
>  
>
> 
>
>
> I also tried, get-property('$uri:clientId') and get-property('$url') and
> they are also null.
>
> When i debug, i couldn't find these properties in message context.
>
> Alternatively,
> following property is there in the message context. So what is the best
> way to get clientId from this property? If so is it a good approach?
>
> REST_FULL_REQUEST_PATH=/ta/1/menu?clientId=isharaccc
>
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512 <+94%2077%20262%209512>
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Identity Server 5.3.0 as a Key Manager with API Manager 2.1.0

2017-02-14 Thread Abimaran Kugathasan
On Wed, Feb 15, 2017 at 1:50 AM, Gottfried Szing <gottfr...@szing.eu> wrote:

> Hi Chamalee,
>
> Now it is possible to use IS as KM with API Manager 2.1.0. The P2 repo [1]
>> is updated with the Key Manager
>> features and by installing Key Manager version 6.1.66 in WSO2 IS 5.3.0
>> you will be able to use IS as Key
>> Manager for API Manager 2.1.0. The configuration steps are almost same as
>> in the documentation [2].
>>
>> We are in the process of updating the documentation for Configuring WSO2
>> IS 5.3.0 as Key Manager for WSO2
>> API Manager 2.1.0 and the new documentation will be available soon.
>>
>> We will update this thread when the documentation is available.
>>
>
> Thanks for your response and I have already tried the version 6.1.66 from
> the repository. In the UI the installation works without any message, but
> in the logs an error shows up immediately after installing the feature. So,
> this error is logged before doing the restart.
>
> [2017-02-14 21:04:20,564]  INFO {org.wso2.carbon.core.services
> .util.CarbonAuthenticationUtil} -
> 'admin@carbon.super [-1234]' logged in at [2017-02-14 21:04:20,564+0100]
> java.io.FileNotFoundException:
> /build/release-builds/pulasthim/product-is/target/checkout/
> modules/p2-profile-gen/target/wso2carbon-core-4.4.11/
> repository/components/artifacts.xml
> (No such file or directory)
> at java.io.FileOutputStream.open0(Native Method)
> at java.io.FileOutputStream.open(FileOutputStream.java:270)
> at java.io.FileOutputStream.(FileOutputStream.java:213)
> at java.io.FileOutputStream.(FileOutputStream.java:162)
>
>
> And during restart of the server itself, three different error messages
> shows up.
>
> [2017-02-14 21:15:40,358] ERROR {org.wso2.carbon.apimgt.impl.utils.APIUtil}
> -  Custom sequence template location unavailable for custom sequence type
> in : repository/resources/customsequences/in
> [2017-02-14 21:15:40,358] ERROR {org.wso2.carbon.apimgt.impl.utils.APIUtil}
> -  Custom sequence template location unavailable for custom sequence type
> out : repository/resources/customsequences/out
> [2017-02-14 21:15:40,358] ERROR {org.wso2.carbon.apimgt.impl.utils.APIUtil}
> -  Custom sequence template location unavailable for custom sequence type
> fault : repository/resources/customsequences/fault
>
> None of this happened with the IS 5.2 + AM 2.0, so I am not sure if this
> can be ignored or if this is a serious issue.
>

These were there in IS 5.2 + AM 2.0 (if you have installed the feature
rather than using Pre-Packaged IS) too and can be ignored.


>
> Br & Thanks,
>   Gottfried
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 MSF4J 2.1.1 RC1

2017-02-13 Thread Abimaran Kugathasan
Tested with API Manager 3.0-SNAPSHOT, haven't encountered any issues.

[+] Stable - go ahead and release

On Mon, Feb 13, 2017 at 12:04 PM, Fazlan Nazeem <fazl...@wso2.com> wrote:

> Tested with API Manager.
>
> We did not encounter [1]
>
> [+] Stable - go ahead and release
>
> [1] - https://github.com/wso2/msf4j/issues/329
>
> On Mon, Feb 13, 2017 at 11:50 AM, Tharindu Dharmarathna <
> tharin...@wso2.com> wrote:
>
>> Tested with API Manager.
>>
>> We did not encounter [1]
>>
>> [+] Stable - go ahead and release
>>
>> [1] - https://github.com/wso2/msf4j/issues/329
>>
>> On Thu, Feb 9, 2017 at 5:55 PM, Thilini Shanika <thili...@wso2.com>
>> wrote:
>>
>>> Tested with API Manager.
>>>
>>> We did not encounter [1]
>>>
>>> [+] Stable - go ahead and release
>>>
>>> [1] https://github.com/wso2/msf4j/issues/337
>>>
>>>
>>> On Wed, Feb 8, 2017 at 8:55 PM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> This is the 1st Release Candidate of WSO2 MSF4J(Microservices
>>>> Framework for Java) 2.1.1.
>>>>
>>>> Please download, test the framework and vote. The vote will be open
>>>> for 72 hours or as needed.
>>>> Refer to GitHub readmes for guides.
>>>>
>>>> *Source and binary distribution files:*
>>>> https://github.com/wso2/msf4j/releases/tag/v2.1.1-rc1
>>>>
>>>> *Maven staging repository:*
>>>> https://maven.wso2.org/nexus/content/repositories/orgwso2msf4j-1012
>>>>
>>>> *The tag to be voted upon:*
>>>> https://github.com/wso2/msf4j/tree/v2.1.1-rc1
>>>>
>>>>
>>>>
>>>> [ ] Broken - do not release (explain why)
>>>> [ ] Stable - go ahead and release
>>>>
>>>> Thank you,
>>>> Platform Team
>>>> --
>>>> Thusitha Dayaratne
>>>> Software Engineer
>>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>>
>>>> Mobile  +94712756809 <+94%2071%20275%206809>
>>>> Blog  alokayasoya.blogspot.com
>>>> Abouthttp://about.me/thusithathilina
>>>> <http://wso2.com/signature>
>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Thilini Shanika
>>> Senior Software Engineer
>>> WSO2, Inc.; http://wso2.com
>>> 20, Palmgrove Avenue, Colombo 3
>>>
>>> E-mail: tgtshan...@gmail.com
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Tharindu Dharmarathna*Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94779109091 <+94%2077%20910%209091>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
>
> Fazlan Nazeem
>
> *Software Engineer*
>
> *WSO2 Inc*
> Mobile : +94772338839
> <%2B94%20%280%29%20773%20451194>
> fazl...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release WSO2 API Manager 2.1.0 RC4

2017-01-31 Thread Abimaran Kugathasan
  Analytics : https://wso2.org/jira/issues/?filter=13624
>>>>>>>> Tooling : https://wso2.org/jira/browse/DEVTOOLAPI-1
>>>>>>>>
>>>>>>>>
>>>>>>>> Please vote as follows.
>>>>>>>> [+] Stable - go ahead and release
>>>>>>>> [-] Broken - do not release (explain why)
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> - WSO2 API Manager Team -
>>>>>>>>
>>>>>>>> --
>>>>>>>> Malintha Amarasinghe
>>>>>>>> Software Engineer
>>>>>>>> *WSO2, Inc. - lean | enterprise | middleware*
>>>>>>>> http://wso2.com/
>>>>>>>>
>>>>>>>> Mobile : +94 712383306 <+94%2071%20238%203306>
>>>>>>>>
>>>>>>>> ___
>>>>>>>> Architecture mailing list
>>>>>>>> architect...@wso2.org
>>>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Thanks and Regards,*
>>>>>>> Anuruddha Lanka Liyanarachchi
>>>>>>> Software Engineer - WSO2
>>>>>>> Mobile : +94 (0) 712762611
>>>>>>> Tel  : +94 112 145 345
>>>>>>> a <thili...@wso2.com>nurudd...@wso2.com
>>>>>>>
>>>>>>> _______
>>>>>>> Architecture mailing list
>>>>>>> architect...@wso2.org
>>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Rajith Roshan
>>>>>> Software Engineer, WSO2 Inc.
>>>>>> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>>>>>>
>>>>>> ___
>>>>>> Architecture mailing list
>>>>>> architect...@wso2.org
>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Regards,
>>>>> Chamila Adhikarinayake
>>>>> Senior Software Engineer
>>>>> WSO2, Inc.
>>>>> Mobile - +94712346437 <+94%2071%20234%206437>
>>>>> Email  - chami...@wso2.com
>>>>> Blog  -  http://helpfromadhi.blogspot.com/
>>>>>
>>>>> ___
>>>>> Architecture mailing list
>>>>> architect...@wso2.org
>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Samitha Chathuranga
>>>> Software Engineer, WSO2 Inc.
>>>> lean.enterprise.middleware
>>>> Mobile: +94715123761
>>>>
>>>> [image: http://wso2.com/signature] <http://wso2.com/signature>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Roshan Wijesena.
>>> Senior Software Engineer-WSO2 Inc.
>>> Mobile: *+94719154640 <+94%2071%20915%204640>*
>>> Email: ros...@wso2.com
>>> *WSO2, Inc. :** wso2.com <http://wso2.com/>*
>>> lean.enterprise.middleware.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Malintha Amarasinghe
>> Software Engineer
>> *WSO2, Inc. - lean | enterprise | middleware*
>> http://wso2.com/
>>
>> Mobile : +94 712383306 <+94%2071%20238%203306>
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Thanks and Regards
> *,Shani Ranasinghe*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555 <+94%2077%20227%203555>
> Blog: http://waysandmeans.blogspot.com/
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release WSO2 API Manager 2.1.0 RC2

2017-01-12 Thread Abimaran Kugathasan
Hi Rajkumar,

You have mentioned that,

because the very first request to API Store will land on jaggery_acs.jag
> and since SSO properties are not there in SSO relaying party object, you
> will get NPE like below.



What do you mean by very first request? Is it before login to IDP? I guess,
Before login to IDP, users shouldn't be allowed to access a protected
resource if IDP initiated SSO is configured. Can you clarify?


On Thu, Jan 12, 2017 at 4:38 PM, Rajkumar Rajaratnam <rajkum...@wso2.com>
wrote:

> Hi Abimaran,
>
> I'm sorry I couldn't understand the context of what you are saying. I was
> reporting that IDP initiated SSO is not working (login to IDP first and let
> IDP to redirect user to SP).
>
> Thanks.
>
> On Thu, Jan 12, 2017 at 1:59 AM Abimaran Kugathasan <abima...@wso2.com>
> wrote:
>
>> Hi Rajkumar,
>>
>> On Wed, Jan 11, 2017 at 11:08 PM, Rajkumar Rajaratnam <rajkum...@wso2.com
>> > wrote:
>>
>> IDP initiated SSO for Store is also not working. Should be the same case
>> with Publisher. Reason for this issue is as below.
>>
>> For SP initiated SSO, we read SSO properties from site.json and set them
>> to SSO relaying party object in sso/filter [1].
>>
>> For IDP initiated SSO, the same thing should be done in jaggery_acs.jag.
>> Why?, because the very first request to API Store will land on
>> jaggery_acs.jag and since SSO properties are not there in SSO relaying
>> party object, you will get NPE like below.
>>  ​
>>
>>
>>
>> Why should someone allowed  to hit SP, if IDP initiated SSO configured? I
>> do understand the annonymous access API Manager should allowed for API
>> Srore, but, when someone requested to login, don't we redirect to IDP login?
>>
>>
>>
>>
>> [2017-01-11 12:34:07,151] ERROR - Util Error when getting key store of
>> tenant carbon.super
>> java.lang.NullPointerException
>> at java.io.File.(File.java:277)
>> at org.wso2.carbon.hostobjects.sso.internal.util.Util.
>> validateSignature(Util.java:281)
>> at org.wso2.carbon.hostobjects.sso.SAMLSSORelyingPartyObject.
>> jsFunction_validateSignature(SAMLSSORelyingPartyObject.java:168)
>> 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.call1(OptRuntime.java:32)
>> at org.jaggeryjs.rhino.store.jagg.c0._c_anonymous_1(/store/
>> jagg/jaggery_acs.jag:70)
>> at org.jaggeryjs.rhino.store.jagg.c0.call(/store/jagg/jaggery_acs.jag)
>> at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
>> at org.jaggeryjs.rhino.store.jagg.c0._c_script_0(/store/
>> jagg/jaggery_acs.jag:5)
>> at org.jaggeryjs.rhino.store.jagg.c0.call(/store/jagg/jaggery_acs.jag)
>> at org.mozilla.javascript.ContextFactory.doTopCall(
>> ContextFactory.java:394)
>> at org.mozilla.javascript.ScriptRuntime.doTopCall(
>> ScriptRuntime.java:3091)
>> at org.jaggeryjs.rhino.store.jagg.c0.call(/store/jagg/jaggery_acs.jag)
>> at org.jaggeryjs.rhino.store.jagg.c0.exec(/store/jagg/jaggery_acs.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.apache.catalina.core.ApplicationDispatcher.invoke(
>> ApplicationDispatcher.java:747)
>> at org.apache.catalina.core.ApplicationDispatcher.processRequest(
>> ApplicationDispatcher.java:485)
>> at org.apache.catalina.core.ApplicationDispatcher.doForward(
>> ApplicationDispatcher.java:377

Re: [Dev] [Architecture] [VOTE] Release WSO2 API Manager 2.1.0 RC2

2017-01-11 Thread Abimaran Kugathasan
.java:122)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
> AuthenticatorBase.java:505)
> at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:169)
> at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:103)
> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(
> CompositeValve.java:99)
> at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.
> invoke(CarbonTomcatValve.java:47)
> at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(
> TenantLazyLoaderValve.java:57)
> at org.wso2.carbon.event.receiver.core.internal.tenantmgt.
> TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:48)
> at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(
> TomcatValveContainer.java:47)
> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(
> CompositeValve.java:62)
> at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValv
> e.invoke(CarbonStuckThreadDetectionValve.java:159)
> at org.apache.catalina.valves.AccessLogValve.invoke(
> AccessLogValve.java:958)
> at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(
> CarbonContextCreatorValve.java:57)
> at org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:116)
> at org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:452)
> at org.apache.coyote.http11.AbstractHttp11Processor.process(
> AbstractHttp11Processor.java:1087)
> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.
> process(AbstractProtocol.java:637)
> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
> doRun(NioEndpoint.java:1756)
> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
> run(NioEndpoint.java:1715)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(
> TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.mozilla.javascript.WrappedException: Wrapped
> org.wso2.carbon.hostobjects.sso.SignatureVerificationException
> (/store/jagg/jaggery_acs.jag#70)
> at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(
> Context.java:1754)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
> at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
> at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
> at org.jaggeryjs.rhino.store.jagg.c0._c_anonymous_1(/store/
> jagg/jaggery_acs.jag:70)
> at org.jaggeryjs.rhino.store.jagg.c0.call(/store/jagg/jaggery_acs.jag)
> at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
> at org.jaggeryjs.rhino.store.jagg.c0._c_script_0(/store/
> jagg/jaggery_acs.jag:5)
> at org.jaggeryjs.rhino.store.jagg.c0.call(/store/jagg/jaggery_acs.jag)
> at org.mozilla.javascript.ContextFactory.doTopCall(
> ContextFactory.java:394)
> at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
> at org.jaggeryjs.rhino.store.jagg.c0.call(/store/jagg/jaggery_acs.jag)
> at org.jaggeryjs.rhino.store.jagg.c0.exec(/store/jagg/jaggery_acs.jag)
> at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(
> RhinoEngine.java:567)
> ... 45 more
> Caused by: org.wso2.carbon.hostobjects.sso.SignatureVerificationException
> at org.wso2.carbon.hostobjects.sso.internal.util.Util.
> validateSignature(Util.java:332)
> at org.wso2.carbon.hostobjects.sso.SAMLSSORelyingPartyObject.
> jsFunction_validateSignature(SAMLSSORelyingPartyObject.java:168)
> 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)
> ... 57 more
> Caused by: java.lang.NullPointerException
> at java.io.File.(File.java:277)
> at org.wso2.carbon.hostobjects.sso.internal.util.Util.
> validateSignature(Util.java:281)
>
>
> [1] https://github.com/wso2/carbon-apimgt/blob/master/featur
> es/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/
> resources/store/site/themes/wso2/templates/sso/filter/template.jag
>
>
> Fix with RC3 please.
>
> Thanks,
> Raj.
>
> On Wed, Jan 11, 2017 at 8:10 AM, Malintha Amarasinghe <malint...@wso2.com>
> wrote:
>
>> Hi all,
>>
>> We are calling off the vote due to the problems found in stat graphs. We
>> will do a RC3 soon.
>>
>> Thanks!
>> Malintha
>>
&g

Re: [Dev] [Architecture] [VOTE] Release WSO2 API Manager 2.1.0 RC2

2017-01-10 Thread Abimaran Kugathasan
Tested Endpoints, Throttling and general API invocations scenarios

[+] Stable - go ahead and release

On Wed, Jan 11, 2017 at 11:20 AM, Praminda Jayawardana <prami...@wso2.com>
wrote:

> Tested client SDK generation for super tenant, non admin, tenant and self
> signup users.
>
> [+] Stable - go ahead and release
>
> On Wed, Jan 11, 2017 at 10:56 AM, Arshardh Ifthikar <arsha...@wso2.com>
> wrote:
>
>> Tested the Websocket API feature
>>
>> [+] Stable - go ahead and release
>>
>> On Wed, Jan 11, 2017 at 10:52 AM, Tharindu Dharmarathna <
>> tharin...@wso2.com> wrote:
>>
>>> Tested the Blocking condition and Advance throtting feature
>>>
>>> [+] Stable - go ahead and release
>>>
>>>
>>> On Wed, Jan 11, 2017 at 10:50 AM, Chamila Adhikarinayake <
>>> chami...@wso2.com> wrote:
>>>
>>>> Tested workflows for API lifecycle state change feature.
>>>>
>>>> [+] Stable - go ahead and release
>>>>
>>>> On Tue, Jan 10, 2017 at 4:35 PM, Malintha Amarasinghe <
>>>> malint...@wso2.com> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> This is the 2nd Release Candidate of WSO2 API Manager 2.1.0
>>>>>
>>>>> Please download, test the product and vote. The vote will be open for
>>>>> 72 hours or as needed.
>>>>>
>>>>> Source and distribution
>>>>>
>>>>> Run-time : https://github.com/wso2/prod
>>>>> uct-apim/releases/download/v2.1.0-rc2/wso2am-2.1.0-RC2.zip
>>>>> Analytics : https://github.com/wso2/anal
>>>>> ytics-apim/releases/download/v2.1.0-rc2/wso2am-analytics-2.1.0-RC2.zip
>>>>> Tooling : https://github.com/wso2/devs
>>>>> tudio-tooling-apim/releases/tag/v2.1.0-rc2
>>>>>
>>>>>
>>>>> This release fixes the following issues:
>>>>> Runtime : https://wso2.org/jira/issues/?filter=13623
>>>>> Analytics : https://wso2.org/jira/issues/?filter=13624
>>>>> Tooling : https://wso2.org/jira/browse/DEVTOOLAPI-1
>>>>>
>>>>>
>>>>> Please vote as follows.
>>>>> [+] Stable - go ahead and release
>>>>> [-] Broken - do not release (explain why)
>>>>>
>>>>>
>>>>> Thanks,
>>>>> - WSO2 API Manager Team -
>>>>>
>>>>> --
>>>>> Malintha Amarasinghe
>>>>> Software Engineer
>>>>> *WSO2, Inc. - lean | enterprise | middleware*
>>>>> http://wso2.com/
>>>>>
>>>>> Mobile : +94 712383306 <+94%2071%20238%203306>
>>>>>
>>>>> ___
>>>>> Architecture mailing list
>>>>> architect...@wso2.org
>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Chamila Adhikarinayake
>>>> Software Engineer
>>>> WSO2, Inc.
>>>> Mobile - +94712346437 <+94%2071%20234%206437>
>>>> Email  - chami...@wso2.com
>>>> Blog  -  http://helpfromadhi.blogspot.com/
>>>>
>>>> ___
>>>> Architecture mailing list
>>>> architect...@wso2.org
>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *Tharindu Dharmarathna*Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94779109091 <+94%2077%20910%209091>*
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> *Arshardh Ifthikar*
>> Trainee Software Engineer
>> WSO2, Inc.
>> Mobile: +94719806525 <+94%2071%20980%206525>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Praminda Jayawardana*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> Mobile : +94 (0) 716 590918 <+94%2071%20659%200918>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] 401 Error: Unauthorized - Illegal access attempt from IP address 10.100.0.187 while trying to authenticate access to service ExternalTryitService

2016-12-03 Thread Abimaran Kugathasan
Hi LacraM,

The original issue [1] was reported in 2013 and pretty old. Can you let us
know which API Manager and Identity Server version you are using?


[1] :
http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-401-Error-Unauthorized-Illegal-access-attempt-from-IP-address-10-100-0-187-while-trying-to-authee-td84120.html#a144824

On Fri, Dec 2, 2016 at 8:46 PM, LacraM <miconi.lacramio...@yahoo.com> wrote:

> Hi,
>
> I am facing the same issue with the KeyManager from API Manager. Did you
> find out what was the problem?
>
> Thanks!
>
>
>
> --
> View this message in context: http://wso2-oxygen-tank.10903.
> n7.nabble.com/Dev-401-Error-Unauthorized-Illegal-access-
> attempt-from-IP-address-10-100-0-187-while-trying-to-
> authee-tp84120p144824.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM][CORS] Caching preflight response in API Console

2016-11-22 Thread Abimaran Kugathasan
Hi Nuwan,

Shall we have a default value as 15 mins in code level, and let the API
developer decide to add this property if he wants to increase it.

WDYT?

On Fri, Nov 18, 2016 at 10:41 PM, Abimaran Kugathasan <abima...@wso2.com>
wrote:

> I thought of setting it through in velocity template.
>
> On Fri, Nov 18, 2016 at 10:17 PM, Nuwan Dias <nuw...@wso2.com> wrote:
>
>> Can't we use the _cors_request_handler_ sequence to set this value? Users
>> don't  have access to the synapse api xml file. And even if they change it,
>> it'll be overriden when you save again unless its set in the velocity
>> template as well. So if we can maintain it at the sequence these shouldn't
>> be a problem.
>>
>> On Fri, Nov 18, 2016 at 5:28 PM, Abimaran Kugathasan <abima...@wso2.com>
>> wrote:
>>
>>> Hi Jo/Nuwan,
>>>
>>> We have to set the property like below. Shall we have 15 mins as the
>>> default value in code level and let API Developer to override it through
>>> api synapse xml file like below?
>>>
>>> >> class="org.wso2.carbon.apimgt.gateway.handlers.security.CORSRequestHandler">
>>> 
>>> 
>>> 
>>>
>>>
>>> On Thu, Nov 3, 2016 at 11:57 AM, Joseph Fonseka <jos...@wso2.com> wrote:
>>>
>>>> +1 to merge the fix to carry this forward better if we can add this to
>>>> the publisher UI as well.
>>>>
>>>> Thanks
>>>> Jo
>>>>
>>>> On Thu, Nov 3, 2016 at 11:28 AM, Abimaran Kugathasan <abima...@wso2.com
>>>> > wrote:
>>>>
>>>>> Hi Dev,
>>>>>
>>>>> CORS specification allows caching the preflight response for a certain
>>>>> number of seconds through Access-Control-Max-Age header [1] .
>>>>>
>>>>> Some browsers have this feature by default which overrides this header
>>>>> if the value specified is greater than their value[2]
>>>>>
>>>>> Firefox - 24 hours
>>>>> Chrome - 10 minutes
>>>>> Chromium - 5 seconds
>>>>>
>>>>> Mathieu(https://github.com/mathieu-pousse) has sent a PR though [3].
>>>>> Please review and provide feedback.
>>>>>
>>>>>
>>>>> [1] : https://www.w3.org/TR/cors/#access-control-max-age-respons
>>>>> e-header
>>>>> [2] : https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/
>>>>> Access-Control-Max-Age
>>>>> [3] : https://github.com/wso2/carbon-apimgt/pull/3114
>>>>>
>>>>>
>>>>> --
>>>>> Thanks
>>>>> Abimaran Kugathasan
>>>>> Senior Software Engineer - API Technologies
>>>>>
>>>>> Email : abima...@wso2.com
>>>>> Mobile : +94 773922820
>>>>>
>>>>> <http://stackoverflow.com/users/515034>
>>>>> <http://lk.linkedin.com/in/abimaran>
>>>>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>>>>> <https://twitter.com/abimaran>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> --
>>>> *Joseph Fonseka*
>>>> WSO2 Inc.; http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> mobile: +94 772 512 430
>>>> skype: jpfonseka
>>>>
>>>> * <http://lk.linkedin.com/in/rumeshbandara>*
>>>>
>>>>
>>>
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>> Senior Software Engineer - API Technologies
>>>
>>> Email : abima...@wso2.com
>>> Mobile : +94 773922820
>>>
>>> <http://stackoverflow.com/users/515034>
>>> <http://lk.linkedin.com/in/abimaran>
>>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>>> <https://twitter.com/abimaran>
>>>
>>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Software Architect - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820
>
> <http://stackoverflow.com/users/515034>
> <http://lk.linkedin.com/in/abimaran>
> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
> <https://twitter.com/abimaran>
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] CONFIGURING WSO2-APIM YK

2016-11-21 Thread Abimaran Kugathasan
HI Yusuf,

WSO2 API Manager has multiple components, those reside in
https://github.com/wso2/carbon-apimgt repo. And the product resides in
https://github.com/wso2/product-apim repo in Github.

Both are maven project, so you should be able to open in any maven
compatible editors.

As a side note, for APIM next release which is 2.1.0, You have to use 6.1.x
branch of https://github.com/wso2/carbon-apimgt and 2.1.x branch for
https://github.com/wso2/product-apim.

On Mon, Nov 21, 2016 at 5:04 PM, Yusuf Kaba <yusuf.k...@centricgateway.com>
wrote:

> Dear Team,
>
>
> I am developing an API management application that allows publishers to
> give clients rights to only certain published APIs. I believe the WSO2-API
> Manager is an excellent product to extend. However I am having issues
> setting up the codes and extending it.
>
>
> I have cloned the source codes for API Manager from
> https://github.com/wso2/product-apim and downloaded the application from
> http://wso2.com/products/api-manager/. The downloaded application works
> fine.
>
>
> But I will like to edit the source codes cloned from github.
> Unfortunately, using maven to build the source results in it running
> endlessly on Netbeans and Eclipse unable to open it. I will appreciate any
> support.
>
> Best regards,
>
> Yusuf Kaba
>
>
> *Application Developer*
>
>
>
> [image: 1471850861029_image002.png]
>
>
>
> mobile:+2348067314205
>
>
>
> email:   yusuf.k...@centricgateway.com
> <niyi.kol...@centricgateway.com>
>
>
>
> website:  www.centricgateway.com
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM][CORS] Caching preflight response in API Console

2016-11-18 Thread Abimaran Kugathasan
I thought of setting it through in velocity template.

On Fri, Nov 18, 2016 at 10:17 PM, Nuwan Dias <nuw...@wso2.com> wrote:

> Can't we use the _cors_request_handler_ sequence to set this value? Users
> don't  have access to the synapse api xml file. And even if they change it,
> it'll be overriden when you save again unless its set in the velocity
> template as well. So if we can maintain it at the sequence these shouldn't
> be a problem.
>
> On Fri, Nov 18, 2016 at 5:28 PM, Abimaran Kugathasan <abima...@wso2.com>
> wrote:
>
>> Hi Jo/Nuwan,
>>
>> We have to set the property like below. Shall we have 15 mins as the
>> default value in code level and let API Developer to override it through
>> api synapse xml file like below?
>>
>> > class="org.wso2.carbon.apimgt.gateway.handlers.security.CORSRequestHandler">
>> 
>> 
>> 
>>
>>
>> On Thu, Nov 3, 2016 at 11:57 AM, Joseph Fonseka <jos...@wso2.com> wrote:
>>
>>> +1 to merge the fix to carry this forward better if we can add this to
>>> the publisher UI as well.
>>>
>>> Thanks
>>> Jo
>>>
>>> On Thu, Nov 3, 2016 at 11:28 AM, Abimaran Kugathasan <abima...@wso2.com>
>>> wrote:
>>>
>>>> Hi Dev,
>>>>
>>>> CORS specification allows caching the preflight response for a certain
>>>> number of seconds through Access-Control-Max-Age header [1] .
>>>>
>>>> Some browsers have this feature by default which overrides this header
>>>> if the value specified is greater than their value[2]
>>>>
>>>> Firefox - 24 hours
>>>> Chrome - 10 minutes
>>>> Chromium - 5 seconds
>>>>
>>>> Mathieu(https://github.com/mathieu-pousse) has sent a PR though [3].
>>>> Please review and provide feedback.
>>>>
>>>>
>>>> [1] : https://www.w3.org/TR/cors/#access-control-max-age-respons
>>>> e-header
>>>> [2] : https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/
>>>> Access-Control-Max-Age
>>>> [3] : https://github.com/wso2/carbon-apimgt/pull/3114
>>>>
>>>>
>>>> --
>>>> Thanks
>>>> Abimaran Kugathasan
>>>> Senior Software Engineer - API Technologies
>>>>
>>>> Email : abima...@wso2.com
>>>> Mobile : +94 773922820
>>>>
>>>> <http://stackoverflow.com/users/515034>
>>>> <http://lk.linkedin.com/in/abimaran>
>>>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>>>> <https://twitter.com/abimaran>
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> --
>>> *Joseph Fonseka*
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 772 512 430
>>> skype: jpfonseka
>>>
>>> * <http://lk.linkedin.com/in/rumeshbandara>*
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820
>>
>> <http://stackoverflow.com/users/515034>
>> <http://lk.linkedin.com/in/abimaran>
>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>> <https://twitter.com/abimaran>
>>
>>
>
>
> --
> Nuwan Dias
>
> Software Architect - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM][CORS] Caching preflight response in API Console

2016-11-18 Thread Abimaran Kugathasan
Hi Jo/Nuwan,

We have to set the property like below. Shall we have 15 mins as the
default value in code level and let API Developer to override it through
api synapse xml file like below?







On Thu, Nov 3, 2016 at 11:57 AM, Joseph Fonseka <jos...@wso2.com> wrote:

> +1 to merge the fix to carry this forward better if we can add this to the
> publisher UI as well.
>
> Thanks
> Jo
>
> On Thu, Nov 3, 2016 at 11:28 AM, Abimaran Kugathasan <abima...@wso2.com>
> wrote:
>
>> Hi Dev,
>>
>> CORS specification allows caching the preflight response for a certain
>> number of seconds through Access-Control-Max-Age header [1] .
>>
>> Some browsers have this feature by default which overrides this header if
>> the value specified is greater than their value[2]
>>
>> Firefox - 24 hours
>> Chrome - 10 minutes
>> Chromium - 5 seconds
>>
>> Mathieu(https://github.com/mathieu-pousse) has sent a PR though [3].
>> Please review and provide feedback.
>>
>>
>> [1] : https://www.w3.org/TR/cors/#access-control-max-age-response-header
>> [2] : https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/
>> Access-Control-Max-Age
>> [3] : https://github.com/wso2/carbon-apimgt/pull/3114
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820
>>
>> <http://stackoverflow.com/users/515034>
>> <http://lk.linkedin.com/in/abimaran>
>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>> <https://twitter.com/abimaran>
>>
>>
>
>
> --
>
> --
> *Joseph Fonseka*
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 772 512 430
> skype: jpfonseka
>
> * <http://lk.linkedin.com/in/rumeshbandara>*
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS][Registry] Usage of modules/carbon/scripts/registry/artifacts.js in Identity Server

2016-11-04 Thread Abimaran Kugathasan
This issue can be resolved by downgrading registry related version to
org.wso2.carbon.governance.api_4.7.1 below 4.6.0 and the range to [4.4.0,
5.0.0). But, downgrading a library might break some functionality, So I
followed the earlier approach in the above mail.


This issue won't occur if all the bundles follow providing version range
like [current major version, next major version)

On Fri, Nov 4, 2016 at 2:48 PM, Abimaran Kugathasan <abima...@wso2.com>
wrote:

> Hi All,
>
> I was able to fix the issue. The root cause of the issue is following.
>
> While installing Key Manager feature, org.wso2.carbon.governance.api_4.7.1
> was installed as transitive bundle of org.wso2.carbon.apimgt.impl_6.0.4.jar
> bundle.
>
> org.wso2.carbon.governance.api_4.7.1 require
> org.wso2.carbon.registry.indexing.service_4.6.0, and it has version range
> of [4.6.0, 5.0.0) for registry related bundles, but Identity Server 5.2.0
> has org.wso2.carbon.registry.indexing.service_4.5.4.
>
> And org.wso2.carbon.apimgt.impl_6.0.4 uses [4.4.0, 4.6.0) range for
> registry related bundles. So, I have to increase this version to accomadate
> org.wso2.carbon.registry.indexing.service_4.6.0 like [4.4.0, 4.7.0). Have
> to copy org.wso2.carbon.registry.indexing.service_4.6.0.jar and add this
> to bundle.info was resolved the issue.
>
> On Wed, Nov 2, 2016 at 3:36 PM, Harsha Thirimanna <hars...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> This is kind of not packaging relevant bundle with the KM features to the
>> IS i think. DineshW is investigating this.
>>
>> *Harsha Thirimanna*
>> Associate Tech Lead | WSO2
>>
>> Email: hars...@wso2.com
>> Mob: +94715186770
>> Blog: http://harshathirimanna.blogspot.com/
>> Twitter: http://twitter.com/harshathirimann
>> Linked-In: linked-in: http://www.linkedin.com/pub/ha
>> rsha-thirimanna/10/ab8/122
>> <http://wso2.com/signature>
>>
>> On Wed, Nov 2, 2016 at 3:02 PM, Ayesha Dissanayaka <aye...@wso2.com>
>> wrote:
>>
>>> Hi Abimaran,
>>>
>>> If this helps, wso2is-5.2.0/modules/carbon/  module comes from a
>>> jaggery-extension , carbon [1].
>>>
>>> This dependency in product-is can be found at [2].
>>>
>>> [1] https://github.com/wso2/jaggery-extensions/tree/release-1.5.3/carbon
>>> [2] https://github.com/wso2/product-is/blob/release-5.2.0/module
>>> s/p2-profile-gen/pom.xml#L1287
>>>
>>> Thanks!
>>> -Ayesha
>>>
>>>
>>> On Mon, Oct 31, 2016 at 3:34 PM, Abimaran Kugathasan <abima...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> The reason for asking this, in Identity Server 5.2.0, after installing
>>>> Key Manager feature, dashboard doesn't work. Through Key Manager feature,
>>>> following bundles are installed
>>>>
>>>> om.google.gson_2.2.4.jar,
>>>> maven-scm_1.7.0.wso2v2.jar,
>>>> org.apache.velocity_1.7.0.jar,
>>>> org.wso2.carbon.apimgt.api_6.0.4.jar,
>>>> org.wso2.carbon.apimgt.gateway.stub_6.0.4.jar,
>>>> org.wso2.carbon.apimgt.handlers.security.stub_6.0.4.jar,
>>>> org.wso2.carbon.apimgt.impl_6.0.4.jar,
>>>> org.wso2.carbon.apimgt.keymgt_6.0.4.jar,
>>>> org.wso2.carbon.apimgt.keymgt.client_6.0.4.jar,
>>>> org.wso2.carbon.apimgt.keymgt.stub_6.0.4.jar,
>>>> org.wso2.carbon.apimgt.statsupdate.stub_6.0.4.jar,
>>>> org.wso2.carbon.apimgt.tier.cache.stub_6.0.4.jar,
>>>> org.wso2.carbon.event.processor.stub_2.1.4.jar,
>>>> org.wso2.carbon.governance.api_4.7.1.jar,
>>>> org.wso2.carbon.identity.user.registration.stub_5.2.0.jar,
>>>> org.wso2.carbon.registry.extensions_4.6.0.jar,
>>>> pdfbox_1.8.10.wso2v2.jar,
>>>> wso2-uri-templates_1.6.5.jar
>>>>
>>>> When I diagnose each bundle, I can see following error for
>>>> org.wso2.carbon.governance.api_4.7.1 bundle
>>>>
>>>> osgi> diag 272
>>>> reference:file:../plugins/org.wso2.carbon.governance.api_4.7.1.jar
>>>> [272]
>>>>   Direct constraints which are unresolved:
>>>> Missing optionally imported package org.wso2.carbon.registry.index
>>>> ing.service_4.6.0.
>>>>
>>>> Since artifacts.js is accessing registry content, I suspect, this
>>>> could be an issue with not satisfying above constraint, but it was marked
>>>> as optional.
>>>>
>>>> Please put some shades on.
>>>>
>>>>
>>>>

Re: [Dev] [IS][Registry] Usage of modules/carbon/scripts/registry/artifacts.js in Identity Server

2016-11-04 Thread Abimaran Kugathasan
Hi All,

I was able to fix the issue. The root cause of the issue is following.

While installing Key Manager feature, org.wso2.carbon.governance.api_4.7.1
was installed as transitive bundle of org.wso2.carbon.apimgt.impl_6.0.4.jar
bundle.

org.wso2.carbon.governance.api_4.7.1 require
org.wso2.carbon.registry.indexing.service_4.6.0,
and it has version range of [4.6.0, 5.0.0) for registry related bundles,
but Identity Server 5.2.0 has org.wso2.carbon.registry.
indexing.service_4.5.4.

And org.wso2.carbon.apimgt.impl_6.0.4 uses [4.4.0, 4.6.0) range for
registry related bundles. So, I have to increase this version to accomadate
org.wso2.carbon.registry.indexing.service_4.6.0 like [4.4.0, 4.7.0). Have
to copy org.wso2.carbon.registry.indexing.service_4.6.0.jar and add this to
bundle.info was resolved the issue.

On Wed, Nov 2, 2016 at 3:36 PM, Harsha Thirimanna <hars...@wso2.com> wrote:

> Hi All,
>
> This is kind of not packaging relevant bundle with the KM features to the
> IS i think. DineshW is investigating this.
>
> *Harsha Thirimanna*
> Associate Tech Lead | WSO2
>
> Email: hars...@wso2.com
> Mob: +94715186770
> Blog: http://harshathirimanna.blogspot.com/
> Twitter: http://twitter.com/harshathirimann
> Linked-In: linked-in: http://www.linkedin.com/pub/
> harsha-thirimanna/10/ab8/122
> <http://wso2.com/signature>
>
> On Wed, Nov 2, 2016 at 3:02 PM, Ayesha Dissanayaka <aye...@wso2.com>
> wrote:
>
>> Hi Abimaran,
>>
>> If this helps, wso2is-5.2.0/modules/carbon/  module comes from a
>> jaggery-extension , carbon [1].
>>
>> This dependency in product-is can be found at [2].
>>
>> [1] https://github.com/wso2/jaggery-extensions/tree/release-1.5.3/carbon
>> [2] https://github.com/wso2/product-is/blob/release-5.2.0/module
>> s/p2-profile-gen/pom.xml#L1287
>>
>> Thanks!
>> -Ayesha
>>
>>
>> On Mon, Oct 31, 2016 at 3:34 PM, Abimaran Kugathasan <abima...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> The reason for asking this, in Identity Server 5.2.0, after installing
>>> Key Manager feature, dashboard doesn't work. Through Key Manager feature,
>>> following bundles are installed
>>>
>>> om.google.gson_2.2.4.jar,
>>> maven-scm_1.7.0.wso2v2.jar,
>>> org.apache.velocity_1.7.0.jar,
>>> org.wso2.carbon.apimgt.api_6.0.4.jar,
>>> org.wso2.carbon.apimgt.gateway.stub_6.0.4.jar,
>>> org.wso2.carbon.apimgt.handlers.security.stub_6.0.4.jar,
>>> org.wso2.carbon.apimgt.impl_6.0.4.jar,
>>> org.wso2.carbon.apimgt.keymgt_6.0.4.jar,
>>> org.wso2.carbon.apimgt.keymgt.client_6.0.4.jar,
>>> org.wso2.carbon.apimgt.keymgt.stub_6.0.4.jar,
>>> org.wso2.carbon.apimgt.statsupdate.stub_6.0.4.jar,
>>> org.wso2.carbon.apimgt.tier.cache.stub_6.0.4.jar,
>>> org.wso2.carbon.event.processor.stub_2.1.4.jar,
>>> org.wso2.carbon.governance.api_4.7.1.jar,
>>> org.wso2.carbon.identity.user.registration.stub_5.2.0.jar,
>>> org.wso2.carbon.registry.extensions_4.6.0.jar,
>>> pdfbox_1.8.10.wso2v2.jar,
>>> wso2-uri-templates_1.6.5.jar
>>>
>>> When I diagnose each bundle, I can see following error for
>>> org.wso2.carbon.governance.api_4.7.1 bundle
>>>
>>> osgi> diag 272
>>> reference:file:../plugins/org.wso2.carbon.governance.api_4.7.1.jar [272]
>>>   Direct constraints which are unresolved:
>>> Missing optionally imported package org.wso2.carbon.registry.index
>>> ing.service_4.6.0.
>>>
>>> Since artifacts.js is accessing registry content, I suspect, this could
>>> be an issue with not satisfying above constraint, but it was marked as
>>> optional.
>>>
>>> Please put some shades on.
>>>
>>>
>>>
>>> On Thu, Oct 27, 2016 at 5:05 PM, Abimaran Kugathasan <abima...@wso2.com>
>>> wrote:
>>>
>>>> Any hint on this?
>>>>
>>>> On Thu, Oct 27, 2016 at 10:12 AM, Abimaran Kugathasan <
>>>> abima...@wso2.com> wrote:
>>>>
>>>>> Hi IS/Registry Teams,
>>>>>
>>>>>
>>>>> I want to know the usage of 
>>>>> wso2is-5.2.0/modules/carbon/scripts/registry/artifacts.js
>>>>> script?
>>>>>
>>>>> It was referred through wso2is-5.2.0/modules/carbon/scripts/module.xml
>>>>> and wso2is-5.2.0/modules/carbon/module.xml files.
>>>>>
>>>>> I guess, Identity Server doesn't use any registry related
>>>>> functionalities and this was shipped by some carbon 

Re: [Dev] Shall we change the convention for placement of DB Query String in Java Code.

2016-11-04 Thread Abimaran Kugathasan
ly look at the query local to 
>>>>>>> the
>>>>>>> method? If so, I am +1 for Ruwan's proposal. Being local constant to the
>>>>>>> method seems good.
>>>>>>>
>>>>>>> On Thu, Oct 27, 2016 at 9:42 PM, Sagara Gunathunga <sag...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Personally I don't have strong preference on one style over other,
>>>>>>>> what mostly important for me is maintain one style consistently within 
>>>>>>>> the
>>>>>>>> product and if possible across the company.
>>>>>>>>
>>>>>>>> I'm adding few other people for their opinion.
>>>>>>>>
>>>>>>>> Thanks !
>>>>>>>>
>>>>>>>> On Thu, Oct 27, 2016 at 5:34 PM, Ruwan Abeykoon <ruw...@wso2.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi Devs,
>>>>>>>>> We have been following a convention to put Database query string
>>>>>>>>> in a constant elsewhere in the code when performing DB CRUD 
>>>>>>>>> operations.
>>>>>>>>>
>>>>>>>>> e.g.
>>>>>>>>>
>>>>>>>>> try {
>>>>>>>>> String sqlStmt = 
>>>>>>>>> IdPManagementConstants.SQLQueries.GET_IDP_BY_NAME_SQL;
>>>>>>>>> prepStmt = dbConnection.prepareStatement(sqlStmt);
>>>>>>>>> prepStmt.setInt(1, tenantId);
>>>>>>>>> prepStmt.setInt(2, MultitenantConstants.SUPER_TENANT_ID);
>>>>>>>>> prepStmt.setString(3, idPName);
>>>>>>>>> rs = prepStmt.executeQuery();
>>>>>>>>>
>>>>>>>>> ...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> However I would propose to keep the query in the same location as the 
>>>>>>>>> SQL parameter binding and result set reading. Shall we make it within 
>>>>>>>>> local final variable(constant) in  the method itself.
>>>>>>>>>
>>>>>>>>> The advantage is that the Query is visible on the same screen as it 
>>>>>>>>> is being used. This reduces number of screen flips. Also remembering 
>>>>>>>>> the query at somewhere else is error prone.
>>>>>>>>>
>>>>>>>>> This also help easy review and do query optimizations.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> e.g.
>>>>>>>>>
>>>>>>>>> final String INSERT_IDP_SQL = "INSERT INTO IDP (NAME, DISPLAY_NAME, 
>>>>>>>>> DESCRIPTION) VALUES(?,?,?)";
>>>>>>>>>
>>>>>>>>> this.jdbcTemplate.executeUpdate(INSERT_IDP_SQL, (preparedStatement, 
>>>>>>>>> bean) -> {
>>>>>>>>> MetaIdentityProvider metaIdentityProvider = 
>>>>>>>>> identityProvider.getMetaIdentityProvider();
>>>>>>>>> preparedStatement.setString(1, metaIdentityProvider.getName());
>>>>>>>>> preparedStatement.setString(2, 
>>>>>>>>> metaIdentityProvider.getDisplayName());
>>>>>>>>> preparedStatement.setString(3, 
>>>>>>>>> metaIdentityProvider.getDescription());
>>>>>>>>>
>>>>>>>>> ...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Please note that they are the same in terms of memory use and
>>>>>>>>> performance wise as compiler make them constants.
>>>>>>>>> Putting them as constants serve no purpose as the query will never
>>>>>>>>> be reused in proper designed Data Access layer. We should reuse the 
>>>>>>>>> code,
>>>>>>>>> not the query.
>>>>>>>>>
>>>>>>>>> WDYT?
>>>>>>>>>
>>&g

Re: [Dev] Error while publishing apis to gateway

2016-11-04 Thread Abimaran Kugathasan
nder.send(HTTPSender.java:77)
>> at org.apache.axis2.transport.http.CommonsHTTPTransportSender.w
>> riteMessageWithCommons(CommonsHTTPTransportSender.java:451)
>> at org.apache.axis2.transport.http.CommonsHTTPTransportSender.i
>> nvoke(CommonsHTTPTransportSender.java:278)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>> at org.apache.axis2.description.OutInAxisOperationClient.send(O
>> utInAxisOperation.java:430)
>> at org.apache.axis2.description.OutInAxisOperationClient.execut
>> eImpl(OutInAxisOperation.java:225)
>> at org.apache.axis2.client.OperationClient.execute(OperationCli
>> ent.java:149)
>> at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.l
>> ogin(AuthenticationAdminStub.java:659)
>> at org.wso2.carbon.apimgt.impl.utils.AbstractAPIGatewayAdminCli
>> ent.login(AbstractAPIGatewayAdminClient.java:87)
>> ... 72 more
>> Caused by: javax.net.ssl.SSLPeerUnverifiedException: SSL peer failed
>> hostname validation for name: 127.0.0.1
>> at org.opensaml.ws.soap.client.http.TLSProtocolSocketFactory.ve
>> rifyHostname(TLSProtocolSocketFactory.java:233)
>> at org.opensaml.ws.soap.client.http.TLSProtocolSocketFactory.cr
>> eateSocket(TLSProtocolSocketFactory.java:194)
>> at org.apache.commons.httpclient.HttpConnection.open(HttpConnec
>> tion.java:707)
>> at org.apache.commons.httpclient.MultiThreadedHttpConnectionMan
>> ager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionM
>> anager.java:1361)
>> at org.apache.commons.httpclient.HttpMethodDirector.executeWith
>> Retry(HttpMethodDirector.java:387)
>> at org.apache.commons.httpclient.HttpMethodDirector.executeMeth
>> od(HttpMethodDirector.java:171)
>> at org.apache.commons.httpclient.HttpClient.executeMethod(HttpC
>> lient.java:397)
>> at org.apache.axis2.transport.http.AbstractHTTPSender.executeMe
>> thod(AbstractHTTPSender.java:659)
>> at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPS
>> ender.java:195)
>> ... 81 more
>>
>>
>> --
>> *Susinda Perera*
>> Software Engineer
>> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
>> Mobile:(+94)716049075
>> Blog: susinda.blogspot.com
>> WSO2 Inc. http://wso2.com/
>> Tel : 94 11 214 5345 Fax :94 11 2145300
>>
>>
>
>
> --
> *Susinda Perera*
> Software Engineer
> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
> Mobile:(+94)716049075
> Blog: susinda.blogspot.com
> WSO2 Inc. http://wso2.com/
> Tel : 94 11 214 5345 Fax :94 11 2145300
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM][CORS] Caching preflight response in API Console

2016-11-03 Thread Abimaran Kugathasan
Hi Dev,

CORS specification allows caching the preflight response for a certain
number of seconds through Access-Control-Max-Age header [1] .

Some browsers have this feature by default which overrides this header if
the value specified is greater than their value[2]

Firefox - 24 hours
Chrome - 10 minutes
Chromium - 5 seconds

Mathieu(https://github.com/mathieu-pousse) has sent a PR though [3]. Please
review and provide feedback.


[1] : https://www.w3.org/TR/cors/#access-control-max-age-response-header
[2] :
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age
[3] : https://github.com/wso2/carbon-apimgt/pull/3114


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS][Registry] Usage of modules/carbon/scripts/registry/artifacts.js in Identity Server

2016-10-31 Thread Abimaran Kugathasan
Hi,

The reason for asking this, in Identity Server 5.2.0, after installing Key
Manager feature, dashboard doesn't work. Through Key Manager feature,
following bundles are installed

om.google.gson_2.2.4.jar,
maven-scm_1.7.0.wso2v2.jar,
org.apache.velocity_1.7.0.jar,
org.wso2.carbon.apimgt.api_6.0.4.jar,
org.wso2.carbon.apimgt.gateway.stub_6.0.4.jar,
org.wso2.carbon.apimgt.handlers.security.stub_6.0.4.jar,
org.wso2.carbon.apimgt.impl_6.0.4.jar,
org.wso2.carbon.apimgt.keymgt_6.0.4.jar,
org.wso2.carbon.apimgt.keymgt.client_6.0.4.jar,
org.wso2.carbon.apimgt.keymgt.stub_6.0.4.jar,
org.wso2.carbon.apimgt.statsupdate.stub_6.0.4.jar,
org.wso2.carbon.apimgt.tier.cache.stub_6.0.4.jar,
org.wso2.carbon.event.processor.stub_2.1.4.jar,
org.wso2.carbon.governance.api_4.7.1.jar,
org.wso2.carbon.identity.user.registration.stub_5.2.0.jar,
org.wso2.carbon.registry.extensions_4.6.0.jar,
pdfbox_1.8.10.wso2v2.jar,
wso2-uri-templates_1.6.5.jar

When I diagnose each bundle, I can see following error for
org.wso2.carbon.governance.api_4.7.1 bundle

osgi> diag 272
reference:file:../plugins/org.wso2.carbon.governance.api_4.7.1.jar [272]
  Direct constraints which are unresolved:
Missing optionally imported package
org.wso2.carbon.registry.indexing.service_4.6.0.

Since artifacts.js is accessing registry content, I suspect, this could be
an issue with not satisfying above constraint, but it was marked as
optional.

Please put some shades on.



On Thu, Oct 27, 2016 at 5:05 PM, Abimaran Kugathasan <abima...@wso2.com>
wrote:

> Any hint on this?
>
> On Thu, Oct 27, 2016 at 10:12 AM, Abimaran Kugathasan <abima...@wso2.com>
> wrote:
>
>> Hi IS/Registry Teams,
>>
>>
>> I want to know the usage of 
>> wso2is-5.2.0/modules/carbon/scripts/registry/artifacts.js
>> script?
>>
>> It was referred through wso2is-5.2.0/modules/carbon/scripts/module.xml
>> and wso2is-5.2.0/modules/carbon/module.xml files.
>>
>> I guess, Identity Server doesn't use any registry related functionalities
>> and this was shipped by some carbon kernel features. Please confirm.
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820
>>
>> <http://stackoverflow.com/users/515034>
>> <http://lk.linkedin.com/in/abimaran>
>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>> <https://twitter.com/abimaran>
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820
>
> <http://stackoverflow.com/users/515034>
> <http://lk.linkedin.com/in/abimaran>
> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
> <https://twitter.com/abimaran>
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while installing Account Recovery and Credential Management Feature in wso2am-2.0.1-SNAPSHOT

2016-10-31 Thread Abimaran Kugathasan
OperationClient.java:149)
> at org.wso2.carbon.feature.mgt.stub.ProvisioningAdminServiceStub.
> performProvisioningAction(ProvisioningAdminServiceStub.java:1085)
>
> Thanks & Regards,
> Mushthaq
> --
> 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.
>
> <http://wso2.com/signature>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS][Registry] Usage of modules/carbon/scripts/registry/artifacts.js in Identity Server

2016-10-27 Thread Abimaran Kugathasan
Any hint on this?

On Thu, Oct 27, 2016 at 10:12 AM, Abimaran Kugathasan <abima...@wso2.com>
wrote:

> Hi IS/Registry Teams,
>
>
> I want to know the usage of 
> wso2is-5.2.0/modules/carbon/scripts/registry/artifacts.js
> script?
>
> It was referred through wso2is-5.2.0/modules/carbon/scripts/module.xml
> and wso2is-5.2.0/modules/carbon/module.xml files.
>
> I guess, Identity Server doesn't use any registry related functionalities
> and this was shipped by some carbon kernel features. Please confirm.
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820
>
> <http://stackoverflow.com/users/515034>
> <http://lk.linkedin.com/in/abimaran>
> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
> <https://twitter.com/abimaran>
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS][Registry] Usage of modules/carbon/scripts/registry/artifacts.js in Identity Server

2016-10-26 Thread Abimaran Kugathasan
Hi IS/Registry Teams,


I want to know the usage of
wso2is-5.2.0/modules/carbon/scripts/registry/artifacts.js script?

It was referred through wso2is-5.2.0/modules/carbon/scripts/module.xml
and wso2is-5.2.0/modules/carbon/module.xml files.

I guess, Identity Server doesn't use any registry related functionalities
and this was shipped by some carbon kernel features. Please confirm.


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Admin Service in C5

2016-10-25 Thread Abimaran Kugathasan
+Thusitha, Jayanga

On Tue, Oct 25, 2016 at 11:16 AM, Abimaran Kugathasan <abima...@wso2.com>
wrote:

> Hi All,
>
> Does C5 support any Admin APIs (REST or SOAP) for server administrative
> tasks? Or everything will be done through configurations?
>
> I can't find any documentation for this.
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820
>
> <http://stackoverflow.com/users/515034>
> <http://lk.linkedin.com/in/abimaran>
> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
> <https://twitter.com/abimaran>
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Admin Service in C5

2016-10-24 Thread Abimaran Kugathasan
Hi All,

Does C5 support any Admin APIs (REST or SOAP) for server administrative
tasks? Or everything will be done through configurations?

I can't find any documentation for this.

-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Hi,Abimaran,sorry to disturb you again

2016-10-20 Thread Abimaran Kugathasan
Hi Christ,

On Wed, Oct 19, 2016 at 1:56 PM, christ Feng <feng20160...@gmail.com> wrote:

> Hi,Abimaran.
>
> When I deploy APIM under NO distributed with DAS and the database is mysql
> . I configured APIM and DAS order this blog [1]. After I revoke an api
> ,stats shows good in publisher and store.
>
> Then I distributed APIM into pubilsher、store、keymanager and gateway. I
> also configured APIM and DAS order this blog [1]. but cannot get stats and
> no error shows on every node.
>
> what is the different configuration between distributed APIM and NO
> distributed APIM with DAS under RDBMsClient?
>
> I have posted my confuse on stackoverflow [2], It seems that he [3] has
> the same problem with me ,but did not explain how to slove DAS doesn't
> accept subscription event .
>
> Thanks and Reguards
>
> [1]: http://rukspot.com/configure_wso2_apim_analytics_using_xml.html
> [2]: http://stackoverflow.com/questions/40104970/wso2-das-
> clustering-apim-with-mysql
> [3]: http://stackoverflow.com/questions/36786391/wso2-api-
> manager-publishing-runtime-to-das-das-has-no-data-in-wso2-stats-db
>

In the distributed set up, you have to point the gateway, publisher node to
DAS. Can you please share your api-manager.xml of each node? We will be
updating our documenation on clustering API Manager with DAS.



-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API Manager 2.0.0 - Cannot add SAML inbound authentication config to Service Provider

2016-10-18 Thread Abimaran Kugathasan
stractProtocol$AbstractConnectionHandler.
> process(AbstractProtocol.java:625)
> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
> doRun(NioEndpoint.java:1749)
> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
> run(NioEndpoint.java:1708)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(
> TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: javax.servlet.ServletException: File
> /sso-saml/add_service_provider.jsp not found
>
> Thanks,
> TharinduE
>
> --
>
> Tharindu Edirisinghe
> Senior Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] No SCM URL was provided to perform the release Issue when releasing carbon-device-mgt-plugins

2016-10-18 Thread Abimaran Kugathasan
 Carbon - App Manager WSO2 MDM OSGI Connector Component  SKIPPED
> [INFO] WSO2 Carbon - Device Management EMM Plugins Feature  SKIPPED
> [INFO] WSO2 Carbon - Device Management EMM Base Plugin Feature  SKIPPED
> [INFO] WSO2 Carbon - Mobile Device Management Feature  SKIPPED
> [INFO] WSO2 Carbon - Device Management Android Plugin Feature  SKIPPED
> [INFO] WSO2 Carbon - Android Device Management Feature ... SKIPPED
> [INFO] WSO2 Carbon - Device Management Windows Plugin Feature  SKIPPED
> [INFO] WSO2 Carbon - Windows Device Management Feature ... SKIPPED
> [INFO] WSO2 Carbon - Device Management IoT Plugins Feature  SKIPPED
> [INFO] WSO2 Carbon - IoT Server IoT Analytics Feature  SKIPPED
> [INFO] WSO2 Carbon - IoT Server Analytics Feature  SKIPPED
> [INFO] WSO2 Carbon - IoT Server Android Sense Device Feature  SKIPPED
> [INFO] WSO2 Carbon - IoT Server Android Sense Feature  SKIPPED
> [INFO] WSO2 Carbon - IoT Server Arduino Device Feature ... SKIPPED
> [INFO] WSO2 Carbon - IoT Server Arduino Feature .. SKIPPED
> [INFO] WSO2 Carbon - IoT Server RaspberryPi Device Feature  SKIPPED
> [INFO] WSO2 Carbon - IoT Server RaspberryPi Feature .. SKIPPED
> [INFO] WSO2 Carbon - IoT Server VirtualFireAlarm Device Feature  SKIPPED
> [INFO] WSO2 Carbon - IoT Server VirtualFireAlarm Feature . SKIPPED
> [INFO] WSO2 Carbon - Device Management IoT Base Plugin Feature  SKIPPED
> [INFO] WSO2 Carbon - IoT Device Management Feature ... SKIPPED
> [INFO] WSO2 Carbon - IoT Device Management Feature ... SKIPPED
> [INFO] IoT Server Device types ... SKIPPED
> [INFO] IoT Server Device types Feature ... SKIPPED
> [INFO] WSO2 Carbon - Device Management Extensions  SKIPPED
> [INFO] WSO2 Carbon - App management MDM OSGI Connector ... SKIPPED
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 2.141s
> [INFO] Finished at: Mon Oct 17 17:44:05 UTC 2016
> [INFO] Final Memory: 26M/310M
> [INFO] 
> 
> [ERROR] Failed to execute goal org.apache.maven.plugins:
> maven-release-plugin:2.5.1:perform (default-cli) on project
> carbon-device-mgt-plugins-parent: No SCM URL was provided to perform the
> release from -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/
> MojoFailureException
>
>
> Any idea why this happens ??
>
> Thanks and Best Regards,
> Kamidu Sachith Punchihewa
> *Softiware Engineer*
> WSO2, Inc.
> lean . enterprise . middleware
> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, retransmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] hi,abimaran,help me for this.

2016-10-16 Thread Abimaran Kugathasan
Hi Christ,

In which node your are getting this exception? Is it in Gateway or Store?
Additionally, how do you configure DAS? Through REST Client or RDBMS [1]?

BTW, you can use Stackoverflow [2] or dev@wso2.org mailing list in future
for any clarification regarding WSO2 queries.

[1] : https://docs.wso2.com/display/AM1100/Publishing+API+Runtime+Statistics
[2] : http://stackoverflow.com/questions/tagged/wso2

On Sun, Oct 16, 2016 at 7:53 PM, christ Feng <feng20160...@gmail.com> wrote:

> hi , abimaran. I have one problem wanna ask you .
>My APIM version is 1.10.0 and DAS is 3.0.1
>
>1.
>
>I Clustering APIM divide into 4 part,publisher,store,keymanager,
>gataway. And use DAS for stats. Database is mysql.
>2.
>
>I set the connection between APIM and DAS on publisher node.
>3.
>
>When I invoke an api ,APIM console give error as below.
>
> error:
>
> [2016-10-13 11:13:54,775] ERROR - APIMgtUsageHandler Cannot publish event. 
> null
> java.lang.NullPointerException
> at 
> org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher.publishEvent(APIMgtUsageDataBridgeDataPublisher.java:124)
> at 
> org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageHandler.handleRequest(APIMgtUsageHandler.java:169)
> at org.apache.synapse.rest.API.process(API.java:322)
> at 
> org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:86)
> at 
> org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:65)
> at 
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:295)
> at 
> org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at 
> org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:317)
> at 
> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:149)
> at 
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> [2016-10-13 11:13:54,807] ERROR - APIMgtResponseHandler Cannot publish 
> response event. null
> java.lang.NullPointerException
> at 
> org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher.publishEvent(APIMgtUsageDataBridgeDataPublisher.java:140)
> at 
> org.wso2.carbon.apimgt.usage.publisher.APIMgtResponseHandler.mediate(APIMgtResponseHandler.java:211)
> at 
> org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:84)
> at 
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
> at 
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
> at 
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:155)
> at org.apache.synapse.rest.Resource.process(Resource.java:297)
> at org.apache.synapse.rest.API.process(API.java:335)
> at 
> org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:86)
> at 
> org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:52)
> at 
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:295)
> at 
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
> at 
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at 
> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:251)
> at 
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
>
> I am glad to hear something from you .
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM 1.9.1] Sorting options for listed APIs

2016-10-04 Thread Abimaran Kugathasan
Yes, Store Jaggery APIs are sorting the APIs in the order of provider,
API name and version. If there are two APIs with same provider, then those
APIs will be sorted using name,

On Tue, Oct 4, 2016 at 8:24 PM, Dakshika Jayathilaka <daksh...@wso2.com>
wrote:

> Hi All,
>
> Do we have $subject out of the box?
>
> Regards,
>
> *Dakshika Jayathilaka*
> PMC Member & Committer of Apache Stratos
> Associate Technical Lead
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Status code in the log never get print on response path!

2016-10-03 Thread Abimaran Kugathasan
Hi Vanji,

Thanks for the fix. Your PR was merged.

On Tue, Oct 4, 2016 at 6:15 AM, Vanjikumaran Sivajothy <va...@wso2.com>
wrote:

> Hi APIM team,
>
> $subject due to wrong use of method. It should be isNotEmpty[1]. I have
> fixed that and the send the pull request. Further i have introduced HTTP
> method in the log for more granular level of information to analyzing the
> log with log analyzing tools
>
>
> if (DIRECTION_OUT.equals(direction)) {
> String statusCode = String.valueOf(axisMC.
> getProperty(NhttpConstants.HTTP_SC));
>
>   *  if (StringUtils.isEmpty(statusCode)) {*
> logMessage = logMessage + " , statusCode=" + statusCode;
> }
> }
>
>
> [1] https://github.com/wso2/carbon-apimgt/blob/master/
> components/apimgt/org.wso2.carbon.apimgt.gateway/src/
> main/java/org/wso2/carbon/apimgt/gateway/handlers/
> logging/APILogMessageHandler.java#L126
>
>
> [2] https://github.com/wso2/carbon-apimgt/pull/2949
>
>
> --
> Vanjikumaran Sivajothy
> *Associate Technical Lead*
> *WSO2 Inc. http://wso2.com <http://wso2.com/>*
>  *+1-925-464-6816*
> [image: Facebook] <https://www.facebook.com/vanjikumaran> [image: Twitter]
> <https://twitter.com/vanjikumaran> [image: LinkedIn]
> <http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293> [image:
> Blogger] <http://vanjikumaran.blogspot.com/> [image: SlideShare]
> <http://www.slideshare.net/vanjikumaran>
>
> This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may
> have received this communication in error, please reply to the
> sender indicating that fact and delete the copy you received and in
> addition, you should not print, copy, re-transmit, disseminate, or
> otherwise use the information contained in this communication.
> Internet communications cannot be guaranteed to be timely, secure, error
> or virus-free. The sender does not accept liability for any errors
> or omissions
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Version mismatch in org.wso2.carbon.user.api_4.4.3.jar in the API Manager 1.10.0

2016-09-23 Thread Abimaran Kugathasan
It's depends on how that library exports it's version. If you check [1],
they are exporting with version 1.0.1

[1] :
https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.user.api/pom.xml#L51

On Fri, Sep 23, 2016 at 12:51 PM, Fathima Dilhasha <dilha...@wso2.com>
wrote:

> Hi All,
>
> I'm trying to use org.wso2.carbon.user.api_4.4.3.jar for a requirement in
> an osgi bundle within an API Manager 1.10.0 pack.
> And it seems that even though the version of the jar is specified as
> "4.4.3", the exported version of the org.wso2.carbon.user.api.* classes are
> "1.0.1".
>
> Is this ok?
>
> Thanks & regards,
> Dilhasha
>
> --
> Fathima Dilhasha
> *Software Engineer*
> Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
> <%2B94%20%280%29%20773%20451194>
> dilha...@wso2.com <madha...@wso2.com>
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What's the best way to create a tenant?

2016-09-22 Thread Abimaran Kugathasan
It should be there. Also, you can use UserAdmin SOAP service too.

On Thu, Sep 22, 2016 at 5:49 PM, wenxzhen <wenxing.zh...@qq.com> wrote:

> I didn't find the 'RemoteUserStoreManagerService' after I dumped all the
> Admin service from the console. I am using the AS 5.3.0.
>
> Regards, Wenxing
>
> -- Original ------
> *From: * "Abimaran Kugathasan";<abima...@wso2.com>;
> *Send time:* Thursday, Sep 22, 2016 8:40 PM
> *To:* "wenxzhen"<wenxing.zh...@qq.com>;
> *Cc:* "dev"<dev@wso2.org>;
> *Subject: * Re: [Dev] What's the best way to create a tenant?
>
>
>
> On Thu, Sep 22, 2016 at 1:10 PM, wenxzhen <wenxing.zh...@qq.com> wrote:
>
>>
>> Thanks to Abimaran.
>>
>> Another question is which Admin Service is responsible of inviting a user
>> into a tenant? I find the UserAdmin service, but didn't find any item
>> related with invitation.
>>
>
> You have to invoke the 'RemoteUserStoreManagerService' with the tenant to
> which you want to add the users. There is an opration called 'addUser'
>
>
>>
>> Regards, Wenxing
>>
>> -- 原始邮件 --
>> *发件人:* "Abimaran Kugathasan";<abima...@wso2.com>;
>> *发送时间:* 2016年9月22日(星期四) 下午3:58
>> *收件人:* "wenxzhen"<wenxing.zh...@qq.com>;
>> *抄送:* "dev"<dev@wso2.org>;
>> *主题:* Re: [Dev] What's the best way to create a tenant?
>>
>> Hi Wenxing,
>>
>> You have to use TenantMgtAdminService for creating tenants. Java API can
>> be used for consuming/creating requests and response on top of that SOAP
>> service.
>>
>> You can check a sample service we have used here [1]
>>
>>
>> [1] : https://docs.wso2.com/display/AM200/WSO2+Admin+Services
>>
>> On Thu, Sep 22, 2016 at 12:51 PM, wenxzhen <wenxing.zh...@qq.com> wrote:
>>
>>> Please kindly advice as I need to settle down the solution.
>>>
>>> Thank you very much
>>> Regards, Wenxing
>>>
>>>
>>> -- Original --
>>> *From:* "wenxzhen"<wenxing.zh...@qq.com>;
>>> *Date:* 2016年9月22日(星期四) 下午2:59
>>> *To:* "dev"<dev@wso2.org>;
>>> *Subject:* [Dev] What's the best way to create a tenant?
>>>
>>> Dear all,
>>>
>>> In order to create a tenant from the user input, what's the best way to
>>> make it? Per my little knowledge, there are at least 2 ways:
>>>
>>>1. Carbon had already provided the Java APIs
>>>2. making use of the TenantMgtAdminService
>>>
>>> If I wanna use the way 1, any potential risk that need to take care?
>>>
>>> Thanks, Wenxing
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820
>>
>> <http://stackoverflow.com/users/515034>
>> <http://lk.linkedin.com/in/abimaran>
>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>> <https://twitter.com/abimaran>
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820
>
> <http://stackoverflow.com/users/515034>
> <http://lk.linkedin.com/in/abimaran>
> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
> <https://twitter.com/abimaran>
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What's the best way to create a tenant?

2016-09-22 Thread Abimaran Kugathasan
On Thu, Sep 22, 2016 at 1:10 PM, wenxzhen <wenxing.zh...@qq.com> wrote:

>
> Thanks to Abimaran.
>
> Another question is which Admin Service is responsible of inviting a user
> into a tenant? I find the UserAdmin service, but didn't find any item
> related with invitation.
>

You have to invoke the 'RemoteUserStoreManagerService' with the tenant to
which you want to add the users. There is an opration called 'addUser'


>
> Regards, Wenxing
>
> -- 原始邮件 --
> *发件人:* "Abimaran Kugathasan";<abima...@wso2.com>;
> *发送时间:* 2016年9月22日(星期四) 下午3:58
> *收件人:* "wenxzhen"<wenxing.zh...@qq.com>;
> *抄送:* "dev"<dev@wso2.org>;
> *主题:* Re: [Dev] What's the best way to create a tenant?
>
> Hi Wenxing,
>
> You have to use TenantMgtAdminService for creating tenants. Java API can
> be used for consuming/creating requests and response on top of that SOAP
> service.
>
> You can check a sample service we have used here [1]
>
>
> [1] : https://docs.wso2.com/display/AM200/WSO2+Admin+Services
>
> On Thu, Sep 22, 2016 at 12:51 PM, wenxzhen <wenxing.zh...@qq.com> wrote:
>
>> Please kindly advice as I need to settle down the solution.
>>
>> Thank you very much
>> Regards, Wenxing
>>
>>
>> -- Original --
>> *From:* "wenxzhen"<wenxing.zh...@qq.com>;
>> *Date:* 2016年9月22日(星期四) 下午2:59
>> *To:* "dev"<dev@wso2.org>;
>> *Subject:* [Dev] What's the best way to create a tenant?
>>
>> Dear all,
>>
>> In order to create a tenant from the user input, what's the best way to
>> make it? Per my little knowledge, there are at least 2 ways:
>>
>>1. Carbon had already provided the Java APIs
>>2. making use of the TenantMgtAdminService
>>
>> If I wanna use the way 1, any potential risk that need to take care?
>>
>> Thanks, Wenxing
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820
>
> <http://stackoverflow.com/users/515034>
> <http://lk.linkedin.com/in/abimaran>
> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
> <https://twitter.com/abimaran>
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What's the best way to create a tenant?

2016-09-22 Thread Abimaran Kugathasan
Hi Wenxing,

You have to use TenantMgtAdminService for creating tenants. Java API can be
used for consuming/creating requests and response on top of that SOAP
service.

You can check a sample service we have used here [1]


[1] : https://docs.wso2.com/display/AM200/WSO2+Admin+Services

On Thu, Sep 22, 2016 at 12:51 PM, wenxzhen <wenxing.zh...@qq.com> wrote:

> Please kindly advice as I need to settle down the solution.
>
> Thank you very much
> Regards, Wenxing
>
>
> -- Original --
> *From:* "wenxzhen"<wenxing.zh...@qq.com>;
> *Date:* 2016年9月22日(星期四) 下午2:59
> *To:* "dev"<dev@wso2.org>;
> *Subject:* [Dev] What's the best way to create a tenant?
>
> Dear all,
>
> In order to create a tenant from the user input, what's the best way to
> make it? Per my little knowledge, there are at least 2 ways:
>
>1. Carbon had already provided the Java APIs
>2. making use of the TenantMgtAdminService
>
> If I wanna use the way 1, any potential risk that need to take care?
>
> Thanks, Wenxing
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Where I can find the source code for Admin Dashboard in API Manager

2016-09-19 Thread Abimaran Kugathasan
Hi Sumedha,


There aren't any reason, we need to create a new feature for admin portal
and move it to there.

On Mon, Sep 19, 2016 at 8:59 PM, Sumedha Kodithuwakku <sumed...@wso2.com>
wrote:

> Hi Lakmali,
>
> Thanks. Any particular reason for keeping it under store feature.?
>
> Thanks
> SumedhaS
>
>
> On Monday, 19 September 2016, Lakmali Baminiwatta <lakm...@wso2.com>
> wrote:
>
>> Hi Sumedha,
>>
>> Find the source location of APIM 2.0.0 admin app from [1]
>>
>> [1] https://github.com/wso2/carbon-apimgt/tree/v6.0.4/featur
>> es/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/admin
>>
>> Thanks,
>> Lakmali
>>
>> On 19 September 2016 at 18:43, Sumedha Kodithuwakku <sumed...@wso2.com>
>> wrote:
>>
>>> Hi Devs,
>>>
>>> $subject.? In product-apim repo there is a jaggery app called
>>> admin-dashboard-web [1], but it is different from the app found in the APIM
>>> 2.0.0 released pack.
>>>
>>> Appriciate if you can share the location of the source code of the admin
>>> dashboard.
>>>
>>> [1] https://github.com/wso2/product-apim/tree/master/modules
>>> /jaggery-apps/admin-dashboard-web/
>>>
>>> Thanks
>>> SumedhaS
>>>
>>> --
>>> *Sumedha Kodithuwakku*
>>> Senior Software Engineer
>>> 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
>>>
>>>
>>
>>
>> --
>> Lakmali Baminiwatta
>> Associate Technical Lead
>> WSO2, Inc.: http://wso2.com
>> lean.enterprise.middleware
>> mobile:  +94 71 2335936
>> blog : lakmali.com
>>
>>
>
> --
> *Sumedha Kodithuwakku*
> Senior Software Engineer
> 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
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Exceptions while starting up WSO2 AM 2.0.0

2016-09-19 Thread Abimaran Kugathasan
:36,758]  INFO - BinaryDataReceiverServiceComponent
>> Binary Data Receiver server shutting down...
>> [2016-09-19 12:47:36,758]  INFO - BinaryDataReceiver Stopping Binary
>> Server..
>> [2016-09-19 12:47:44,309]  WARN - KeyTemplateRetriever Failed retrieving
>> throttling data from remote endpoint: Connection refused. Retrying after 15
>> seconds...
>> [2016-09-19 12:47:44,309]  WARN - BlockingConditionRetriever Failed
>> retrieving Blocking Conditions from remote endpoint: Connection refused.
>> Retrying after 15 seconds...
>> [2016-09-19 12:47:45,472]  WARN - SynapseAppDeployerDSComponent Waiting
>> for required OSGi services: org.wso2.carbon.message.proces
>> sor.service.MessageProcessorDeployerService,org.wso2.carbon.
>> message.store.service.MessageStoreDeployerService,org.wso2.
>> carbon.proxyadmin.service.ProxyDeployerService,
>> [2016-09-19 12:47:46,760]  INFO - ThriftDataReceiverDS Thrift server
>> shutting down...
>> [2016-09-19 12:47:56,768]  INFO - EventReceiverDeployer Event Receiver
>> undeployed successfully: throttleWSO2EventReceiver.xml
>> [2016-09-19 12:47:56,769]  INFO - EventReceiverDeployer Event receiver
>> deployment held back and in inactive state: throttleWSO2EventReceiver.xml,
>> waiting for Input Event Adapter dependency: wso2event
>> [2016-09-19 12:47:56,769]  INFO - CarbonEventReceiverService Event
>> receiver : throttleWSO2EventReceiver in inactive state because dependency
>> could not be found: wso2event
>> [2016-09-19 12:47:59,312] ERROR - KeyTemplateRetriever Exception when
>> retrieving throttling data from remote endpoint
>> java.net.ConnectException: Connection refused
>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSock
>> etImpl.java:339)
>> at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPl
>> ainSocketImpl.java:200)
>> at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocket
>> Impl.java:182)
>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>> at java.net.Socket.connect(Socket.java:579)
>> at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625)
>> at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLS
>> ocketFactory.java:522)
>> at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLS
>> ocketFactory.java:401)
>> at org.apache.http.impl.conn.DefaultClientConnectionOperator.
>> openConnection(DefaultClientConnectionOperator.java:178)
>> at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoo
>> lEntry.java:144)
>> at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(Abs
>> tractPooledConnAdapter.java:131)
>> at org.apache.http.impl.client.DefaultRequestDirector.tryConnec
>> t(DefaultRequestDirector.java:610)
>> at org.apache.http.impl.client.DefaultRequestDirector.execute(D
>> efaultRequestDirector.java:445)
>> at org.apache.http.impl.client.AbstractHttpClient.doExecute(Abs
>> tractHttpClient.java:863)
>> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos
>> eableHttpClient.java:82)
>> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos
>> eableHttpClient.java:106)
>> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos
>> eableHttpClient.java:57)
>> at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRe
>> triever.retrieveKeyTemplateData(KeyTemplateRetriever.java:83)
>> at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRe
>> triever.loadKeyTemplatesFromWebService(KeyTemplateRetriever.java:111)
>> at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRe
>> triever.run(KeyTemplateRetriever.java:54)
>> at java.util.TimerThread.mainLoop(Timer.java:555)
>> at java.util.TimerThread.run(Timer.java:505)
>> Exception in thread "Timer-5" [2016-09-19 12:47:59,312] ERROR -
>> BlockingConditionRetriever Exception when retrieving Blocking Conditions
>> from remote endpoint
>> java.net.ConnectException: Connection refused
>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSock
>> etImpl.java:339)
>> at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPl
>> ainSocketImpl.java:200)
>> at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocket
>> Impl.java:182)
>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>> at java.net.Socket.connect(Socket.java:579)
>> at sun.security.ss

Re: [Dev] Query about the SSO in the WSO

2016-09-18 Thread Abimaran Kugathasan
Hi Wenxing,

You can use the Java Documentation for carbon kernel 4.4.6 or 4.4.7 [1],
since there won't be any API changes from 4.4.1 to 4.4.6 or 4.4.7. We don't
have Java Documentation for 4.4.1 at the moment.

[1] :
http://product-dist.wso2.com/javadocs/carbon/4.4.6/user-mgt/index.html?overview-summary.html

On Mon, Sep 19, 2016 at 10:56 AM, wenxzhen <wenxing.zh...@qq.com> wrote:

> Hi Thusitha,
>
> I can't open the link: http://product-dist.wso2.com/javadocs/carbon/4.4.
> 1/user-mgt/index.html?overview-summary.html.
>
> Is there any API docs for Carbon 4.4.1?
>
> Thanks, Wenxing
>
> -- Original --
> *From: * "Thusitha Thilina Dayaratne";<thusit...@wso2.com>;
> *Send time:* Monday, Sep 19, 2016 1:48 PM
> *To:* "wenxzhen"<wenxing.zh...@qq.com>;
> *Cc:* "dev"<dev@wso2.org>;
> *Subject: * Re: [Dev] Query about the SSO in the WSO
>
> Hi Wenxing,
>
> BTW: I found we have API Java docs for Carbon 4.4.6/4.4.7 (
>> http://product-dist.wso2.com/javadocs/carbon/4.4.6/user-mgt
>> /index.html?overview-summary.html), But I wan't able to find the ones
>> for the older version. Any hints?
>
> WSO2 AS 5.3.0 uses carbon kernel 4.4.1. But you won't be able to find
> the javadocs for the particular carbon kernel version. But since these are
> patch releases there aren't any API changes in the existing API. Therefore
> ideally you should be able to refer the latest docs without any issue.
> Please do let us know if you find any issues with that.
>
> Thanks
> Thusitha
>
> On Mon, Sep 19, 2016 at 10:36 AM, wenxzhen <wenxing.zh...@qq.com> wrote:
>
>> Thanks to Malith. Will check further what the application have to provide
>> for the SSO based authentication.
>>
>> BTW: I found we have API Java docs for Carbon 4.4.6/4.4.7 (
>> http://product-dist.wso2.com/javadocs/carbon/4.4.6/user-mgt
>> /index.html?overview-summary.html), But I wan't able to find the ones
>> for the older version. Any hints?
>>
>> Kind Regards, Wenxing
>>
>> -- Original --
>> *From: * "Malith Munasinghe";<mali...@wso2.com>;
>> *Send time:* Monday, Sep 19, 2016 12:46 PM
>> *To:* "wenxzhen"<wenxing.zh...@qq.com>;
>> *Cc:* "dev"<dev@wso2.org>;
>> *Subject: * Re: [Dev] Query about the SSO in the WSO
>>
>> Hi Wenxing,
>>
>> In order to provide SSO based authentication for your applications. You
>> can use SAMLSSOValve in WSO2 AS to integrate with WSO2 IS as in the
>> documentation provided in [1]
>>
>> [1] https://docs.wso2.com/display/AS530/Using+SSO+with+Web+Applications
>>
>> Regards,
>> Malith
>>
>> On Mon, Sep 19, 2016 at 7:13 AM, wenxzhen <wenxing.zh...@qq.com> wrote:
>>
>>> Appreciated if anyone can shed some light on my question.
>>>
>>> Thanks,
>>> Wenxing
>>>
>>>
>>> -- Original --
>>> *From: * "wenxzhen";<wenxing.zh...@qq.com>;
>>> *Date: * Sep 18, 2016
>>> *To: * "dev"<dev@wso2.org>;
>>> *Subject: * [Dev] Query about the SSO in the WSO
>>>
>>> Dear gurus,
>>>
>>> Would like to know more details on the Single Sign On implemented in the
>>> WSO2? How it's being implemented?
>>>
>>> And if I wanna use this feature with the example architecture diagram
>>> below, what I have to do?
>>>
>>>
>>> Thanks for the advice
>>> Regards, Wenxing
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Malith Munasinghe | Software Engineer
>> M: +94 (71) 9401122
>> E: mali...@wso2.com
>> W: http://wso2.com
>> <http://wso2.com/signature>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
> <http://wso2.com/signature>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>


4B840FE0@A1E17921.0777DF57
Description: Binary data
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] WSO2 API Manager 2.0.0 Released!

2016-09-14 Thread Abimaran Kugathasan
Hi Samisa,

API Manager 2.0 included some feature from Siddhi, Message Broker for newly
introduced Traffic Manager profile and also, we had number of webapps
deployed in 2.0 such as
Apache Shindig, also, each webapps contains their own libraries too.

I have created a JIRA [1] to track this, we will consider the size of the
pack in future.

[1] : https://wso2.org/jira/browse/APIMANAGER-5383

On Wed, Sep 14, 2016 at 8:44 AM, Samisa Abeysinghe <sam...@wso2.com> wrote:

> Why is the pack 419.7MB?
>
> Thanks,
> Samisa...
>
>
> Samisa Abeysinghe
>
> Vice President Delivery
>
> WSO2 Inc.
> http://wso2.com
>
>
> On Fri, Jul 29, 2016 at 4:14 PM, Abimaran Kugathasan <abima...@wso2.com>
> wrote:
>
>> The WSO2 API Manager 2.0.0 Released!
>>
>> The WSO2 API Manager team is pleased to announce the release of version
>> 2.0.0 of the Open Source API Manager.
>>
>> WSO2 API Manager is a platform for creating, managing, consuming and
>> monitoring APIs. It employs proven SOA best practices to solve a wide range
>> of API management challenges such as API provisioning, API governance, API
>> security and API monitoring. It combines some of the most powerful and
>> mature components of the WSO2's state-of-the-art Carbon platform to deliver
>> a smooth and end-to-end API management experience while catering to both
>> API publisher and API consumer requirements.
>>
>> WSO2 API Manager is comprised of several modules.
>>
>>- API Provider: Define new APIs and manage them
>>- API Store: Browse published APIs and subscribe to them
>>- API Gateway: The underlying API runtime based on WSO2 ESB
>>- API Key Manager: Performs Key Generation and Key Validation
>>functionalities
>>- API Traffic Manager: Performs Rate Limiting of API Requests
>>
>> WSO2 API Manager is developed on top of the revolutionary WSO2 Carbon
>> platform <http://wso2.org/projects/carbon> (Middleware a' la carte), an
>> OSGi based framework that provides seamless modularity to your SOA via
>> componentization. This release also contains many new features and a range
>> of optional components (add-ons) that can be installed to customize the
>> behavior of the API Manager. Further, any existing features of the product
>> which are not required in your environment can be easily removed using the
>> underlying provisioning framework of Carbon. In brief, WSO2 API Manager can
>> be fully customized and tailored to meet your exact API management needs.
>>
>> For more information on WSO2 API Manager please visit
>> http://wso2.com/products/api-manager. Also take a look at the online
>> product documentation
>> <https://docs.wso2.com/display/AM200/WSO2+API+Manager+Documentation>.
>> How to Run
>>
>>1. Extract the downloaded zip
>>2. Go to the bin directory in the extracted folder
>>3. Run the wso2server.sh or wso2server.bat as appropriate
>>4. Launch a web browser and navigate to https://localhost:9443/publ
>>isher to access the API provider webapp
>>5. Navigate to https://localhost:9443/store to access the API store
>>6. Navigate to https://localhost:9443/admin to access Admin Portal
>>7. Use "admin", "admin" as the username and password to login as an
>>admin
>>
>> New Features in 2.0.0
>>
>>- [APIMANAGER-3314 <https://wso2.org/jira/browse/APIMANAGER-3314>] -
>>Alert configurations in AM using CEP
>>- [APIMANAGER-4605 <https://wso2.org/jira/browse/APIMANAGER-4605>] -
>>Notify subscribers of new API Versions
>>- [APIMANAGER-4606 <https://wso2.org/jira/browse/APIMANAGER-4606>] -
>>API Manager latency Breakdown Graph On API
>>- [APIMANAGER-4629 <https://wso2.org/jira/browse/APIMANAGER-4629>] -
>>Use the WSO2 Bootstrap theme for the Publisher and Store
>>- [APIMANAGER-4660 <https://wso2.org/jira/browse/APIMANAGER-4660>] -
>>Advanced Throttling Implementation based on CEP
>>- [APIMANAGER-5112 <https://wso2.org/jira/browse/APIMANAGER-5112>] -
>>New REST API for Admin-Dashboard Related functionality including new
>>Throttling Implementation
>>- [APIMANAGER-5113 <https://wso2.org/jira/browse/APIMANAGER-5113>] -
>>New operations for Publisher CXF REST API related to thumbnails and
>>sequences
>>- [APIMANAGER-5260 <https://wso2.org/jira/browse/APIMANAGER-5260>] -
>>Real Time Analytics (Alerts) on API Manager
>>- [APIMANAGER-5261 <https://wso2.org/jira/browse/APIMANAGER-5261>] -
&g

Re: [Dev] [VOTE] Release WSO2 Identity Server 5.2.0- RC1

2016-09-12 Thread Abimaran Kugathasan
Tested installing APIM Key Manager Feature, have to select 'Api management
Key Manager 6.0.4' feature only from listed feature under 'API Key Manager
6.0.4' category

[+] Stable - go ahead and release

On Mon, Sep 12, 2016 at 3:47 PM, Farasath Ahamed <farasa...@wso2.com> wrote:

> Tested the following scenarios,
>
>1.  Access token generation using password, client-credentials,
>implicit and authorization grant types.
>2. OIDC token generation for above grant types.
>3. SAML SSO login with the local basic-auth authenticator.
>4. SAML SSO with facebook federated authenticator.
>
>
> [+] Stable - go ahead and release
>
>
> Thanks,
> Farasath Ahamed
> Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 <https://twitter.com/farazath619>
> <http://wso2.com/signature>
>
>
>
> On Sat, Sep 10, 2016 at 7:48 AM, Kasun Bandara <kas...@wso2.com> wrote:
>
>> Hi All,
>>
>> This is the 1st Release Candidate of WSO2 Identity Server 5.2.0
>>
>> Please download, test the product and vote. Vote will be open for 72
>> hours or as needed.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/issues/?filter=13329
>>
>> Source and distribution
>>
>> Run-time   : https://github.com/wso2/produc
>> t-is/releases/tag/v5.2.0-rc1
>> Analytics   : https://github.com/wso2/analyt
>> ics-is/releases/tag/v5.2.0-rc1
>>
>> Please vote as follows.
>> [+] Stable - go ahead and release
>> [-] Broken - do not release (explain why)
>>
>> Thanks,
>> - WSO2 Identity Server Team -
>>
>> --
>> Kasun Bandara
>> *Software Engineer*
>> Mobile : +94 (0) 718 338 360
>> <%2B94%20%280%29%20773%20451194>
>> kas...@wso2.com <thili...@wso2.com>
>>
>> ___
>> 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
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AM 2.0] Hostname verification issue when calling key validation service

2016-09-06 Thread Abimaran Kugathasan
Hi Supun,

You need to create the certificate for that particular hostname. Hostname
is strictly verified in products which are based on carbon 4.4.x.  There
aren't any way to disable this hostname verification.

On Tue, Sep 6, 2016 at 12:01 PM, Supun Malinga <sup...@wso2.com> wrote:

> Also, in gateway axis2.xml transport Sender, hostname verifier is
> configured..
>
> AllowAll
>
>
> On Tue, Sep 6, 2016 at 11:57 AM, Supun Malinga <sup...@wso2.com> wrote:
>
>> Hi,
>>
>> When gateway is validating token with keymanager, getting the following
>> error at gateway worker log,
>>
>> [2016-09-06 06:09:22,013]  INFO - HTTPSender Unable to sendViaPost to url[
>> https://keymanager:9443/services/APIKeyValidationService]
>> javax.net.ssl.SSLException: hostname in certificate didn't match:
>>  != 
>> 
>>
>> Looks like keymanager is rejecting the requests.
>> How do I allow all hostnames here?.
>>
>> In keymanager wso2server.sh I see following enabled already,
>>
>> -Dorg.opensaml.httpclient.https.disableHostnameVerification=true \
>> -Dorg.wso2.ignoreHostnameVerification=true \
>>
>> thanks,
>> --
>> Supun Malinga
>>
>
>
>
> --
> Supun Malinga
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error in AM 2.0 gateway

2016-08-25 Thread Abimaran Kugathasan
ionsFromWebService(BlockingConditionRetriever.java:105)
>> gateway-worker | at org.wso2.carbon.apimgt.gateway
>> .throttling.util.BlockingConditionRetriever.run(BlockingCond
>> itionRetriever.java:51)
>> gateway-worker | at java.util.TimerThread.mainLoop(Timer.java:555)
>> gateway-worker | at java.util.TimerThread.run(Timer.java:505)
>> gateway-worker | Caused by: java.lang.IllegalStateException:
>> Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
>> gateway-worker | at com.google.gson.stream.JsonRea
>> der.beginObject(JsonReader.java:388)
>> gateway-worker | at com.google.gson.internal.bind.
>> ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdap
>> terFactory.java:210)
>> gateway-worker | ... 9 more
>>
>> thanks,
>> --
>> Supun Malinga
>>
>
>
>
> --
> Supun Malinga
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Installing APIM features to IS 5.2.0 beta2 pack says No features to be installed

2016-08-25 Thread Abimaran Kugathasan
Hi Jayanga,

I have reordered the features based on alphabet, also, fixed the merge
conflicts.

Can you please merge it soon?

PS : Why can't we merge the PRs based on when they sent? I had nearly more
than 70 merge conflicts to resolve since PR 50 was merged before PR 49
merged.

On Thu, Aug 25, 2016 at 11:23 AM, Jayanga Dissanayake <jaya...@wso2.com>
wrote:

> Hi Abimaran,
>
> In your PR, following entries are in wrong places.
> 1. org.wso2.carbon.apimgt:org.wso2.apimgt.publisher.category.feature
> 2. org.wso2.carbon.apimgt:org.wso2.apimgt.store.category.feature
>
> Please correct the entries and resend the PR.
>
> Thanks,
> Jayanga.
>
> *Jayanga Dissanayake*
> Associate Technical Lead
> WSO2 Inc. - http://wso2.com/
> lean . enterprise . middleware
> email: jaya...@wso2.com
> mobile: +94772207259
> <http://wso2.com/signature>
>
> On Thu, Aug 25, 2016 at 10:38 AM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> [Adding Jayanga]
>>
>> Hi Jayanga,
>>
>> Can you look into this?
>>
>> Regards,
>> Nira
>>
>> On Thu, Aug 25, 2016 at 10:35 AM, Abimaran Kugathasan <abima...@wso2.com>
>> wrote:
>>
>>> Hi Kavitha,
>>>
>>> API Key Manager 5.0.3 isn't compatible with IS 5.2.0. I have sent PR [1]
>>> with relevant features of APIM 2.0 which yet to be merged.
>>>
>>> @Niranjan,
>>>
>>> Can you please merge it soon possible?
>>>
>>> [1] : https://github.com/wso2/carbon-feature-repository/pull/49
>>>
>>> On Thu, Aug 25, 2016 at 10:24 AM, Kavitha Subramaniyam <kavi...@wso2.com
>>> > wrote:
>>>
>>>> Hi Harsha/ Darshana,
>>>>
>>>> The reason I tried 5.0.3 feature is the given repository[1] listed only
>>>> the 'API Key Manager 5.0.3' feature after added to IS server. Do I need to
>>>> get the repo from different location?
>>>>
>>>> [1] http://product-dist.wso2.com/p2/carbon/releases/wilkes/
>>>>
>>>> Thanks,
>>>>
>>>> On Thu, Aug 25, 2016 at 7:21 AM, Darshana Gunawardana <
>>>> darsh...@wso2.com> wrote:
>>>>
>>>>> Hi Harsha,
>>>>>
>>>>> Sorry, my understanding was APIM 2.0.0 KM version is 5.0.3. As per
>>>>> your above reply it seems to be 6.0.4.
>>>>>
>>>>> IS 5.2.0 should compatible with APIM 2.0.0 for KM installation. So we
>>>>> should try KM 6.0.4 feature installation in IS 5.2.0. @Kavitha : Can
>>>>> you please try that.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> On Wed, Aug 24, 2016 at 11:47 PM, Harsha Kumara <hars...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Darshana,
>>>>>>
>>>>>> It was due to version ranges of dependent feature that we specified
>>>>>> in the key manager features doesn't match with feature version in IS
>>>>>> 5.2.0-beta. We also haven't had a deep look on installing 5.0.3 version 
>>>>>> on
>>>>>> IS 5.2.0 releases.
>>>>>>
>>>>>> @kavitha Any reason we going to try 5.0.3 features with IS 5.2.0 beta
>>>>>> instead of trying latest APIM feature versions which is 6.0.4. During the
>>>>>> latest release we installed 6.0.4 features on IS 5.2.0 release.
>>>>>>
>>>>>> Thanks,
>>>>>> Harsha
>>>>>>
>>>>>> On Wed, Aug 24, 2016 at 11:10 PM, Darshana Gunawardana <
>>>>>> darsh...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Harsha,
>>>>>>>
>>>>>>> Can you bit explain what was the issue?
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> On Wed, Aug 24, 2016 at 11:03 PM, Harsha Kumara <hars...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi Kavitha,
>>>>>>>>
>>>>>>>> We won't be able to install 5.0.3 features on top of IS 5.2.0-beta
>>>>>>>> due to dependency issues.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Harsha
>>>>>>>>
>>>>>>>> On Wed, Aug 24, 2016 at 5:52 PM, Kavitha Subramaniyam <
>>>>>>>> kavi...@wso2.com> wr

Re: [Dev] Installing APIM features to IS 5.2.0 beta2 pack says No features to be installed

2016-08-24 Thread Abimaran Kugathasan
>>>>> *Software Engineer -QA*
>>>>>>> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
>>>>>>> kavi...@wso2.com <thili...@wso2.com>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Kavitha.S
>>>>>> *Software Engineer -QA*
>>>>>> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
>>>>>> kavi...@wso2.com <thili...@wso2.com>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Harsha Kumara
>>>>> Software Engineer, WSO2 Inc.
>>>>> Mobile: +94775505618
>>>>> Blog:harshcreationz.blogspot.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>>
>>>>
>>>> *Darshana Gunawardana*Associate Technical Lead
>>>> WSO2 Inc.; http://wso2.com
>>>>
>>>> *E-mail: darsh...@wso2.com <darsh...@wso2.com>*
>>>> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>>>>
>>>
>>>
>>>
>>> --
>>> Harsha Kumara
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94775505618
>>> Blog:harshcreationz.blogspot.com
>>>
>>
>>
>>
>> --
>> Regards,
>>
>>
>> *Darshana Gunawardana*Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>>
>> *E-mail: darsh...@wso2.com <darsh...@wso2.com>*
>> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>>
>
>
>
> --
> Kavitha.S
> *Software Engineer -QA*
> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
> kavi...@wso2.com <thili...@wso2.com>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Why some of the features aren't shown in the Available Feature UI

2016-08-18 Thread Abimaran Kugathasan
Thanks for the input, Yes the feature was hidden from UI.

On Tue, Aug 16, 2016 at 6:21 PM, Niranjan Karunanandham <niran...@wso2.com>
wrote:

> Hi Abimaran,
>
> As mentioned by Aruna and KasunG, this is based on the value defined in
> the feature pom under adviceFile. In the Feature Management UI when the
> "Group by" is unticked, features which have "org.eclipse.
> equinox.p2.type.group:false" within "adviceFile" in the
> pom.xml are not displayed. This is used when defining the features by the
> corresponding. Here there can be minor features and all these features can
> be packed into feature F1 which the team (who created the features) wants
> other to use. Therefore using this property Definition, the team can hide
> these features from the UI.
>
> Regards,
> Nira
>
> On Tue, Aug 16, 2016 at 5:45 PM, Aruna Karunarathna <sujithu...@gmail.com>
> wrote:
>
>>
>>
>> On Tue, Aug 16, 2016 at 5:35 PM, Abimaran Kugathasan <abima...@wso2.com>
>> wrote:
>>
>>> Hi Dev,
>>>
>>> When I tried to install features on latest Identity Server 5.2.0
>>> SNAPHOT, I could observe that, the features listed under a category are not
>>> shown in the list of feature when I don't select either of below checkbox.
>>>Show only the latest versions
>>>Group features by category
>>>
>>> For example, there is a feature called  "Api management Key Manager"
>>> version 5.0.3 and it's listed under API Key Manager/API Key Manager 5.0.3.
>>> But, if you use Find Feature without selecting above two check boxes, You
>>> won't see this feature anyware in the list.
>>>
>>> Why is that? This happens only for some features.
>>>
>> AFAIR check the adviceFile of the relevant feature.
>>
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>> Senior Software Engineer - API Technologies
>>>
>>> Email : abima...@wso2.com
>>> Mobile : +94 773922820
>>>
>>> <http://stackoverflow.com/users/515034>
>>> <http://lk.linkedin.com/in/abimaran>
>>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>>> <https://twitter.com/abimaran>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> -
>>
>
>
>
> --
>
>
> *Niranjan Karunanandham*
> Associate Technical Lead - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Why some of the features aren't shown in the Available Feature UI

2016-08-16 Thread Abimaran Kugathasan
Hi Dev,

When I tried to install features on latest Identity Server 5.2.0 SNAPHOT, I
could observe that, the features listed under a category are not shown in
the list of feature when I don't select either of below checkbox.
   Show only the latest versions
   Group features by category

For example, there is a feature called  "Api management Key Manager"
version 5.0.3 and it's listed under API Key Manager/API Key Manager 5.0.3.
But, if you use Find Feature without selecting above two check boxes, You
won't see this feature anyware in the list.

Why is that? This happens only for some features.

-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Architecture] WSO2 API Manager 2.0.0 Released!

2016-07-29 Thread Abimaran Kugathasan
ate and retire.
  - Publish both production and sandbox keys for APIs to enable easy
  developer testing.
  - Publish APIs to partner networks such as ProgrammableWeb (Available
  soon in future version).
  - Powered by WSO2 Governance Registry.
   - Monitor API Usage and Performance:
  - All API usage published to pluggable analytics framework.
  - Out of the box support for WSO2 Business Activity Monitor and
  Google Analytics.
  - View metrics by user, API and more.
  - Customized reporting via plugging reporting engines.
  - Monitor SLA compliance.
  - Powered by WSO2 Business Activity Monitor.
   - Pluggable, Extensible and Themeable:
  - All components are highly customizable thru styling, theming and
  open source code.
  - Storefront implemented with Jaggery (jaggeryjs.org) for easy
  customization.
  - Pluggable to third party analytics systems and billing systems
  (Available soon in future version).
  - Pluggable to existing user stores including via JDBC and LDAP.
  - Components usable separately - storefront can be used to front APIs
  gatewayed via third party gateways such as Intel Expressway
Service Gateway.
  - Support for Single Sign On (SSO) using SAML 2.0 for easy
  integration with existing web apps
   - Easily Deployable in Enterprise Setting:
  - Role based access control for managing users and their
  authorization levels.
  - Store front can be deployed in DMZ for external access with
  Publisher inside the firewall for private control.
  - Different user stores for developer focused store-front and
  internal operations in publisher.
  - Integrates with enterprise identity systems including LDAP and
  Microsoft Active Directory.
  - Gateway can be deployed in DMZ with controlled access to WSO2
  Identity Server (for authentication/authorization) and
governance database
  behind firewall.
   - Support for creating multi-tenanted APIs
  - Run a single instance and provide API Management to multiple
  customers
  - Share APIs between different departments in a large enterprise
   - Publishing and Governing API Use
  - Document an API using Swagger
  - Restrict API Access tokens to domains/IPs
  - Ability to block a subscription and restricting a complete
  application
  - Ability to revoke access tokens
  - Separate validity period configuration for Application Access Token
  - OAuth2 Authorization Code Grant Type Support
  - Configuring execution point of mediation extensions
   - Monitor API Usage and Performance
  - Improved dashboard for monitoring usage statistics (Filtering data
  for a date range, More visually appealing widgets)

Known Issues

All the open issues pertaining to WSO2 API Manager are reported at the
following location:

   - Known Issues <https://wso2.org/jira/issues/?filter=13133>

How You Can ContributeMailing Lists

Join our mailing list and correspond with the developers directly.

   - Developer List : dev@wso2.org | Subscribe
   <dev-requ...@wso2.org?subject=subscribe> | Mail Archive
   <http://wso2.org/mailarchive/dev/>
   - User List : u...@wso2.org | Subscribe
   <user-requ...@wso2.org?subject=subscribe> | Mail Archive
   <http://wso2.org/mailarchive/user/>

Reporting Issues

We encourage you to report issues, documentation faults and feature
requests regarding WSO2 API Manager through the public API Manager JIRA
<https://wso2.org/jira/browse/APIMANAGER>. You can use the Carbon JIRA
<http://www.wso2.org/jira/browse/CARBON> to report any issues related to
the Carbon base framework or associated Carbon components.
Support

We are committed to ensuring that your enterprise middleware deployment is
completely supported from evaluation to production. Our unique approach
ensures that all support leverages our open development methodology and is
provided by the very same engineers who build the technology.

For more details and to take advantage of this unique opportunity please
visit http://wso2.com/support.

To learn more about WSO2 API Manager and WSO2 support offerings please visit
http://wso2.com/products/api-manager.

*-- The WSO2 API Manager Team --*

-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release WSO2 API Manager 2.0.0 RC5

2016-07-28 Thread Abimaran Kugathasan
Tested Dynamic Endpoint, API Subscription/blocking/resubscription.

[+] Stable - go ahead and release.

On Thu, Jul 28, 2016 at 2:58 PM, Chamin Dias <cham...@wso2.com> wrote:

> Tested funcions in Store and self registration.
>
> [+] Stable - go ahead and release.
>
> Thanks
>
> On Thu, Jul 28, 2016 at 2:56 PM, Malintha Amarasinghe <malint...@wso2.com>
> wrote:
>
>> Tested in both ST and Tenant mode:
>> 1. Basic APIM functionality
>> 2. SSO with and without reverse proxy
>> 3. Tested Store/Publisher/Admin CXF Rest APIs
>> 4. response caching
>>
>> [+] Stable : go ahead and release
>>
>>
>> On Thu, Jul 28, 2016 at 2:42 PM, Nirmal Fernando <nir...@wso2.com> wrote:
>>
>>> Tested API analytics
>>> [+] Stable - go ahead and release.
>>>
>>> On Thu, Jul 28, 2016 at 2:02 AM, Abimaran Kugathasan <abima...@wso2.com>
>>> wrote:
>>>
>>>> *WSO2 API Manager 2.0.0-RC5 Released*
>>>>
>>>> This is the 5th Release Candidate of the WSO2 API Manager 2.0.0
>>>>
>>>> Source & binary distribution files of API Manager 2.0.0-RC5 :
>>>>
>>>>  Runtime : 
>>>> *https://github.com/wso2/product-apim/releases/tag/v2.0.0-rc5
>>>> <https://github.com/wso2/product-apim/releases/tag/v2.0.0-rc5>*
>>>>  Analytics : 
>>>> *https://github.com/wso2/analytics-apim/releases/tag/v2.0.0-rc5
>>>> <https://github.com/wso2/analytics-apim/releases/tag/v2.0.0-rc5>*
>>>>
>>>> Please download, test the product and vote. Vote will be open for 72
>>>> hours or as needed.
>>>> Refer to github readme for guides.
>>>>
>>>> Please vote as follows.
>>>> [+] Stable - go ahead and release
>>>> [-]  Broken - do not release (please explain why)
>>>>
>>>> --
>>>> Thanks
>>>> Abimaran Kugathasan
>>>> Senior Software Engineer - API Technologies
>>>>
>>>> Email : abima...@wso2.com
>>>> Mobile : +94 773922820
>>>>
>>>> <http://stackoverflow.com/users/515034>
>>>> <http://lk.linkedin.com/in/abimaran>
>>>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>>>> <https://twitter.com/abimaran>
>>>>
>>>>
>>>> ___
>>>> Architecture mailing list
>>>> architect...@wso2.org
>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Team Lead - WSO2 Machine Learner
>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Malintha Amarasinghe
>> Software Engineer
>> *WSO2, Inc. - lean | enterprise | middleware*
>> http://wso2.com/
>>
>> Mobile : +94 712383306
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chamin Dias
> *Software Engineer*
> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
> Email : cham...@wso2.com
> Blog : https://chamindias.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 API Manager 2.0.0 RC5

2016-07-27 Thread Abimaran Kugathasan
*WSO2 API Manager 2.0.0-RC5 Released*

This is the 5th Release Candidate of the WSO2 API Manager 2.0.0

Source & binary distribution files of API Manager 2.0.0-RC5 :

 Runtime :
*https://github.com/wso2/product-apim/releases/tag/v2.0.0-rc5
<https://github.com/wso2/product-apim/releases/tag/v2.0.0-rc5>*
 Analytics :
*https://github.com/wso2/analytics-apim/releases/tag/v2.0.0-rc5
<https://github.com/wso2/analytics-apim/releases/tag/v2.0.0-rc5>*

Please download, test the product and vote. Vote will be open for 72 hours
or as needed.
Refer to github readme for guides.

Please vote as follows.
[+] Stable - go ahead and release
[-]  Broken - do not release (please explain why)

-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release WSO2 API Manager 2.0.0 RC4

2016-07-22 Thread Abimaran Kugathasan
Tested Dynamic Endpoint, API Subscription/blocking/resubscription.

[+] Stable - go ahead and release

On Fri, Jul 22, 2016 at 3:10 PM, Malintha Amarasinghe <malint...@wso2.com>
wrote:

> Tested with reverse proxy: basic APIM Publisher/Store/Admin UI
> functionalities and Stats
> Tested Publisher/Store and Admin REST APIs
>
> [+] Stable - go ahead and release
>
> On Fri, Jul 22, 2016 at 2:47 PM, Abimaran Kugathasan <abima...@wso2.com>
> wrote:
>
>> Please find the P2-Repo here [1]
>>
>>
>> [1] :
>> https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/p2-repos/rc4/
>>
>> On Fri, Jul 22, 2016 at 2:41 PM, Lalaji Sureshika <lal...@wso2.com>
>> wrote:
>>
>>> Tested basic APIM flow+token  encryption+ scopes validation+lifecycle
>>> management with multiple api versions in both super tenant and tenant
>>> modes.No issues found.
>>>
>>> [+] Stable - go ahead and release
>>>
>>> On Fri, Jul 22, 2016 at 2:29 PM, Tharindu Dharmarathna <
>>> tharin...@wso2.com> wrote:
>>>
>>>> Tested Distributed Setup with following.
>>>>
>>>> 1. Throttling
>>>> 2. Statistics
>>>>
>>>> [+] Stable - go ahead and release
>>>>
>>>> Thanks
>>>>
>>>>
>>>> On Fri, Jul 22, 2016 at 2:00 PM, Chamin Dias <cham...@wso2.com> wrote:
>>>>
>>>>> Tested the workflow extensions with WSO2 BPS for super tenant and
>>>>> tenant. Works fine.
>>>>>
>>>>> [+] Stable - go ahead and release
>>>>>
>>>>> Thanks.
>>>>>
>>>>> On Fri, Jul 22, 2016 at 1:41 PM, Uvindra Dias Jayasinha <
>>>>> uvin...@wso2.com> wrote:
>>>>>
>>>>>> Tested below with secure vault with custom key store
>>>>>>
>>>>>> 1. API publication and invocation tenant and super tenant
>>>>>> 2. Stats tenant and super tenant(Store and Publisher)
>>>>>> 3. Log Analyzer tenant and super tenant
>>>>>>
>>>>>> No issues found
>>>>>>
>>>>>> [+] Stable - go ahead and release.
>>>>>>
>>>>>>
>>>>>> On 22 July 2016 at 12:20, Roshan Wijesena <ros...@wso2.com> wrote:
>>>>>>
>>>>>>> Tested below with DB2 and SQL server 2008.
>>>>>>>
>>>>>>> * Basic APIM functionality.
>>>>>>> * Alert subscriptions.
>>>>>>> * Log analyzer in a multi-tenant environment.
>>>>>>>
>>>>>>> No issues found
>>>>>>>
>>>>>>> [+] Stable - go ahead and release.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Jul 22, 2016 at 11:28 AM, Rukshan Premathunga <
>>>>>>> ruks...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Tested analytics and smoke tested APIM on db2, mssql, mysql,
>>>>>>>> mysql5.7, oracle, postgre and h2.
>>>>>>>>
>>>>>>>> No issues found.
>>>>>>>>
>>>>>>>> [+] - Stable - go ahead and release
>>>>>>>>
>>>>>>>> Thanks.
>>>>>>>>
>>>>>>>> On Fri, Jul 22, 2016 at 10:48 AM, Thilini Cooray <thili...@wso2.com
>>>>>>>> > wrote:
>>>>>>>>
>>>>>>>>> Tested
>>>>>>>>>
>>>>>>>>>- API import-export
>>>>>>>>>- Store Self Sign-up
>>>>>>>>>- Store search
>>>>>>>>>- Tested main functionalities with MySQL, PostgreSQL and on
>>>>>>>>>Windows
>>>>>>>>>
>>>>>>>>> No issues found.
>>>>>>>>>
>>>>>>>>> [+] - Stable - go ahead and release
>>>>>>>>>
>>>>>>>>> Thanks.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri, Jul 22, 2016 at 1:25 AM, Abimaran Kugathasan <
>>>>>>>>> abima...@wso2.com> wrote:
>>>>>>>>>
>>>>>>>>>> *WSO2 API Ma

Re: [Dev] [Architecture] [VOTE] Release WSO2 API Manager 2.0.0 RC4

2016-07-22 Thread Abimaran Kugathasan
Please find the P2-Repo here [1]


[1] : https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/p2-repos/rc4/

On Fri, Jul 22, 2016 at 2:41 PM, Lalaji Sureshika <lal...@wso2.com> wrote:

> Tested basic APIM flow+token  encryption+ scopes validation+lifecycle
> management with multiple api versions in both super tenant and tenant
> modes.No issues found.
>
> [+] Stable - go ahead and release
>
> On Fri, Jul 22, 2016 at 2:29 PM, Tharindu Dharmarathna <tharin...@wso2.com
> > wrote:
>
>> Tested Distributed Setup with following.
>>
>> 1. Throttling
>> 2. Statistics
>>
>> [+] Stable - go ahead and release
>>
>> Thanks
>>
>>
>> On Fri, Jul 22, 2016 at 2:00 PM, Chamin Dias <cham...@wso2.com> wrote:
>>
>>> Tested the workflow extensions with WSO2 BPS for super tenant and
>>> tenant. Works fine.
>>>
>>> [+] Stable - go ahead and release
>>>
>>> Thanks.
>>>
>>> On Fri, Jul 22, 2016 at 1:41 PM, Uvindra Dias Jayasinha <
>>> uvin...@wso2.com> wrote:
>>>
>>>> Tested below with secure vault with custom key store
>>>>
>>>> 1. API publication and invocation tenant and super tenant
>>>> 2. Stats tenant and super tenant(Store and Publisher)
>>>> 3. Log Analyzer tenant and super tenant
>>>>
>>>> No issues found
>>>>
>>>> [+] Stable - go ahead and release.
>>>>
>>>>
>>>> On 22 July 2016 at 12:20, Roshan Wijesena <ros...@wso2.com> wrote:
>>>>
>>>>> Tested below with DB2 and SQL server 2008.
>>>>>
>>>>> * Basic APIM functionality.
>>>>> * Alert subscriptions.
>>>>> * Log analyzer in a multi-tenant environment.
>>>>>
>>>>> No issues found
>>>>>
>>>>> [+] Stable - go ahead and release.
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Jul 22, 2016 at 11:28 AM, Rukshan Premathunga <
>>>>> ruks...@wso2.com> wrote:
>>>>>
>>>>>> Tested analytics and smoke tested APIM on db2, mssql, mysql,
>>>>>> mysql5.7, oracle, postgre and h2.
>>>>>>
>>>>>> No issues found.
>>>>>>
>>>>>> [+] - Stable - go ahead and release
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> On Fri, Jul 22, 2016 at 10:48 AM, Thilini Cooray <thili...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Tested
>>>>>>>
>>>>>>>- API import-export
>>>>>>>- Store Self Sign-up
>>>>>>>- Store search
>>>>>>>- Tested main functionalities with MySQL, PostgreSQL and on
>>>>>>>Windows
>>>>>>>
>>>>>>> No issues found.
>>>>>>>
>>>>>>> [+] - Stable - go ahead and release
>>>>>>>
>>>>>>> Thanks.
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Jul 22, 2016 at 1:25 AM, Abimaran Kugathasan <
>>>>>>> abima...@wso2.com> wrote:
>>>>>>>
>>>>>>>> *WSO2 API Manager 2.0.0-RC4 Released*
>>>>>>>>
>>>>>>>> This is the 4th Release Candidate of the WSO2 API Manager 2.0.0
>>>>>>>>
>>>>>>>> Source & binary distribution files of API Manager 2.0.0-RC4 :
>>>>>>>>
>>>>>>>>  Runtime :
>>>>>>>> https://github.com/wso2/product-apim/releases/tag/v2.0.0-rc4
>>>>>>>>  Analytics :
>>>>>>>> https://github.com/wso2/analytics-apim/releases/tag/v2.0.0-rc3
>>>>>>>>
>>>>>>>> Please download, test the product and vote. Vote will be open for
>>>>>>>> 72 hours or as needed.
>>>>>>>> Refer to github readme for guides.
>>>>>>>>
>>>>>>>> Please vote as follows.
>>>>>>>> [+] Stable - go ahead and release
>>>>>>>> [-]  Broken - do not release (please explain why)
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Thanks
>>>>>>>&g

[Dev] [VOTE] Release WSO2 API Manager 2.0.0 RC4

2016-07-21 Thread Abimaran Kugathasan
*WSO2 API Manager 2.0.0-RC4 Released*

This is the 4th Release Candidate of the WSO2 API Manager 2.0.0

Source & binary distribution files of API Manager 2.0.0-RC4 :

 Runtime :
https://github.com/wso2/product-apim/releases/tag/v2.0.0-rc4
 Analytics :
https://github.com/wso2/analytics-apim/releases/tag/v2.0.0-rc3

Please download, test the product and vote. Vote will be open for 72 hours
or as needed.
Refer to github readme for guides.

Please vote as follows.
[+] Stable - go ahead and release
[-]  Broken - do not release (please explain why)


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 API Manager 2.0.0 RC3

2016-07-21 Thread Abimaran Kugathasan
Tested Dynamic Endpoint, API Subscription/blocking/resubscription.

[+] Go ahead and release.

On Thu, Jul 21, 2016 at 12:57 PM, Amila De Silva <ami...@wso2.com> wrote:

> Tested integrating a Third Party Key Manager, for both Super Tenant and
> Tenant modes. Tests were carried out by calling the Jaggery APIs. No issues
> were found.
>
> [+] Go ahead and release.
>
> On Thu, Jul 21, 2016 at 12:21 AM, Abimaran Kugathasan <abima...@wso2.com>
> wrote:
>
>>
>> *WSO2 API Manager 2.0.0-RC3 Released*
>>
>> This is the 3rd Release Candidate of the WSO2 API Manager 2.0.0
>>
>> Source & binary distribution files of API Manager 2.0.0-RC3 :
>>
>>  Runtime :
>> https://github.com/wso2/product-apim/releases/tag/v2.0.0-rc3
>>  Analytics :
>> https://github.com/wso2/analytics-apim/releases/tag/v2.0.0-rc3
>>
>> Please download, test the product and vote. Vote will be open for 72
>> hours or as needed.
>> Refer to github readme for guides.
>>
>> Please vote as follows.
>> [+] Stable - go ahead and release
>> [-]  Broken - do not release (please explain why)
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820
>>
>> <http://stackoverflow.com/users/515034>
>> <http://lk.linkedin.com/in/abimaran>
>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>> <https://twitter.com/abimaran>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Amila De Silva*
>
> WSO2 Inc.
> mobile :(+94) 775119302
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release WSO2 API Manager 2.0.0 RC3

2016-07-20 Thread Abimaran Kugathasan
P2-Repo can found from here [1]

[1] : https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/p2-repos/rc3/

On Thu, Jul 21, 2016 at 11:11 AM, Chamalee De Silva <chama...@wso2.com>
wrote:

> + Tested Reverse Proxy as well while having Single Sign On using IS 5.2.0
> beta2 for tenant and super tenant.
>
>
> Thanks,
> Chamalee
>
> On Thu, Jul 21, 2016 at 11:05 AM, Chamalee De Silva <chama...@wso2.com>
> wrote:
>
>> Tested
>>  - basic API Flow
>> - Single Sign On using IS 5.2.0 beta2 for tenant and super tenant.
>>
>>
>> No issues found.
>>
>> [x] - Stable -go ahead and release.
>>
>>
>>
>> On Thu, Jul 21, 2016 at 8:45 AM, Nuwan Dias <nuw...@wso2.com> wrote:
>>
>>> Tested Identity Server as Key Manager using IS 5.2.0 Beta2. Tested the
>>> basic scenarios for tenant and super tenant users. No issues found.
>>>
>>> [x] - Stable - go ahead and release
>>>
>>> Thanks,
>>> NuwanD.
>>>
>>>
>>> On Thu, Jul 21, 2016 at 7:15 AM, Abimaran Kugathasan <abima...@wso2.com>
>>> wrote:
>>>
>>>> It's there in the github release page of both API Manager Runtime and
>>>> Analytics,
>>>>
>>>> On Thu, Jul 21, 2016 at 7:12 AM, Akila Ravihansa Perera <
>>>> raviha...@wso2.com> wrote:
>>>>
>>>>> Hi Abimaran,
>>>>>
>>>>> Shouldn't we include a list of bugs fixed and features added in the
>>>>> release vote? Ideally this should be a JIRA filter link.
>>>>>
>>>>> Thanks.
>>>>>
>>>>> On Thu, Jul 21, 2016 at 12:21 AM, Abimaran Kugathasan <
>>>>> abima...@wso2.com> wrote:
>>>>>
>>>>>>
>>>>>> *WSO2 API Manager 2.0.0-RC3 Released*
>>>>>>
>>>>>> This is the 3rd Release Candidate of the WSO2 API Manager 2.0.0
>>>>>>
>>>>>> Source & binary distribution files of API Manager 2.0.0-RC3 :
>>>>>>
>>>>>>  Runtime :
>>>>>> https://github.com/wso2/product-apim/releases/tag/v2.0.0-rc3
>>>>>>  Analytics :
>>>>>> https://github.com/wso2/analytics-apim/releases/tag/v2.0.0-rc3
>>>>>>
>>>>>> Please download, test the product and vote. Vote will be open for 72
>>>>>> hours or as needed.
>>>>>> Refer to github readme for guides.
>>>>>>
>>>>>> Please vote as follows.
>>>>>> [+] Stable - go ahead and release
>>>>>> [-]  Broken - do not release (please explain why)
>>>>>>
>>>>>> --
>>>>>> Thanks
>>>>>> Abimaran Kugathasan
>>>>>> Senior Software Engineer
>>>>>>
>>>>>> Email : abima...@wso2.com
>>>>>> Mobile : +94 773922820
>>>>>>
>>>>>> <http://stackoverflow.com/users/515034>
>>>>>> <http://lk.linkedin.com/in/abimaran>
>>>>>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>>>>>>   <https://twitter.com/abimaran>
>>>>>>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Akila Ravihansa Perera
>>>>> WSO2 Inc.;  http://wso2.com/
>>>>>
>>>>> Blog: http://ravihansa3000.blogspot.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Thanks
>>>> Abimaran Kugathasan
>>>> Senior Software Engineer
>>>>
>>>> Email : abima...@wso2.com
>>>> Mobile : +94 773922820
>>>>
>>>> <http://stackoverflow.com/users/515034>
>>>> <http://lk.linkedin.com/in/abimaran>
>>>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>>>> <https://twitter.com/abimaran>
>>>>
>>>>
>>>> ___
>>>> Architecture mailing list
>>>> architect...@wso2.org
>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>
>>>>
>>>
>>>
>>> --
>>> Nuwan Dias
>>>
>>> Software Architect - WSO2, Inc. http://wso2.com
>>> email : nuw...@wso2.com
>>> Phone : +94 777 775 729
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Chamalee De Silva*
>> Software Engineer
>> *WS**O2* Inc. :http://wso2.com/
>>
>> Office   :- *+94 11 2145345 <%2B94%2011%202145345>*
>> mobile  :- *+94 7 <%2B94%2077%202782039>1 4315942*
>>
>>
>
>
> --
> Thanks & Regards,
>
> *Chamalee De Silva*
> Software Engineer
> *WS**O2* Inc. :http://wso2.com/
>
> Office   :- *+94 11 2145345 <%2B94%2011%202145345>*
> mobile  :- *+94 7 <%2B94%2077%202782039>1 4315942*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 API Manager 2.0.0 RC3

2016-07-20 Thread Abimaran Kugathasan
It's there in the github release page of both API Manager Runtime and
Analytics,

On Thu, Jul 21, 2016 at 7:12 AM, Akila Ravihansa Perera <raviha...@wso2.com>
wrote:

> Hi Abimaran,
>
> Shouldn't we include a list of bugs fixed and features added in the
> release vote? Ideally this should be a JIRA filter link.
>
> Thanks.
>
> On Thu, Jul 21, 2016 at 12:21 AM, Abimaran Kugathasan <abima...@wso2.com>
> wrote:
>
>>
>> *WSO2 API Manager 2.0.0-RC3 Released*
>>
>> This is the 3rd Release Candidate of the WSO2 API Manager 2.0.0
>>
>> Source & binary distribution files of API Manager 2.0.0-RC3 :
>>
>>  Runtime :
>> https://github.com/wso2/product-apim/releases/tag/v2.0.0-rc3
>>  Analytics :
>> https://github.com/wso2/analytics-apim/releases/tag/v2.0.0-rc3
>>
>> Please download, test the product and vote. Vote will be open for 72
>> hours or as needed.
>> Refer to github readme for guides.
>>
>> Please vote as follows.
>> [+] Stable - go ahead and release
>> [-]  Broken - do not release (please explain why)
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820
>>
>> <http://stackoverflow.com/users/515034>
>> <http://lk.linkedin.com/in/abimaran>
>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>> <https://twitter.com/abimaran>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>



-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   3   >