Re: [Dev] Error when running the newest build of MB-4

2017-05-30 Thread Niranjan Karunanandham
Hi Riyafa,

This issue is happening because the deployment folder is not present in the
product. As a workaround you can create it using the product repo bin.xml.
Can you create a git issue for this in the carbon-deployment repo? The fix
is to create the folder when the feature is installed.

Regards,
Nira

On Wed, May 31, 2017 at 10:54 AM, Gihan Anuruddha  wrote:

> Hi,
>
> This is a know issue. Can you please create an issue in here[1].
>
> [1] - https://github.com/wso2/carbon-deployment
>
> Regards,
> Gihan
>
> On Wed, May 31, 2017 at 9:32 AM, Pamod Sylvester  wrote:
>
>> (+) KasunG
>>
>> On Wed, May 31, 2017 at 9:27 AM, Riyafa Abdul Hameed 
>> wrote:
>>
>>> Hi,
>>>
>>> I built MB-4 from the 4.x.x branch of product-mb[1] and ran it by
>>> extracting 'wso2mb-4.0.0-SNAPSHOT.zip' from ''/product-mb/product/target'.
>>> I get the following error during execution of carbon.sh from the bin folder:
>>>
 ERROR 
 {org.wso2.carbon.deployment.engine.internal.DeploymentEngineListenerComponent}
 - Could not initialize carbon deployment engine
 org.wso2.carbon.deployment.engine.exception.DeploymentEngineException:
 Cannot find repository : /home/riyafa/Documents/Workspa
 ce/product-mb/product/target/wso2mb-4.0.0-SNAPSHOT/deployment
 at org.wso2.carbon.deployment.engine.internal.DeploymentEngine.
 start(DeploymentEngine.java:103)
 at org.wso2.carbon.deployment.engine.internal.DeploymentEngineL
 istenerComponent.onAllRequiredCapabilitiesAvailable(Deployme
 ntEngineListenerComponent.java:212)
 at org.wso2.carbon.kernel.internal.startupresolver.StartupCompo
 nentManager.lambda$notifySatisfiableComponents$51(StartupCom
 ponentManager.java:238)
 at java.util.ArrayList.forEach(ArrayList.java:1249)
 at org.wso2.carbon.kernel.internal.startupresolver.StartupCompo
 nentManager.notifySatisfiableComponents(StartupComponentMana
 ger.java:224)
 at org.wso2.carbon.kernel.internal.startupresolver.StartupOrder
 Resolver$1.run(StartupOrderResolver.java:204)
 at java.util.TimerThread.mainLoop(Timer.java:555)
 at java.util.TimerThread.run(Timer.java:505)

>>>
>>> The current product-mb is written over C5 and I am not sure if it's an
>>> issue with C5. When I create a deployment folder in the
>>> wso2mb-4.0.0-SNAPSHOT folder and rerun product-mb the error goes away. Any
>>> highlight on the above issue would be of help.
>>>
>>> Thank you.
>>> Riyafa
>>>
>>>
>>> [1] https://github.com/wso2/product-mb/tree/4.x.x/product
>>>
>>> --
>>> Riyafa Abdul Hameed
>>> Software Engineer, WSO2 Lanka (Pvt) Ltd 
>>>
>>> Email: riy...@wso2.com 
>>> Website: https://riyafa.wordpress.com/ 
>>>   
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Pamod Sylvester *
>>
>> *WSO2 Inc.; http://wso2.com *
>> cell: +94 77 7779495 <077%20777%209495>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> W.G. Gihan Anuruddha
> Associate Technical Lead | WSO2, Inc.
> M: +94772272595
>



-- 


*Niranjan Karunanandham*
Associate Technical Lead - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when running the newest build of MB-4

2017-05-30 Thread Gihan Anuruddha
Hi,

This is a know issue. Can you please create an issue in here[1].

[1] - https://github.com/wso2/carbon-deployment

Regards,
Gihan

On Wed, May 31, 2017 at 9:32 AM, Pamod Sylvester  wrote:

> (+) KasunG
>
> On Wed, May 31, 2017 at 9:27 AM, Riyafa Abdul Hameed 
> wrote:
>
>> Hi,
>>
>> I built MB-4 from the 4.x.x branch of product-mb[1] and ran it by
>> extracting 'wso2mb-4.0.0-SNAPSHOT.zip' from ''/product-mb/product/target'.
>> I get the following error during execution of carbon.sh from the bin folder:
>>
>>> ERROR 
>>> {org.wso2.carbon.deployment.engine.internal.DeploymentEngineListenerComponent}
>>> - Could not initialize carbon deployment engine
>>> org.wso2.carbon.deployment.engine.exception.DeploymentEngineException:
>>> Cannot find repository : /home/riyafa/Documents/Workspa
>>> ce/product-mb/product/target/wso2mb-4.0.0-SNAPSHOT/deployment
>>> at org.wso2.carbon.deployment.engine.internal.DeploymentEngine.
>>> start(DeploymentEngine.java:103)
>>> at org.wso2.carbon.deployment.engine.internal.DeploymentEngineL
>>> istenerComponent.onAllRequiredCapabilitiesAvailable(Deployme
>>> ntEngineListenerComponent.java:212)
>>> at org.wso2.carbon.kernel.internal.startupresolver.StartupCompo
>>> nentManager.lambda$notifySatisfiableComponents$51(
>>> StartupComponentManager.java:238)
>>> at java.util.ArrayList.forEach(ArrayList.java:1249)
>>> at org.wso2.carbon.kernel.internal.startupresolver.StartupCompo
>>> nentManager.notifySatisfiableComponents(StartupComponentMana
>>> ger.java:224)
>>> at org.wso2.carbon.kernel.internal.startupresolver.StartupOrder
>>> Resolver$1.run(StartupOrderResolver.java:204)
>>> at java.util.TimerThread.mainLoop(Timer.java:555)
>>> at java.util.TimerThread.run(Timer.java:505)
>>>
>>
>> The current product-mb is written over C5 and I am not sure if it's an
>> issue with C5. When I create a deployment folder in the
>> wso2mb-4.0.0-SNAPSHOT folder and rerun product-mb the error goes away. Any
>> highlight on the above issue would be of help.
>>
>> Thank you.
>> Riyafa
>>
>>
>> [1] https://github.com/wso2/product-mb/tree/4.x.x/product
>>
>> --
>> Riyafa Abdul Hameed
>> Software Engineer, WSO2 Lanka (Pvt) Ltd 
>>
>> Email: riy...@wso2.com 
>> Website: https://riyafa.wordpress.com/ 
>>   
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pamod Sylvester *
>
> *WSO2 Inc.; http://wso2.com *
> cell: +94 77 7779495 <077%20777%209495>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
W.G. Gihan Anuruddha
Associate Technical Lead | WSO2, Inc.
M: +94772272595
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deprecating Clef Authenticator

2017-05-30 Thread Rajjaz Mohammed
Hi All,

Clef authenticator deprecated from the store and the documentation also
moved to private space.

On Wed, May 31, 2017 at 9:23 AM, Rajjaz Mohammed  wrote:

> Hi Malaka,
>
> Noted. Will do the needful.
>
> On Wed, May 31, 2017 at 9:21 AM, Malaka Silva  wrote:
>
>> +1 for
>> ​d​
>> eprecating
>> ​. Didn't see any usage since published.​
>>
>> On Tue, May 30, 2017 at 12:30 PM, Rajjaz Mohammed 
>> wrote:
>>
>>> Hi All,
>>>
>>> We are planning to deprecate clef authenticator[1][2] from the store[2].
>>> Reason is clef is going to shut down its service[3] from June 6.
>>>
>>> Please let us know if there are any concerns.
>>>
>>> [1] https://docs.wso2.com/display/ISCONNECTORS/Configuring+Clef+
>>> Authenticator
>>> [2] https://store.wso2.com/store/assets/isconnector/details/a1e8
>>> 1fd8-aca4-4ae1-9544-33f5ea26473b
>>> [3] https://blog.getclef.com/discontinuing-support-for-clef-6c89febef5f3
>>>
>>>
>>> --
>>> Thank you
>>> Best Regards
>>>
>>> *Rajjaz HM*
>>> Software Engineer
>>> Platform Extension Team
>>> WSO2 Inc. 
>>> lean | enterprise | middleware
>>> Mobile | +94752833834 <075%20283%203834>|+94777226874 <077%20722%206874>
>>> Email   | raj...@wso2.com
>>> LinkedIn  | Blogger
>>>  | WSO2 Profile
>>> 
>>> [image: https://wso2.com/signature] 
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Associate Director / Architect
>> M: +94 777 219 791 <+94%2077%20721%209791>
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> https://wso2.com/signature
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>> https://store.wso2.com/store/
>>
>> Don't make Trees rare, we should keep them with care
>>
>
>
>
> --
> Thank you
> Best Regards
>
> *Rajjaz HM*
> Software Engineer
> Platform Extension Team
> WSO2 Inc. 
> lean | enterprise | middleware
> Mobile | +94752833834 <+94%2075%20283%203834>|+94777226874
> <+94%2077%20722%206874>
> Email   | raj...@wso2.com
> LinkedIn  | Blogger
>  | WSO2 Profile
> 
> [image: https://wso2.com/signature] 
>



-- 
Thank you
Best Regards

*Rajjaz HM*
Software Engineer
Platform Extension Team
WSO2 Inc. 
lean | enterprise | middleware
Mobile | +94752833834|+94777226874
Email   | raj...@wso2.com
LinkedIn  | Blogger
 | WSO2 Profile

[image: https://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when running the newest build of MB-4

2017-05-30 Thread Pamod Sylvester
(+) KasunG

On Wed, May 31, 2017 at 9:27 AM, Riyafa Abdul Hameed 
wrote:

> Hi,
>
> I built MB-4 from the 4.x.x branch of product-mb[1] and ran it by
> extracting 'wso2mb-4.0.0-SNAPSHOT.zip' from ''/product-mb/product/target'.
> I get the following error during execution of carbon.sh from the bin folder:
>
>> ERROR {org.wso2.carbon.deployment.engine.internal.
>> DeploymentEngineListenerComponent} - Could not initialize carbon
>> deployment engine 
>> org.wso2.carbon.deployment.engine.exception.DeploymentEngineException:
>> Cannot find repository : /home/riyafa/Documents/
>> Workspace/product-mb/product/target/wso2mb-4.0.0-SNAPSHOT/deployment
>> at org.wso2.carbon.deployment.engine.internal.DeploymentEngine.start(
>> DeploymentEngine.java:103)
>> at org.wso2.carbon.deployment.engine.internal.
>> DeploymentEngineListenerComponent.onAllRequiredCapabilitiesAvailable(
>> DeploymentEngineListenerComponent.java:212)
>> at org.wso2.carbon.kernel.internal.startupresolver.
>> StartupComponentManager.lambda$notifySatisfiableComponents$
>> 51(StartupComponentManager.java:238)
>> at java.util.ArrayList.forEach(ArrayList.java:1249)
>> at org.wso2.carbon.kernel.internal.startupresolver.
>> StartupComponentManager.notifySatisfiableComponents(
>> StartupComponentManager.java:224)
>> at org.wso2.carbon.kernel.internal.startupresolver.
>> StartupOrderResolver$1.run(StartupOrderResolver.java:204)
>> at java.util.TimerThread.mainLoop(Timer.java:555)
>> at java.util.TimerThread.run(Timer.java:505)
>>
>
> The current product-mb is written over C5 and I am not sure if it's an
> issue with C5. When I create a deployment folder in the
> wso2mb-4.0.0-SNAPSHOT folder and rerun product-mb the error goes away. Any
> highlight on the above issue would be of help.
>
> Thank you.
> Riyafa
>
>
> [1] https://github.com/wso2/product-mb/tree/4.x.x/product
>
> --
> Riyafa Abdul Hameed
> Software Engineer, WSO2 Lanka (Pvt) Ltd 
>
> Email: riy...@wso2.com 
> Website: https://riyafa.wordpress.com/ 
>   
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Pamod Sylvester *

*WSO2 Inc.; http://wso2.com *
cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error when running the newest build of MB-4

2017-05-30 Thread Riyafa Abdul Hameed
Hi,

I built MB-4 from the 4.x.x branch of product-mb[1] and ran it by
extracting 'wso2mb-4.0.0-SNAPSHOT.zip' from ''/product-mb/product/target'.
I get the following error during execution of carbon.sh from the bin folder:

> ERROR
> {org.wso2.carbon.deployment.engine.internal.DeploymentEngineListenerComponent}
> - Could not initialize carbon deployment engine
> org.wso2.carbon.deployment.engine.exception.DeploymentEngineException:
> Cannot find repository :
> /home/riyafa/Documents/Workspace/product-mb/product/target/wso2mb-4.0.0-SNAPSHOT/deployment
> at
> org.wso2.carbon.deployment.engine.internal.DeploymentEngine.start(DeploymentEngine.java:103)
> at
> org.wso2.carbon.deployment.engine.internal.DeploymentEngineListenerComponent.onAllRequiredCapabilitiesAvailable(DeploymentEngineListenerComponent.java:212)
> at
> org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.lambda$notifySatisfiableComponents$51(StartupComponentManager.java:238)
> at java.util.ArrayList.forEach(ArrayList.java:1249)
> at
> org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.notifySatisfiableComponents(StartupComponentManager.java:224)
> at
> org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver$1.run(StartupOrderResolver.java:204)
> at java.util.TimerThread.mainLoop(Timer.java:555)
> at java.util.TimerThread.run(Timer.java:505)
>

The current product-mb is written over C5 and I am not sure if it's an
issue with C5. When I create a deployment folder in the
wso2mb-4.0.0-SNAPSHOT folder and rerun product-mb the error goes away. Any
highlight on the above issue would be of help.

Thank you.
Riyafa


[1] https://github.com/wso2/product-mb/tree/4.x.x/product

-- 
Riyafa Abdul Hameed
Software Engineer, WSO2 Lanka (Pvt) Ltd 

Email: riy...@wso2.com 
Website: https://riyafa.wordpress.com/ 
  

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


Re: [Dev] Deprecating Clef Authenticator

2017-05-30 Thread Rajjaz Mohammed
Hi Malaka,

Noted. Will do the needful.

On Wed, May 31, 2017 at 9:21 AM, Malaka Silva  wrote:

> +1 for
> ​d​
> eprecating
> ​. Didn't see any usage since published.​
>
> On Tue, May 30, 2017 at 12:30 PM, Rajjaz Mohammed  wrote:
>
>> Hi All,
>>
>> We are planning to deprecate clef authenticator[1][2] from the store[2].
>> Reason is clef is going to shut down its service[3] from June 6.
>>
>> Please let us know if there are any concerns.
>>
>> [1] https://docs.wso2.com/display/ISCONNECTORS/Configuring+Clef+
>> Authenticator
>> [2] https://store.wso2.com/store/assets/isconnector/details/a1e8
>> 1fd8-aca4-4ae1-9544-33f5ea26473b
>> [3] https://blog.getclef.com/discontinuing-support-for-clef-6c89febef5f3
>>
>>
>> --
>> Thank you
>> Best Regards
>>
>> *Rajjaz HM*
>> Software Engineer
>> Platform Extension Team
>> WSO2 Inc. 
>> lean | enterprise | middleware
>> Mobile | +94752833834 <075%20283%203834>|+94777226874 <077%20722%206874>
>> Email   | raj...@wso2.com
>> LinkedIn  | Blogger
>>  | WSO2 Profile
>> 
>> [image: https://wso2.com/signature] 
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Associate Director / Architect
> M: +94 777 219 791 <+94%2077%20721%209791>
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> https://wso2.com/signature
> http://www.wso2.com/about/team/malaka-silva/
> 
> https://store.wso2.com/store/
>
> Don't make Trees rare, we should keep them with care
>



-- 
Thank you
Best Regards

*Rajjaz HM*
Software Engineer
Platform Extension Team
WSO2 Inc. 
lean | enterprise | middleware
Mobile | +94752833834|+94777226874
Email   | raj...@wso2.com
LinkedIn  | Blogger
 | WSO2 Profile

[image: https://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deprecating Clef Authenticator

2017-05-30 Thread Malaka Silva
+1 for
​d​
eprecating
​. Didn't see any usage since published.​

On Tue, May 30, 2017 at 12:30 PM, Rajjaz Mohammed  wrote:

> Hi All,
>
> We are planning to deprecate clef authenticator[1][2] from the store[2].
> Reason is clef is going to shut down its service[3] from June 6.
>
> Please let us know if there are any concerns.
>
> [1] https://docs.wso2.com/display/ISCONNECTORS/Configuring+Clef+
> Authenticator
> [2] https://store.wso2.com/store/assets/isconnector/details/
> a1e81fd8-aca4-4ae1-9544-33f5ea26473b
> [3] https://blog.getclef.com/discontinuing-support-for-clef-6c89febef5f3
>
>
> --
> Thank you
> Best Regards
>
> *Rajjaz HM*
> Software Engineer
> Platform Extension Team
> WSO2 Inc. 
> lean | enterprise | middleware
> Mobile | +94752833834 <075%20283%203834>|+94777226874 <077%20722%206874>
> Email   | raj...@wso2.com
> LinkedIn  | Blogger
>  | WSO2 Profile
> 
> [image: https://wso2.com/signature] 
>



-- 

Best Regards,

Malaka Silva
Associate Director / Architect
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
https://wso2.com/signature
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Don't make Trees rare, we should keep them with care
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Automated Datasource creation WSO2 Server

2017-05-30 Thread Himasha Guruge
Hi Junior,

Please have a look at [1]  on how you can change the default databases and
which configuration files you need to update.

[1] https://docs.wso2.com/display/ADMIN44x/Working+with+Databases

Thanks,
Himasha


On Wed, May 31, 2017 at 12:10 AM, Júnior  wrote:

> Hello,
>
> What is the prefered way of automating the creation of datasources on WSO2
> Servers?
>
> I've posted a question on Stackoverflow[1].
>
> Any tips are very welcome.
>
> Thanks,
> [1]https://stackoverflow.com/questions/44269334/automated-
> datasource-creation-on-wso2-server
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Automated Datasource creation WSO2 Server

2017-05-30 Thread Júnior
Hello,

What is the prefered way of automating the creation of datasources on WSO2
Servers?

I've posted a question on Stackoverflow[1].

Any tips are very welcome.

Thanks,
[1]
https://stackoverflow.com/questions/44269334/automated-datasource-creation-on-wso2-server
-- 
Francisco Ribeiro
*SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Invitation: [GSoC][APIM] Environment Support for API Manager weekly s... @ Thu Jun 1, 2017 3pm - 4pm (IST) (dev@wso2.org)

2017-05-30 Thread Kasun Thennakoon
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20170601T093000Z
DTEND:20170601T103000Z
DTSTAMP:20170530T142905Z
ORGANIZER;CN=Kasun Thennakoon:mailto:kasu...@wso2.com
UID:3uup5lp3r8bj1b07o83j7q4...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Thilini Shanika;X-NUM-GUESTS=0:mailto:thili...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ravindu Perera;X-NUM-GUESTS=0:mailto:ravindu.2014...@iit.ac.lk
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Kasun Thennakoon;X-NUM-GUESTS=0:mailto:kasu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Pubudu Gunatilaka;X-NUM-GUESTS=0:mailto:pubu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Chanaka Jayasena;X-NUM-GUESTS=0:mailto:chan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Nuwan Dias;X-NUM-GUESTS=0:mailto:nuw...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
CREATED:20170530T142904Z
DESCRIPTION:This event has a Google Hangouts video call.\nJoin: https://plu
 s.google.com/hangouts/_/wso2.com/gsoc-apim?hceid=a2FzdW50ZUB3c28yLmNvbQ.3uu
 p5lp3r8bj1b07o83j7q4jts=121\n\nView your event at https://www.google.com
 /calendar/event?action=VIEW=M3V1cDVscDNyOGJqMWIwN284M2o3cTRqdHMgZGV2QHd
 zbzIub3Jn=MTYja2FzdW50ZUB3c28yLmNvbTYzNGE3ZGE2NjA3YjQzMjliNGVkYzg2YTRhZ
 DRhMDUyN2Y1NTAxMTU=Asia/Colombo=en.
LAST-MODIFIED:20170530T142905Z
LOCATION:WSO2\, 20\, Palm Grove\, Colombo\, Sri Lanka
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:[GSoC][APIM] Environment Support for API Manager weekly sync up mee
 ting
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-30 Thread Grainier Perera
Hi Madhawa,

Great progress so far. As per our offline discussion, for the above
callback issue, please go ahead with the workaround you found on [1]. Since
it only affects Python 3.4 and above, use a version check to decide whether
to use the workaround or not. Once you get all the test cases to work with
Python 3.X, please verify it with Python 2.X as well. Once it's completed,
we can then move on to wrapping Event simulator.

[1] https://bugs.python.org/issue20891

Thanks,
Grainier.

On Mon, May 29, 2017 at 9:04 AM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
> I have started working on debugger wrapping. So far I have made progress
> through first two test cases at [1]. However, the code is failing in test
> case 3.
>
> *This is because of python crashing with following error when callback
> events are fired from non python created threads. The issue affects not
> only the debugger but other callbacks such as StreamCallback and
> QueryCallback.*
>
>> Fatal Python error: take_gil: NULL tstate
>
>
> This error appear only in Python versions 3.4+.  The code works fine when
> I tested with Python 3.3 and below. Furthermore, the error doesn't appear
> in any Python version when the debugger is connected. During further
> investigation of error, I found the documented bug [2] of Python which
> affect Python 3.4+ in similar manner.
>
> So far, a possible solution we have is to use a single python created
> thread to transfer callbacks from Java side to Python. For this purpose, we
> can use a queue (in java) to hold callback events triggered from java and a
> single (python created) thread to transfer the events in queue to python.
> However, this approach might have some performance issues. Can I know your
> opinion on this approach? (So far I have not implemented this approach)
>
> Furthermore, I have opened an issue in pyjnius github [3] (the API I use
> to communicate between Java and Python) on this matter. It might also be
> possible to fix the issue from pyjnius side using some of the suggestions
> available in [2] and [4]. I will look into this approach as well.
>
> [1] - https://github.com/wso2/siddhi/blob/79608b6aea4fbd99bb08cf64493c8b
> 4144bc32e4/modules/siddhi-core/src/test/java/org/wso2/
> siddhi/core/debugger/TestDebugger.java
> [2] - https://bugs.python.org/issue20891
> [3] - https://github.com/kivy/pyjnius/issues/276
> [4] - https://bugs.python.org/issue19576
>
> Thanks and Regards,
> Madhawa
>
> On Thu, May 25, 2017 at 5:32 AM, Sriskandarajah Suhothayan 
> wrote:
>
>> Great, you can do the debugger now, he said after finishing the debugger
>> work, work on wrap event simulator .
>>
>> Regards
>> Suho
>>
>> On Wed, May 24, 2017 at 6:19 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have updated the README.md file. Will let you know when I have
>>> progress with debugger.
>>>
>>> Thanks
>>> Madhawa
>>>
>>> On Mon, May 22, 2017 at 12:41 PM, Grainier Perera 
>>> wrote:
>>>
 Hi Madhawa,

 I went through your impl and it works great. Try to improve the test
 cases and documentation (README.md on git) when you get a time.

 Furthermore, I have added Event simulator REST API endpoints to the doc
 that you shared earlier. After getting debugger to work, try to wrap event
 simulator endpoints as well. You can refer to [1] for the documentation on
 them.

 [1] https://docs.wso2.com/display/DAS400/Simulating+Events

 Regards,
 Grainier.

 On Sun, May 21, 2017 at 6:00 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> I started working on the native wrapper. So far, have the very basic
> functionality working for Siddhi 3.1 and Siddhi 4.0.
> I am maintaining my code at the repo [1].
>
> Next step is getting the Siddhi debugger working. I will let you know
> when it is done.
>
> [1] - https://github.com/madhawav/SiddhiCEPPythonAPI
>
> Thanks,
> Madhawa
>
>
> On Fri, May 19, 2017 at 12:47 PM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>> Sure we'll look into that.
>>
>> As the immediate next step can you make finish the work on native
>> Siddhi working with python.
>> Make sure Siddhi debugger also works.
>>
>> Regards
>> Suho
>>
>> On Fri, May 19, 2017 at 11:45 AM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have updated the shared doc [1] by adding "List of Admin Services
>>> to be used for DAS 3.1". Feel free to add-in your suggestions as well.
>>>
>>> Also, are their any documentation available on specific Admin
>>> Services APIs I have mentioned in doc? Such as a Reference Guide 
>>> describing
>>> the methods and parameters of individual Admin Services APIs. I am 
>>> 

Re: [Dev] API 2.1.0 + Identity Server 5.3.0

2017-05-30 Thread Vazquez-Hidalgo, Javier
Hi Isura,

In the log files, please search for “vazquj2”. That is the user who fails to 
login. I’ll send the conf files shortly. After more research it seems that APIM 
is looking user roles in UM_ROLES instead of UM_HYBRID_ROLES.

Thanks,
Javier

From: Isura Karunaratne [mailto:is...@wso2.com]
Sent: Monday, May 29, 2017 1:24 AM
To: Vazquez-Hidalgo, Javier
Cc: dev@wso2.org
Subject: Re: [Dev] API 2.1.0 + Identity Server 5.3.0

Hi Javier,

According to the apim-wso2carbon.log file, only admin user tried login to the 
APIM instance and it was a success login.  Please attach the log, once the 
store login failure occurs. Also, attach the conf folders in each products.

Thanks
Isura.

On Fri, May 26, 2017 at 8:56 PM, Vazquez-Hidalgo, Javier 
>
 wrote:
Hi Isura,

Thanks for your help!

Attached to the email are both logs with 
“log4j.logger.org.wso2.carbon.user.core=DEBUG” enabled.

Regards,
Javier

From: Isura Karunaratne [mailto:is...@wso2.com]
Sent: Friday, May 26, 2017 3:10 AM
To: Vazquez-Hidalgo, Javier
Cc: dev@wso2.org
Subject: Re: [Dev] API 2.1.0 + Identity Server 5.3.0

Hi Javier,

We need additional information to analyze the issue. Attach the wso2carbon.log 
file after enabling the debug logs for org.wso2.carbon.user.core package as 
follows.

Add following entry to /repository/conf/log4j.properties file

log4j.logger.org.wso2.carbon.user.core=DEBUG


Thanks
Isura.

On Fri, May 26, 2017 at 12:50 AM, Vazquez-Hidalgo, Javier 
>
 wrote:
Hello,

I’m trying to setup APIM 2.1.0 + Identity Server 5.3.0 on separate boxes, at 
this point I have all configurations in place with shared databases and I added 
a secondary User Store (Read-Only LDAP) on the Identity Server and I’m able to 
assign permissions, etc..

The problem I’m having is that when I try to login to the API Store using a 
user from the secondary user store I get the following error in the login 
screen:

“Error! Login failed. Insufficient Privileges.”

APIM Logs:
-

[2017-05-25 14:49:52,812] ERROR - JDBCAuthorizationManager Error occurred while 
accessing Java Security Manager Privilege Block
[2017-05-25 14:49:52,812] ERROR - APIStoreHostObject Login failed. Insufficient 
Privileges.

IS Log:
---
[2017-05-25 14:49:52,498]  INFO 
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  
'DOMAIN/xxx@carbon.super [-1234]' logged in at [2017-05-25 14:49:52,497-0400]

So, it seems that the user is authenticated but something is happening.

Just to be clear, the user from the secondary user store has 
“Internal/subscriber” role which should be sufficient to login.

I also created a test user in the IS primary store and assigned 
“Internal/subscriber” role and that worked fine.


Any help or pointers is appreciated.

Thanks,
Javier Vazquez




If you wish to unsubscribe from receiving commercial electronic messages from 
TD Bank Group, please click here 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 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



--
Isura Dilhara Karunaratne
Senior Software Engineer | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810
Blog : http://isurad.blogspot.com/






--
Isura Dilhara Karunaratne
Senior Software Engineer | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810
Blog : http://isurad.blogspot.com/



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


[Dev] WSO2 IoT Server 3.1.0-M8 Released!

2017-05-30 Thread Madhawa Perera
*WSO2 IoT Server 3.1.0 Milestone 8*

We are pleased to announce WSO2 IoT Server 3.1.0 Milestone 8 release. It
can be downloaded from v3.1.0-M8

.

WSO2 IoT Server is a complete solution that enables device manufacturers
and enterprises to connect and manage their devices, build apps, manage
events, secure devices and data, and visualize sensor data in a scalable
manner.

It also offers a complete and secure enterprise mobility management
(EMM/MDM) solution that aims to address mobile computing challenges faced
by enterprises today. Supporting iOS, Android, and Windows devices, it
helps organizations to deal with both corporate owned, personally enabled
(COPE) and employee-owned devices with the bring your own device (BYOD)
concept.

WSO2 IoT Server comes with advanced analytics, enabling users to analyze
speed, proximity and geo-fencing information of devices including details
of those in motion and stationary state.

*Fixed Issues*

   - Carbon-Device-Mgt
   
   - Carbon-Device-Mgt-Plugins
   

   - Product-IOTS
   

*Known Issues*

   - Carbon-Device-Mgt 
   - Carbon-Device-Mgt-Plugins
   
   - Product-IOTS 

*Engaging with Community*

*Mailing Lists*

Join our mailing list and correspond with the developers directly.

Developer list : dev@wso2.org | Subscribe
 | Mail Archive


*Reporting Issues*

We encourage you to report issues, documentation faults and feature
requests regarding WSO2 IoT Server through WSO2 IoT GIT Issues
.

*Discussion Forums*

We encourage to use stackoverflow

to engage with developers as well as other users.

For more information about WSO2 IoT Server, please see
http://wso2.com/products/iot-server or visit the WSO2 Oxygen Tank
 developer portal for additional resources.

Thank you for your interest in WSO2 IoT Server.

*The WSO2 IoT Server Team*

-- 
Madhawa Perera
*Software Engineer*
Mobile : +94 (0) 773655496
<%2B94%20%280%29%20773%20451194>
madha...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] MSF4J level support to get resource template of a http request

2017-05-30 Thread Ishara Cooray
That would be fine.
Thanks Viraj.

Thanks & Regards,
Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

On Tue, May 30, 2017 at 1:33 PM, Viraj Rajaguru  wrote:

> Hi Ishara,
>
> We can do that. We have a release scheduled by end of this week. Fix will
> be available in that release.
>
> Thanks,
> Viraj.
>
> On Tue, May 30, 2017 at 12:16 PM, Ishara Cooray  wrote:
>
>> Hi Thusitha,
>>
>> I could not observe a property called "method" in my Request object.
>>
>> I noticed that,
>>
>> we have *msf4j-core-2.3.0-m2.jar* and *workspace-service-0.8.2.jar *in
>> place.
>>
>> *workspace-service-0.8.2.jar *uses
>> * msf4j 2.1.0*
>> So at  runtime it picks from the *workspace-service-0.8.2.jar *
>>
>>
>>
>>
>> *@Viraj,*
>> Can we please get the msf4j version updated to it's latest version in
>> ballerina-parent/*pom.xml*
>> 
>> Currently it is 2.1.0
>>
>>
>> Thanks & Regards,
>> Ishara Cooray
>> Senior Software Engineer
>> Mobile : +9477 262 9512 <+94%2077%20262%209512>
>> WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> On Mon, May 29, 2017 at 10:06 PM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Ishara,
>>>
>>> You can access the actual method that will get invoke at the Interceptor
>>> level
>>> e.g. request.getProperty("method");[1] So then you can get the @Path
>>> value of the method and compare that with the request.getUri().
>>>
>>> [1] - https://github.com/wso2/msf4j/blob/v2.3.0-m2/core/src/main
>>> /java/org/wso2/msf4j/internal/router/HttpMethodInfo.java#L174
>>>
>>> Thanks
>>> Thusitha
>>>
>>> On Mon, May 29, 2017 at 1:51 AM, Ishara Cooray  wrote:
>>>
 Ths usecase behind this is,

 we have scopes defined in apim product REST APIs for each resource path
 as below.

 /apis/{apiId}:

 #-

 # Retrieve the details of an API definition

 #-

   get:

 x-scope: apim:api_view

 x-wso2-curl: "curl -k -H \"Authorization: Bearer
 ae4eae22-3f65-387b-a171-d37eaa366fa8\" https://127.0.0.1:9443/api/am/
 publisher/v1.0/apis/7a2298c4-c905-403f-8fac-38c73301631f"

 ..


 We are keeping track of these resource to scope mapping and at the time
 of a new request, we need to validate the scope.

 But, the request coming with a value(206e1b0b-a48e-47c9-95d0-3eb85544cf2e)
 for the variable(apiId), hence unable to find the resource template to
 match unless we do a string manipulation(we are maintaining a map for the
 resource to scope mapping).


 We better avoid string manipulations as much as possible because this
 will take place in gateway.


 Therefore need to check the possibility of supporting this from MSF4J
 level so that we can get template info from the Request object itself.




 Thanks & Regards,
 Ishara Cooray
 Senior Software Engineer
 Mobile : +9477 262 9512 <+94%2077%20262%209512>
 WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 On Mon, May 29, 2017 at 12:40 PM, Ishara Cooray 
 wrote:

> Hi,
>
> We have a requirement to identify the request template for a given
> http request.
>
> For example,
> *Req: *
> /api/am/publisher/v1.0/apis/206e1b0b-a48e-47c9-95d0-3eb85544cf2e
>
> *Req path:*
> /apis/206e1b0b-a48e-47c9-95d0-3eb85544cf2e
>
> *Need *to identify corresponding *template as *
> apis/{apiId}
>
> Is there a way to get this info from the MSF4J level?
>
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512 <+94%2077%20262%209512>
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>


>>>
>>>
>>> --
>>> Thusitha Dayaratne
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> Mobile  +94712756809 <+94%2071%20275%206809>
>>> Blog  alokayasoya.blogspot.com
>>> Abouthttp://about.me/thusithathilina
>>> 
>>>
>>>
>>
>
>
> --
> Viraj Rajaguru
> Associate Technical Lead
> WSO2 Inc. : http://wso2.com
>
> Mobile: +94 77 3683068 <+94%2077%20368%203068>
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] MSF4J level support to get resource template of a http request

2017-05-30 Thread Viraj Rajaguru
Hi Ishara,

We can do that. We have a release scheduled by end of this week. Fix will
be available in that release.

Thanks,
Viraj.

On Tue, May 30, 2017 at 12:16 PM, Ishara Cooray  wrote:

> Hi Thusitha,
>
> I could not observe a property called "method" in my Request object.
>
> I noticed that,
>
> we have *msf4j-core-2.3.0-m2.jar* and *workspace-service-0.8.2.jar *in
> place.
>
> *workspace-service-0.8.2.jar *uses
> * msf4j 2.1.0*
> So at  runtime it picks from the *workspace-service-0.8.2.jar *
>
>
>
>
> *@Viraj,*
> Can we please get the msf4j version updated to it's latest version in
> ballerina-parent/*pom.xml*
> 
> Currently it is 2.1.0
>
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512 <+94%2077%20262%209512>
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> On Mon, May 29, 2017 at 10:06 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Ishara,
>>
>> You can access the actual method that will get invoke at the Interceptor
>> level
>> e.g. request.getProperty("method");[1] So then you can get the @Path
>> value of the method and compare that with the request.getUri().
>>
>> [1] - https://github.com/wso2/msf4j/blob/v2.3.0-m2/core/src/main
>> /java/org/wso2/msf4j/internal/router/HttpMethodInfo.java#L174
>>
>> Thanks
>> Thusitha
>>
>> On Mon, May 29, 2017 at 1:51 AM, Ishara Cooray  wrote:
>>
>>> Ths usecase behind this is,
>>>
>>> we have scopes defined in apim product REST APIs for each resource path
>>> as below.
>>>
>>> /apis/{apiId}:
>>>
>>> #-
>>>
>>> # Retrieve the details of an API definition
>>>
>>> #-
>>>
>>>   get:
>>>
>>> x-scope: apim:api_view
>>>
>>> x-wso2-curl: "curl -k -H \"Authorization: Bearer
>>> ae4eae22-3f65-387b-a171-d37eaa366fa8\" https://127.0.0.1:9443/api/am/
>>> publisher/v1.0/apis/7a2298c4-c905-403f-8fac-38c73301631f"
>>>
>>> ..
>>>
>>>
>>> We are keeping track of these resource to scope mapping and at the time
>>> of a new request, we need to validate the scope.
>>>
>>> But, the request coming with a value(206e1b0b-a48e-47c9-95d0-3eb85544cf2e)
>>> for the variable(apiId), hence unable to find the resource template to
>>> match unless we do a string manipulation(we are maintaining a map for the
>>> resource to scope mapping).
>>>
>>>
>>> We better avoid string manipulations as much as possible because this
>>> will take place in gateway.
>>>
>>>
>>> Therefore need to check the possibility of supporting this from MSF4J
>>> level so that we can get template info from the Request object itself.
>>>
>>>
>>>
>>>
>>> Thanks & Regards,
>>> Ishara Cooray
>>> Senior Software Engineer
>>> Mobile : +9477 262 9512 <+94%2077%20262%209512>
>>> WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> On Mon, May 29, 2017 at 12:40 PM, Ishara Cooray 
>>> wrote:
>>>
 Hi,

 We have a requirement to identify the request template for a given http
 request.

 For example,
 *Req: *
 /api/am/publisher/v1.0/apis/206e1b0b-a48e-47c9-95d0-3eb85544cf2e

 *Req path:*
 /apis/206e1b0b-a48e-47c9-95d0-3eb85544cf2e

 *Need *to identify corresponding *template as *
 apis/{apiId}

 Is there a way to get this info from the MSF4J level?


 Thanks & Regards,
 Ishara Cooray
 Senior Software Engineer
 Mobile : +9477 262 9512 <+94%2077%20262%209512>
 WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <+94%2071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> 
>>
>>
>


-- 
Viraj Rajaguru
Associate Technical Lead
WSO2 Inc. : http://wso2.com

Mobile: +94 77 3683068
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Deprecating Clef Authenticator

2017-05-30 Thread Rajjaz Mohammed
Hi All,

We are planning to deprecate clef authenticator[1][2] from the store[2].
Reason is clef is going to shut down its service[3] from June 6.

Please let us know if there are any concerns.

[1]
https://docs.wso2.com/display/ISCONNECTORS/Configuring+Clef+Authenticator
[2]
https://store.wso2.com/store/assets/isconnector/details/a1e81fd8-aca4-4ae1-9544-33f5ea26473b
[3] https://blog.getclef.com/discontinuing-support-for-clef-6c89febef5f3


-- 
Thank you
Best Regards

*Rajjaz HM*
Software Engineer
Platform Extension Team
WSO2 Inc. 
lean | enterprise | middleware
Mobile | +94752833834|+94777226874
Email   | raj...@wso2.com
LinkedIn  | Blogger
 | WSO2 Profile

[image: https://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge the pull request

2017-05-30 Thread Thanuja Jayasinghe
Hi Jayanga,

Please merge the pull request [1] which contains the fix for [2].

[1] - https://github.com/wso2/carbon-kernel/pull/1388
[2] - https://github.com/wso2/carbon-kernel/issues/1387

Thanks,
Thanuja

-- 
*Thanuja Lakmal*
Senior Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94715979891 +94758009992
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] MSF4J level support to get resource template of a http request

2017-05-30 Thread Ishara Cooray
Hi Thusitha,

I could not observe a property called "method" in my Request object.

I noticed that,

we have *msf4j-core-2.3.0-m2.jar* and *workspace-service-0.8.2.jar *in
place.

*workspace-service-0.8.2.jar *uses
* msf4j 2.1.0*
So at  runtime it picks from the *workspace-service-0.8.2.jar *




*@Viraj,*
Can we please get the msf4j version updated to it's latest version in
ballerina-parent/*pom.xml*

Currently it is 2.1.0


Thanks & Regards,
Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512 <+94%2077%20262%209512>
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

On Mon, May 29, 2017 at 10:06 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Ishara,
>
> You can access the actual method that will get invoke at the Interceptor
> level
> e.g. request.getProperty("method");[1] So then you can get the @Path
> value of the method and compare that with the request.getUri().
>
> [1] - https://github.com/wso2/msf4j/blob/v2.3.0-m2/core/src/main
> /java/org/wso2/msf4j/internal/router/HttpMethodInfo.java#L174
>
> Thanks
> Thusitha
>
> On Mon, May 29, 2017 at 1:51 AM, Ishara Cooray  wrote:
>
>> Ths usecase behind this is,
>>
>> we have scopes defined in apim product REST APIs for each resource path
>> as below.
>>
>> /apis/{apiId}:
>>
>> #-
>>
>> # Retrieve the details of an API definition
>>
>> #-
>>
>>   get:
>>
>> x-scope: apim:api_view
>>
>> x-wso2-curl: "curl -k -H \"Authorization: Bearer
>> ae4eae22-3f65-387b-a171-d37eaa366fa8\" https://127.0.0.1:9443/api/am/
>> publisher/v1.0/apis/7a2298c4-c905-403f-8fac-38c73301631f"
>>
>> ..
>>
>>
>> We are keeping track of these resource to scope mapping and at the time
>> of a new request, we need to validate the scope.
>>
>> But, the request coming with a value(206e1b0b-a48e-47c9-95d0-3eb85544cf2e)
>> for the variable(apiId), hence unable to find the resource template to
>> match unless we do a string manipulation(we are maintaining a map for the
>> resource to scope mapping).
>>
>>
>> We better avoid string manipulations as much as possible because this
>> will take place in gateway.
>>
>>
>> Therefore need to check the possibility of supporting this from MSF4J
>> level so that we can get template info from the Request object itself.
>>
>>
>>
>>
>> Thanks & Regards,
>> Ishara Cooray
>> Senior Software Engineer
>> Mobile : +9477 262 9512 <+94%2077%20262%209512>
>> WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> On Mon, May 29, 2017 at 12:40 PM, Ishara Cooray  wrote:
>>
>>> Hi,
>>>
>>> We have a requirement to identify the request template for a given http
>>> request.
>>>
>>> For example,
>>> *Req: *
>>> /api/am/publisher/v1.0/apis/206e1b0b-a48e-47c9-95d0-3eb85544cf2e
>>>
>>> *Req path:*
>>> /apis/206e1b0b-a48e-47c9-95d0-3eb85544cf2e
>>>
>>> *Need *to identify corresponding *template as *
>>> apis/{apiId}
>>>
>>> Is there a way to get this info from the MSF4J level?
>>>
>>>
>>> Thanks & Regards,
>>> Ishara Cooray
>>> Senior Software Engineer
>>> Mobile : +9477 262 9512 <+94%2077%20262%209512>
>>> WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>
>>
>
>
> --
> Thusitha Dayaratne
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809 <+94%2071%20275%206809>
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
> 
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev