Re: [Dev] Bulk deleting files with a pattern in file connector

2016-10-17 Thread Vivekananthan Sivanayagam
Hi ,

It is released and published in the store[1] and updated the doc [2] also.

[1]
https://store.wso2.com/store/assets/esbconnector/details/48bab332-c6a6-4f5a-9b79-17e29c7ad4c6
[2]
https://docs.wso2.com/display/ESBCONNECTORS/Working+with+the+File+Connector+Version+2#WorkingwiththeFileConnectorVersion2-delete

Vivekananthan Sivanayagam
Associate Software Engineer | WSO2
E:vivekanant...@wso2.com
M:+94752786138

On Tue, Oct 18, 2016 at 9:02 AM, Malaka Silva  wrote:

> IMO we may not require that at the moment. Will proceed with the one level
> for the moment.
>
> On Mon, Oct 17, 2016 at 11:09 PM, Shazni Nazeer  wrote:
>
>> HI Vivekanandan,
>>
>> I implemented this intentionally and had the same concern whether it
>> should be recursive. I thought it should not be. But if we need recursive
>> delete IMO it should only be optional, meaning that it shouldn't be the
>> default. May be we can include it as another parameter with 'yes/no" values.
>>
>> @Malaka - Do we need recursive delete. If needed I can implement and send
>> a PR.
>>
>> Shazni Nazeer
>> Associate Technical Lead | WSO2
>>
>> Mob : +94 37331
>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>> Blog : http://shazninazeer.blogspot.com
>>
>> 
>>
>> On Mon, Oct 17, 2016 at 6:02 PM, Vivekananthan Sivanayagam <
>> vivekanant...@wso2.com> wrote:
>>
>>> Hi Malaka,
>>>
>>> I have tested and it deletes given pattern files only inside the given
>>> folder not the files inside the subfolder. If folder structure is below as
>>> described,
>>>
>>> Folder
>>>
>>>   Folder001
>>>
>>> test_001.txt
>>>
>>> test_002.txt
>>>
>>> Folder002
>>>
>>> Folder002.1
>>>
>>> test_0021.txt
>>>
>>> test_0022.txt
>>>
>>> test_003.txt
>>>
>>> test_004.txt
>>>
>>> Let's consider that the main folder is Folder and  Folder001, Folder002
>>> ,test_003.txt and test_004.txt are inside the main folder. We are using the
>>> delete operation to delete files inside the main folder(Folder) with
>>> the pattern "test_.*\.txt". It deletes only the files which are inside the
>>> main folder (test_003.txt and test_004.txt are deleted). It does not delete
>>> the files inside the subfolders(Folder001,Folder002).
>>>
>>> Do we need to consider the subfolders too? or can we release with this
>>> improvement?
>>>
>>> Vivekananthan Sivanayagam
>>> Associate Software Engineer | WSO2
>>> E:vivekanant...@wso2.com
>>> M:+94752786138
>>>
>>> On Mon, Oct 17, 2016 at 6:48 PM, Malaka Silva  wrote:
>>>
 Thx Shazni,

 @Vivekananthan - Can you please check and release.

 On Mon, Oct 17, 2016 at 6:36 PM, Shazni Nazeer  wrote:

> Hi Malaka,
>
> Please find the created jiira below and the PR in [2]
>
> [1] https://wso2.org/jira/browse/ESBCONNECT-135
> [2] https://github.com/wso2-extensions/esb-connector-file/pull/14
>
> Shazni Nazeer
> Associate Technical Lead | WSO2
>
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
> 
>
> On Mon, Oct 17, 2016 at 4:33 AM, Malaka Silva  wrote:
>
>> Hi Shazni,
>>
>> Create a jira to track this please.​​
>>
>> ​Feel free to contribute the improvement. :)
>>
>>
>> On Sun, Oct 16, 2016 at 8:11 PM, Vivekananthan Sivanayagam <
>> vivekanant...@wso2.com> wrote:
>>
>>> Hi ,
>>>
>>> The existing connector does not have this option to delete. It
>>> deletes only a single file or given folder, can not work for the 
>>> pattern at
>>> the moment.
>>>
>>> Vivekananthan Sivanayagam
>>> Associate Software Engineer | WSO2
>>> E:vivekanant...@wso2.com
>>> M:+94752786138
>>>
>>> On Sun, Oct 16, 2016 at 5:36 PM, Shazni Nazeer 
>>> wrote:
>>>
 Hi all,

 Just double checking, if there's a way to bulk delete files using
 the file connector. I tried different options but wasn't able to do 
 this.

 e.g: Given a pattern, Cal_*.xml, should delete Cal_1.xml,
 Cal_test.xml etc

 Do you guys know a way to achieve above using the file connector?

 If not, wouldn't this be a useful improvement for the
 file-connector [1]

 [1] https://docs.wso2.com/display/ESBCONNECTORS/Working+with
 +the+File+Connector+Version+2

 regards,

 Shazni Nazeer
 Associate Technical Lead | WSO2

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 

>>>
>>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Technical 

Re: [Dev] Email Notification under a proxy server

2016-10-17 Thread Tishan Dahanayakage
Hi Aneela,

I briefly went thorough the code before answering. This[1] is the line
where we populate the properties and then later we use that properties to
create a new session. I did not debug but it looks like we are setting
everything coming from the configuration. Can you please remote debug with
this source and check whether new custom properties are coming here or not?

[1]
https://github.com/wso2/carbon-analytics-common/blob/master/components/event-publisher/event-output-adapters/org.wso2.carbon.event.output.adapter.email/src/main/java/org/wso2/carbon/event/output/adapter/email/EmailEventAdapter.java#L164

/Tishan

On Mon, Oct 17, 2016 at 1:19 PM, Aneela Safdar  wrote:

> Hi Tishan,
>
> Thank you for your response once again.
>
> I have added the given keys from that document. Unfortunately I couldn't
> locate user and password keys for proxy authentication,
> After adding fields of proxy server and port, I am still getting same
> error. I am also concerned with the back end class of this email adapter,
> as it doesnot taking proxy related keys and making any use of them. Is this
> the problem? Any suggestions?
>
> 
> 
> safdar.anee...@gmail.com
> Aneela Safdar
> 
> smtp.gmail.com
> 587
> true
> true
>
> *  172.30.10.148
> 3128*
> 
> 8
> 100
> 2
> 1
> 
>
>
>
> [2016-10-17 12:46:02,732] ERROR {org.wso2.carbon.event.output.
> adapter.email.Emai
> lEventAdapter} -  Event dropped at Output Adapter 'AlertEmailPublisher'
> for tena
> nt id '-1234', Error in message format, Unknown SMTP host:
> smtp.googlemail.com
> javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
>   nested exception is:
> java.net.UnknownHostException: smtp.googlemail.com
> at com.sun.mail.smtp.SMTPTransport.openServer(
> SMTPTransport.java:1280)
> at com.sun.mail.smtp.SMTPTransport.protocolConnect(
> SMTPTransport.java:37
> 0)
> at javax.mail.Service.connect(Service.java:297)
> at javax.mail.Service.connect(Service.java:156)
> at javax.mail.Service.connect(Service.java:105)
> at javax.mail.Transport.send0(Transport.java:168)
> at javax.mail.Transport.send(Transport.java:98)
> at org.wso2.carbon.event.output.adapter.email.
> EmailEventAdapter$EmailSen
> der.run(EmailEventAdapter.java:306)
> at java.util.concurrent.Executors$RunnableAdapter.
> call(Executors.java:47
> 1)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 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)
> Caused by: java.net.UnknownHostException: smtp.gmail.com
> at java.net.AbstractPlainSocketImpl.connect(
> AbstractPlainSocketImpl.java
> :178)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> at java.net.Socket.connect(Socket.java:579)
> at java.net.Socket.connect(Socket.java:528)
> at com.sun.mail.util.SocketFetcher.createSocket(
> SocketFetcher.java:232)
> at com.sun.mail.util.SocketFetcher.getSocket(
> SocketFetcher.java:189)
> at com.sun.mail.smtp.SMTPTransport.openServer(
> SMTPTransport.java:1250)
> ... 12 more
>
>
>
> Regards, Aneela Safdar
>
>
> --
> *From:* Tishan Dahanayakage 
> *To:* Aneela Safdar 
> *Cc:* WSO2 Developers' List 
> *Sent:* Monday, October 17, 2016 9:53 AM
> *Subject:* Re: [Dev] Email Notification under a proxy server
>
> Hi Aneela,
>
> Please use following doc to id the keys and then add those as new property
> element to the file and try.
>
> https://javamail.java.net/nonav/docs/api/com/sun/mail/
> smtp/package-summary.html
>
> Thanks
> /Tishan
>
> On Thu, Oct 13, 2016 at 9:27 PM, Aneela Safdar 
> wrote:
>
> Hi Tishan,
>
> Thanks for response.
>
> I was wondering there are no properties key for proxy server ip and its
> port, also for username and password for authentication from proxy. All I
> could see in output-event-adapter.xml are those which I have already used.
>
> 
> 
> safdar. anee...@gmail.com
> 
> Aneela Safdar
> * 
> smtp. googlemail.com
> 
> 465
> true
>
> true
> 
> 8
> 100
>  2
> 1
> 
>
> Can you tell me what should be the keys for following values
>
> proxy server ip
> proxy server port
> proxy authentication username
> proxy authentication password
>
> Thanks in advance.
>
> Regards,
> Aneela Safdar
>
>
> --
> 

Re: [Dev] [IS] C5 Support for filtering

2016-10-17 Thread Johann Nallathamby
On Tue, Oct 18, 2016 at 10:05 AM, Vindula Jayawardana 
wrote:

> Hi All,
>
> With the current user core implementation we support only the equal filter
> (e.g. userName Eq "john"). However SCIM 2.0 specification [1] specify total
> of 10 such simple filters and complex filters which are combinations of
> simple filters using logical and grouping operators (e.g. userType ne
> "Employee" and not (emails co "example.com" or emails.value co "
> example.org")). As we are in the process of C5 implementation, have we
> considered the other filter type implementations as well?
>

Yes we need to consider these features in the extended user-core
implementation.

>
> Moreover if we are supporting the complex filters, are we supporting it by
> simple filter by filter basis or the entire complex filter as a whole? If
> we are looking for the simple filter by filter basis, there will be
> performance issues as well.
>

It is better if we provide complex filters from extended user-core itself
for performance reasons. However if time doesn't permit to implement all
those APIs, we can have a scim UserManager implementation which will call
multiple simple filters and combine the result and return. Obviously as you
said performance of such implementation will be low. But it is acceptable
as an interim solution until extended user-core implementation supports all
the filters.

>
> Any thoughts on the matter is highly appreciated.
>
> [1] https://tools.ietf.org/html/rfc7644#section-3.4.2.2
>
> Thank you,
>
> *Vindula Jayawardana*
> Trainee Software Engineer
> Mobile : +94 713 462554
> vind...@wso2.com
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Technical Lead & Product Lead of WSO2 Identity Server
Governance Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Siddhi] [Markov Models Extension] What is the stored location of trained Markov matrices?

2016-10-17 Thread Bhashinee Nirmali
Hi All,

I'm trying the Markov Models Extension of WSO2 CEP. I need to know the
location where the newly built matrices are stored in. And do I need to
built the matrix again after shutting down the CEP or is the created matrix
still there in the memory?

Thanks

Undergraduate
Faculty of Information Technology
University of Moratuwa
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] C5 Support for filtering

2016-10-17 Thread Vindula Jayawardana
Hi All,

With the current user core implementation we support only the equal filter
(e.g. userName Eq "john"). However SCIM 2.0 specification [1] specify total
of 10 such simple filters and complex filters which are combinations of
simple filters using logical and grouping operators (e.g. userType ne
"Employee" and not (emails co "example.com" or emails.value co "example.org")).
As we are in the process of C5 implementation, have we considered the other
filter type implementations as well?

Moreover if we are supporting the complex filters, are we supporting it by
simple filter by filter basis or the entire complex filter as a whole? If
we are looking for the simple filter by filter basis, there will be
performance issues as well.

Any thoughts on the matter is highly appreciated.

[1] https://tools.ietf.org/html/rfc7644#section-3.4.2.2

Thank you,

*Vindula Jayawardana*
Trainee Software Engineer
Mobile : +94 713 462554
vind...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-10-17 Thread Rukshan Premathunga
Hi Christ,

seems you have offset DAS by 10007. So can you check whether provided URL
are accessible from the APIM node. Also can you confirm you have deploy the
Capp in the DAS_HOME/repository/deployment/server/carbonapps directory. If
cApp is is placed correctly, please login to the DAS management console and
try to find records in the table under Data explorer menu.

Thanks and Regards

On Tue, Oct 18, 2016 at 9:20 AM, christ Feng  wrote:

> Hi, rukshan.I am sorry to disturb you again.
>
> Following your blog ,I configured all my nodes .This time no error on
> gateway node and no stats show in publisher or store.  And on store node
> shows this logs:
>
> [2016-10-18 11:31:39,131]  INFO - ReceiverGroup Resending the failed
> published data...
> [2016-10-18 11:31:44,134]  WARN - AccessConfiguration Error loading
> properties from file: access-log.properties
> [2016-10-18 11:31:44,207]  INFO - TimeoutHandler This engine will expire
> all callbacks after : 120 seconds, irrespective of the timeout action,
> after the specified or optional timeout
> [2016-10-18 11:31:44,739]  INFO - ReceiverGroup Resending the failed
> published data...
> [2016-10-18 11:31:48,277]  INFO - ReceiverGroup Resending the failed
> published data...
>
> In the DAS console, i can see the Data synchronization every 5 mins, but
> cannot view stats.
> Is that some place i configured wrong?
>
> The attachment is my configured api-manager.xml.
>
> Thanks and Regards
>
> 2016-10-17 16:29 GMT+08:00 christ Feng :
>
>> Thank you rukshan,
>>
>> This problem have already Confused me for a week. I will try your method
>> to slove this.
>>
>> Thanks a lot.
>>
>> 2016-10-17 16:18 GMT+08:00 Rukshan Premathunga :
>>
>>> HI Chirst,
>>>
>>> Yes. Please configure on all the nodes using api-manager.xml
>>>
>>> Thanks and Regards
>>>
>>> On Mon, Oct 17, 2016 at 1:46 PM, christ Feng 
>>> wrote:
>>>
 Hi, rukshan,

 I really configure analytics using admin-dashboard on publisher node.
 I clustering APIM for 4 nodes ,publisher,store,gataway and keymanager. In
 your configuration, which node should i to configure. Or on every node
 ?


 Thanks and Regards

 2016-10-17 15:53 GMT+08:00 Rukshan Premathunga :

> Hi Christ,
>
> Seems you have configure analytics using admin-dashboard. Can you try
> to configure analytics using the api-manager.xml[1].
>
> [1] http://rukspot.com/configure_wso2_apim_analytics_using_xml.html
>
> Thanks and Regards
>
> On Mon, Oct 17, 2016 at 12:49 PM, christ Feng 
> wrote:
>
>> Hi , rukshan.Thanks for your reply.
>>
>> My offset on gateway node is 10003 . The error occured on gateway
>> node.
>>
>> The attachment is my api-manager.xml in the gateway node.
>>
>> Thanks and Regards
>>
>>
>>
>> 2016-10-17 14:37 GMT+08:00 Rukshan Premathunga :
>>
>>> Hi Christ,
>>>
>>> Can you please attached your api-manager.xml in the gateway node.
>>> This could be a configuration isse.
>>>
>>> Thanks and Regards
>>>
>>>
>>> On Mon, Oct 17, 2016 at 10:32 AM, Abimaran Kugathasan <
>>> abima...@wso2.com> wrote:
>>>
 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+Runtim
 e+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 

Re: [Dev] [AS 5.3.0]How to delete a Tenant?

2016-10-17 Thread wenxzhen
Before deleting a Tenant, the Tenant will be disabled or inactivated. If a 
Tenant is already in INACTIVE, deleting a TENANT will be still in problem?


Thanks, Wenxing


-- Original --
From:  "Danushka Fernando";;
Send time: Tuesday, Oct 18, 2016 11:35 AM
To: "wenxzhen"; 
Cc: "Thusitha Thilina Dayaratne"; "dev"; 
Subject:  Re: [Dev] [AS 5.3.0]How to delete a Tenant?



Thing is when you delete a tenant, there are lot of things to delete. Starting 
from DB entries for tenant and userstore, registry data, artifacts, etc. 
Because if you are truly deleting a tenant then it should be possible to create 
a tenant with same domain name and also not to contain something that previous 
tenant created inside new tenant.

Thanks & RegardsDanushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729





 
On Tue, Oct 18, 2016 at 7:05 AM, wenxzhen  wrote:
The problem is that we will have many "old" tenants and it's not convenient 
when we are doing verification during the development.


What's the stopper to delete a Tenant? Can we do the delete with SQL statement 
"DELETE on CASCADE"?


Thanks, Wenxing


-- Original --
From:  "Thusitha Thilina Dayaratne";;
Send time: Tuesday, Oct 18, 2016 9:59 AM
To: "wenxzhen"; 
Cc: "dev"; 
Subject:  Re: [Dev] [AS 5.3.0]How to delete a Tenant?



Hi Wenxing,

There is no out of the box way to delete a tenant. But you can deactivate the 
unwanted tenants.


Thanks
Thusitha 


On Tue, Oct 18, 2016 at 6:56 AM, wenxzhen  wrote:
Dear all,

I searched the archive mail list, but can't find the answer. Please help to 
advice whether it's possible to delete a Tenant? and How?


Thank you very much,
Regards, Wenxing

___
 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















 




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


Re: [Dev] Bulk deleting files with a pattern in file connector

2016-10-17 Thread Malaka Silva
IMO we may not require that at the moment. Will proceed with the one level
for the moment.

On Mon, Oct 17, 2016 at 11:09 PM, Shazni Nazeer  wrote:

> HI Vivekanandan,
>
> I implemented this intentionally and had the same concern whether it
> should be recursive. I thought it should not be. But if we need recursive
> delete IMO it should only be optional, meaning that it shouldn't be the
> default. May be we can include it as another parameter with 'yes/no" values.
>
> @Malaka - Do we need recursive delete. If needed I can implement and send
> a PR.
>
> Shazni Nazeer
> Associate Technical Lead | WSO2
>
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
> 
>
> On Mon, Oct 17, 2016 at 6:02 PM, Vivekananthan Sivanayagam <
> vivekanant...@wso2.com> wrote:
>
>> Hi Malaka,
>>
>> I have tested and it deletes given pattern files only inside the given
>> folder not the files inside the subfolder. If folder structure is below as
>> described,
>>
>> Folder
>>
>>   Folder001
>>
>> test_001.txt
>>
>> test_002.txt
>>
>> Folder002
>>
>> Folder002.1
>>
>> test_0021.txt
>>
>> test_0022.txt
>>
>> test_003.txt
>>
>> test_004.txt
>>
>> Let's consider that the main folder is Folder and  Folder001, Folder002
>> ,test_003.txt and test_004.txt are inside the main folder. We are using the
>> delete operation to delete files inside the main folder(Folder) with
>> the pattern "test_.*\.txt". It deletes only the files which are inside the
>> main folder (test_003.txt and test_004.txt are deleted). It does not delete
>> the files inside the subfolders(Folder001,Folder002).
>>
>> Do we need to consider the subfolders too? or can we release with this
>> improvement?
>>
>> Vivekananthan Sivanayagam
>> Associate Software Engineer | WSO2
>> E:vivekanant...@wso2.com
>> M:+94752786138
>>
>> On Mon, Oct 17, 2016 at 6:48 PM, Malaka Silva  wrote:
>>
>>> Thx Shazni,
>>>
>>> @Vivekananthan - Can you please check and release.
>>>
>>> On Mon, Oct 17, 2016 at 6:36 PM, Shazni Nazeer  wrote:
>>>
 Hi Malaka,

 Please find the created jiira below and the PR in [2]

 [1] https://wso2.org/jira/browse/ESBCONNECT-135
 [2] https://github.com/wso2-extensions/esb-connector-file/pull/14

 Shazni Nazeer
 Associate Technical Lead | WSO2

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 

 On Mon, Oct 17, 2016 at 4:33 AM, Malaka Silva  wrote:

> Hi Shazni,
>
> Create a jira to track this please.​​
>
> ​Feel free to contribute the improvement. :)
>
>
> On Sun, Oct 16, 2016 at 8:11 PM, Vivekananthan Sivanayagam <
> vivekanant...@wso2.com> wrote:
>
>> Hi ,
>>
>> The existing connector does not have this option to delete. It
>> deletes only a single file or given folder, can not work for the pattern 
>> at
>> the moment.
>>
>> Vivekananthan Sivanayagam
>> Associate Software Engineer | WSO2
>> E:vivekanant...@wso2.com
>> M:+94752786138
>>
>> On Sun, Oct 16, 2016 at 5:36 PM, Shazni Nazeer 
>> wrote:
>>
>>> Hi all,
>>>
>>> Just double checking, if there's a way to bulk delete files using
>>> the file connector. I tried different options but wasn't able to do 
>>> this.
>>>
>>> e.g: Given a pattern, Cal_*.xml, should delete Cal_1.xml,
>>> Cal_test.xml etc
>>>
>>> Do you guys know a way to achieve above using the file connector?
>>>
>>> If not, wouldn't this be a useful improvement for the file-connector
>>> [1]
>>>
>>> [1] https://docs.wso2.com/display/ESBCONNECTORS/Working+with
>>> +the+File+Connector+Version+2
>>>
>>> regards,
>>>
>>> Shazni Nazeer
>>> Associate Technical Lead | WSO2
>>>
>>> Mob : +94 37331
>>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>>> Blog : http://shazninazeer.blogspot.com
>>>
>>> 
>>>
>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Technical Lead
> 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
>


>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Technical Lead
>>> M: +94 777 219 791
>>> 

Re: [Dev] [AS 5.3.0]How to delete a Tenant?

2016-10-17 Thread Danushka Fernando
Thing is when you delete a tenant, there are lot of things to delete.
Starting from DB entries for tenant and userstore, registry data,
artifacts, etc. Because if you are truly deleting a tenant then it should
be possible to create a tenant with same domain name and also not to
contain something that previous tenant created inside new tenant.

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Tue, Oct 18, 2016 at 7:05 AM, wenxzhen  wrote:

> The problem is that we will have many "old" tenants and it's not
> convenient when we are doing verification during the development.
>
> What's the stopper to delete a Tenant? Can we do the delete with SQL
> statement "DELETE on CASCADE"?
>
> Thanks, Wenxing
>
> -- Original --
> *From: * "Thusitha Thilina Dayaratne";;
> *Send time:* Tuesday, Oct 18, 2016 9:59 AM
> *To:* "wenxzhen";
> *Cc:* "dev";
> *Subject: * Re: [Dev] [AS 5.3.0]How to delete a Tenant?
>
> Hi Wenxing,
>
> There is no out of the box way to delete a tenant. But you can deactivate
> the unwanted tenants.
>
> Thanks
> Thusitha
>
> On Tue, Oct 18, 2016 at 6:56 AM, wenxzhen  wrote:
>
>> Dear all,
>>
>> I searched the archive mail list, but can't find the answer. Please help
>> to advice whether it's possible to delete a Tenant? and How?
>>
>> Thank you very much,
>> Regards, Wenxing
>>
>> ___
>> 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
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS 5.3.0]How to delete a Tenant?

2016-10-17 Thread wenxzhen
The problem is that we will have many "old" tenants and it's not convenient 
when we are doing verification during the development.


What's the stopper to delete a Tenant? Can we do the delete with SQL statement 
"DELETE on CASCADE"?


Thanks, Wenxing


-- Original --
From:  "Thusitha Thilina Dayaratne";;
Send time: Tuesday, Oct 18, 2016 9:59 AM
To: "wenxzhen"; 
Cc: "dev"; 
Subject:  Re: [Dev] [AS 5.3.0]How to delete a Tenant?



Hi Wenxing,

There is no out of the box way to delete a tenant. But you can deactivate the 
unwanted tenants.


Thanks
Thusitha 


On Tue, Oct 18, 2016 at 6:56 AM, wenxzhen  wrote:
Dear all,

I searched the archive mail list, but can't find the answer. Please help to 
advice whether it's possible to delete a Tenant? and How?


Thank you very much,
Regards, Wenxing

___
 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___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS 5.3.0]How to delete a Tenant?

2016-10-17 Thread Thusitha Thilina Dayaratne
Hi Wenxing,

There is no out of the box way to delete a tenant. But you can deactivate
the unwanted tenants.

Thanks
Thusitha

On Tue, Oct 18, 2016 at 6:56 AM, wenxzhen  wrote:

> Dear all,
>
> I searched the archive mail list, but can't find the answer. Please help
> to advice whether it's possible to delete a Tenant? and How?
>
> Thank you very much,
> Regards, Wenxing
>
> ___
> 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

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


[Dev] [AS 5.3.0]How to delete a Tenant?

2016-10-17 Thread wenxzhen
Dear all,

I searched the archive mail list, but can't find the answer. Please help to 
advice whether it's possible to delete a Tenant? and How?


Thank you very much,
Regards, Wenxing___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-10-17 Thread Kamidu Punchihewa
Hi All,

I am getting this issue while releasing the "carbon-device-mgt-plugins". I
have tried releasing few time with different repository locations and after
getting a new session also. Still getting this error.

As given below the SCM URL is available on the pom file.


https://github.com/wso2/carbon-device-mgt-plugins.git

scm:git:https://github.com/wso2/carbon-device-mgt-plugins.git


scm:git:https://github.com/wso2/carbon-device-mgt-plugins.git
HEAD


Please find the console out put given below,

[INFO] Scanning for projects...
[INFO]

[INFO] Reactor Build Order:
[INFO]
[INFO] WSO2 Carbon - Device Management Plugins Parent
[INFO] WSO2 Carbon - Mobile Plugins
[INFO] WSO2 Carbon - Mobile Plugins
[INFO] WSO2 Carbon - Mobile Device Management Impl
[INFO] WSO2 Carbon - Mobile Plugins
[INFO] WSO2 Carbon - Mobile Device Management Android Impl
[INFO] WSO2 Carbon - Android JAX-RS API
[INFO] WSO2 Carbon - Mobile Android UI
[INFO] WSO2 Carbon - Mobile Plugins
[INFO] WSO2 Carbon - Mobile Device Management Windows Impl
[INFO] WSO2 Carbon - Windows JAX-RS API
[INFO] WSO2 Carbon - Mobile Windows UI
[INFO] WSO2 Carbon - EMM Server UI
[INFO] WSO2 Carbon - Startup Handler That Prints MDM End-User Web-App URL
[INFO] WSO2 Carbon - IoT Plugins
[INFO] WSO2 Carbon - Arduino Plugin
[INFO] WSO2 Carbon - IoT Server Android Sense Analytics capp
[INFO] WSO2 Carbon - IoT Base Plugin
[INFO] WSO2 Carbon - IoT Device Management Common Impl
[INFO] WSO2 Carbon - AndroidSense DeviceType Plugin
[INFO] WSO2 Carbon - Android Sense API
[INFO] WSO2 Carbon - IoT Server Android Sense UI
[INFO] WSO2 Carbon - Arduino Plugin
[INFO] WSO2 Carbon - IoT Server Arduino Management Plugin
[INFO] WSO2 Carbon - IoT Server Arduino Service API
[INFO] WSO2 Carbon - IoT Server Arduino UI
[INFO] WSO2 Carbon - IoT Server Arduino Analytics capp
[INFO] WSO2 Carbon - Arduino Plugin
[INFO] WSO2 Carbon - IoT Server RaspberryPi Management Plugin
[INFO] WSO2 Carbon - IoT Server RaspberryPi UI
[INFO] WSO2 Carbon - IoT Server RaspberryPi API
[INFO] WSO2 Carbon - IoT Server Raspberrypi Analytics capp
[INFO] WSO2 Carbon - Device Mgt Input Adaptor Extensions Module
[INFO] WSO2 Carbon - Arduino Plugin
[INFO] WSO2 Carbon - IoT Server VirtualFireAlarm Management Plugin
[INFO] WSO2 Carbon - IoT Server Virtual Firealarm UI
[INFO] WSO2 Carbon - IoT Server VirtualFireAlarm Advanced Agent
[INFO] WSO2 Carbon - IoT Server VirtualFireAlarm Agent
[INFO] WSO2 Carbon - IoT Server VirtualFireAlarm API
[INFO] WSO2 Carbon - IoT Server SCEP Server API
[INFO] WSO2 Carbon - IoT Server UI
[INFO] WSO2 Carbon - Device Mgt Output MQTT Adaptor Module
[INFO] WSO2 Carbon - Device Mgt Output MQTT Adaptor Module
[INFO] WSO2 Carbon - Event Output UI Adapter Module
[INFO] WSO2 - Webapp for UI Output Event Adapter
[INFO] WSO2 Carbon - Device Mgt Input Adaptor Module - Http
[INFO] WSO2 Carbon - Device Mgt Input Adaptor Module - MQTT
[INFO] WSO2 Carbon - Device Mgt Input Adaptor Module - XMPP
[INFO] WSO2 Carbon - IoT Analytics Scripts
[INFO] WSO2 Carbon - IoT Server  Analytics C-APP
[INFO] WSO2 Carbon - Mobile Plugins Extensions
[INFO] WSO2 Carbon - App Manager WSO2 MDM OSGI Connector Component
[INFO] WSO2 Carbon - Device Management EMM Plugins Feature
[INFO] WSO2 Carbon - Device Management EMM Base Plugin Feature
[INFO] WSO2 Carbon - Mobile Device Management Feature
[INFO] WSO2 Carbon - Device Management Android Plugin Feature
[INFO] WSO2 Carbon - Android Device Management Feature
[INFO] WSO2 Carbon - Device Management Windows Plugin Feature
[INFO] WSO2 Carbon - Windows Device Management Feature
[INFO] WSO2 Carbon - Device Management IoT Plugins Feature
[INFO] WSO2 Carbon - IoT Server IoT Analytics Feature
[INFO] WSO2 Carbon - IoT Server Analytics Feature
[INFO] WSO2 Carbon - IoT Server Android Sense Device Feature
[INFO] WSO2 Carbon - IoT Server Android Sense Feature
[INFO] WSO2 Carbon - IoT Server Arduino Device Feature
[INFO] WSO2 Carbon - IoT Server Arduino Feature
[INFO] WSO2 Carbon - IoT Server RaspberryPi Device Feature
[INFO] WSO2 Carbon - IoT Server RaspberryPi Feature
[INFO] WSO2 Carbon - IoT Server VirtualFireAlarm Device Feature
[INFO] WSO2 Carbon - IoT Server VirtualFireAlarm Feature
[INFO] WSO2 Carbon - Device Management IoT Base Plugin Feature
[INFO] WSO2 Carbon - IoT Device Management Feature
[INFO] WSO2 Carbon - IoT Device Management Feature
[INFO] IoT Server Device types
[INFO] IoT Server Device types Feature
[INFO] WSO2 Carbon - Device Management Extensions
[INFO] WSO2 Carbon - App management MDM OSGI Connector
[INFO]

[INFO]

[INFO] Building WSO2 Carbon - Device Management Plugins Parent
2.2.4-SNAPSHOT
[INFO]

[INFO]
[INFO] --- maven-release-plugin:2.5.1:clean (default-cli) @
carbon-device-mgt-plugins-parent ---
[INFO] Cleaning up after release...

Re: [Dev] Bulk deleting files with a pattern in file connector

2016-10-17 Thread Shazni Nazeer
HI Vivekanandan,

I implemented this intentionally and had the same concern whether it should
be recursive. I thought it should not be. But if we need recursive delete
IMO it should only be optional, meaning that it shouldn't be the default.
May be we can include it as another parameter with 'yes/no" values.

@Malaka - Do we need recursive delete. If needed I can implement and send a
PR.

Shazni Nazeer
Associate Technical Lead | WSO2

Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com



On Mon, Oct 17, 2016 at 6:02 PM, Vivekananthan Sivanayagam <
vivekanant...@wso2.com> wrote:

> Hi Malaka,
>
> I have tested and it deletes given pattern files only inside the given
> folder not the files inside the subfolder. If folder structure is below as
> described,
>
> Folder
>
>   Folder001
>
> test_001.txt
>
> test_002.txt
>
> Folder002
>
> Folder002.1
>
> test_0021.txt
>
> test_0022.txt
>
> test_003.txt
>
> test_004.txt
>
> Let's consider that the main folder is Folder and  Folder001, Folder002
> ,test_003.txt and test_004.txt are inside the main folder. We are using the
> delete operation to delete files inside the main folder(Folder) with
> the pattern "test_.*\.txt". It deletes only the files which are inside the
> main folder (test_003.txt and test_004.txt are deleted). It does not delete
> the files inside the subfolders(Folder001,Folder002).
>
> Do we need to consider the subfolders too? or can we release with this
> improvement?
>
> Vivekananthan Sivanayagam
> Associate Software Engineer | WSO2
> E:vivekanant...@wso2.com
> M:+94752786138
>
> On Mon, Oct 17, 2016 at 6:48 PM, Malaka Silva  wrote:
>
>> Thx Shazni,
>>
>> @Vivekananthan - Can you please check and release.
>>
>> On Mon, Oct 17, 2016 at 6:36 PM, Shazni Nazeer  wrote:
>>
>>> Hi Malaka,
>>>
>>> Please find the created jiira below and the PR in [2]
>>>
>>> [1] https://wso2.org/jira/browse/ESBCONNECT-135
>>> [2] https://github.com/wso2-extensions/esb-connector-file/pull/14
>>>
>>> Shazni Nazeer
>>> Associate Technical Lead | WSO2
>>>
>>> Mob : +94 37331
>>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>>> Blog : http://shazninazeer.blogspot.com
>>>
>>> 
>>>
>>> On Mon, Oct 17, 2016 at 4:33 AM, Malaka Silva  wrote:
>>>
 Hi Shazni,

 Create a jira to track this please.​​

 ​Feel free to contribute the improvement. :)


 On Sun, Oct 16, 2016 at 8:11 PM, Vivekananthan Sivanayagam <
 vivekanant...@wso2.com> wrote:

> Hi ,
>
> The existing connector does not have this option to delete. It deletes
> only a single file or given folder, can not work for the pattern at the
> moment.
>
> Vivekananthan Sivanayagam
> Associate Software Engineer | WSO2
> E:vivekanant...@wso2.com
> M:+94752786138
>
> On Sun, Oct 16, 2016 at 5:36 PM, Shazni Nazeer 
> wrote:
>
>> Hi all,
>>
>> Just double checking, if there's a way to bulk delete files using the
>> file connector. I tried different options but wasn't able to do this.
>>
>> e.g: Given a pattern, Cal_*.xml, should delete Cal_1.xml,
>> Cal_test.xml etc
>>
>> Do you guys know a way to achieve above using the file connector?
>>
>> If not, wouldn't this be a useful improvement for the file-connector
>> [1]
>>
>> [1] https://docs.wso2.com/display/ESBCONNECTORS/Working+with
>> +the+File+Connector+Version+2
>>
>> regards,
>>
>> Shazni Nazeer
>> Associate Technical Lead | WSO2
>>
>> Mob : +94 37331
>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>> Blog : http://shazninazeer.blogspot.com
>>
>> 
>>
>
>


 --

 Best Regards,

 Malaka Silva
 Senior Technical Lead
 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

>>>
>>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Technical Lead
>> 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/
>> 
>> 

Re: [Dev] Bulk deleting files with a pattern in file connector

2016-10-17 Thread Vivekananthan Sivanayagam
Hi Malaka,

I have tested and it deletes given pattern files only inside the given
folder not the files inside the subfolder. If folder structure is below as
described,

Folder

  Folder001

test_001.txt

test_002.txt

Folder002

Folder002.1

test_0021.txt

test_0022.txt

test_003.txt

test_004.txt

Let's consider that the main folder is Folder and  Folder001, Folder002
,test_003.txt and test_004.txt are inside the main folder. We are using the
delete operation to delete files inside the main folder(Folder) with
the pattern "test_.*\.txt". It deletes only the files which are inside the
main folder (test_003.txt and test_004.txt are deleted). It does not delete
the files inside the subfolders(Folder001,Folder002).

Do we need to consider the subfolders too? or can we release with this
improvement?

Vivekananthan Sivanayagam
Associate Software Engineer | WSO2
E:vivekanant...@wso2.com
M:+94752786138

On Mon, Oct 17, 2016 at 6:48 PM, Malaka Silva  wrote:

> Thx Shazni,
>
> @Vivekananthan - Can you please check and release.
>
> On Mon, Oct 17, 2016 at 6:36 PM, Shazni Nazeer  wrote:
>
>> Hi Malaka,
>>
>> Please find the created jiira below and the PR in [2]
>>
>> [1] https://wso2.org/jira/browse/ESBCONNECT-135
>> [2] https://github.com/wso2-extensions/esb-connector-file/pull/14
>>
>> Shazni Nazeer
>> Associate Technical Lead | WSO2
>>
>> Mob : +94 37331
>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>> Blog : http://shazninazeer.blogspot.com
>>
>> 
>>
>> On Mon, Oct 17, 2016 at 4:33 AM, Malaka Silva  wrote:
>>
>>> Hi Shazni,
>>>
>>> Create a jira to track this please.​​
>>>
>>> ​Feel free to contribute the improvement. :)
>>>
>>>
>>> On Sun, Oct 16, 2016 at 8:11 PM, Vivekananthan Sivanayagam <
>>> vivekanant...@wso2.com> wrote:
>>>
 Hi ,

 The existing connector does not have this option to delete. It deletes
 only a single file or given folder, can not work for the pattern at the
 moment.

 Vivekananthan Sivanayagam
 Associate Software Engineer | WSO2
 E:vivekanant...@wso2.com
 M:+94752786138

 On Sun, Oct 16, 2016 at 5:36 PM, Shazni Nazeer  wrote:

> Hi all,
>
> Just double checking, if there's a way to bulk delete files using the
> file connector. I tried different options but wasn't able to do this.
>
> e.g: Given a pattern, Cal_*.xml, should delete Cal_1.xml, Cal_test.xml
> etc
>
> Do you guys know a way to achieve above using the file connector?
>
> If not, wouldn't this be a useful improvement for the file-connector
> [1]
>
> [1] https://docs.wso2.com/display/ESBCONNECTORS/Working+with
> +the+File+Connector+Version+2
>
> regards,
>
> Shazni Nazeer
> Associate Technical Lead | WSO2
>
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
> 
>


>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Technical Lead
>>> 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
>>>
>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Technical Lead
> 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] WSO2 Committers += Anupama Pathirage

2016-10-17 Thread Anupama Pathirage
Hi,

Thanks a lot Malli... :) And also thanks a lot for all the support you have
given during the past period. It helped me a lot :)

On Mon, Oct 17, 2016 at 3:33 AM, Rajith Vitharana  wrote:

> Congrats akke :) :)
>
> On 17 October 2016 at 14:01, Dilshani Subasinghe 
> wrote:
>
>> Congrats :) :)
>>
>> On Mon, Oct 17, 2016 at 1:35 PM, Anjana Fernando  wrote:
>>
>>> Hi everyone,
>>>
>>> It's my pleasure to announce Anupama as a WSO2 committer. Anupama has
>>> made great contributions to WSO2 DSS/DAS in improving the products. In
>>> recognizing the work that has been done, she has been voted in as a WSO2
>>> committer. Anupama, welcome aboard and all the best! ..
>>>
>>> Cheers,
>>> Anjana.
>>> --
>>> *Anjana Fernando*
>>> Associate Director / Architect
>>> WSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Best Regards,
>>
>> Dilshani Subasinghe
>> Software Engineer - QA *|* WSO2
>> lean *|* enterprise *|* middleware
>>
>> Mobile : +94773375185
>> Blog: dilshani.me
>>
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajith Vitharana
>
> Senior Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
> 
>



-- 
Anupama Pathirage
Associate Technical Lead
WSO2, Inc.  http://wso2.com/
Email: anup...@wso2.com
Mobile:+94 71 8273 979
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Dynamic zip file download from Jaggery application

2016-10-17 Thread Chathura Dilan
Hi Godwin,

Yes, Jaggery File API is only working within Jaggery app context according
to documentation. so you will have to read it from Java and pass it to
jaggery. That's how we are doing with mobile apps.

On Mon, Oct 17, 2016 at 6:57 PM, Godwin Shrimal  wrote:

> Hi Chathura,
>
>
>
> Yes there is a better approach than  save those files in the jaggery app
>> itself. This is mainly because jaggery app is getting bulky, difficult for
>> clustering, and less security.
>>
>> What we have done for mobile app is store them in a secured place such as
>> /repository/resources/mobileapps (as the default location) with an
>> arbitrary name. It can be configurable to any location in the file system
>> or the network.
>>
>> That file can be read from its physical location using Java and and get
>> an input stream via Jaggery for download or you can directly read it from
>> Jaggery.
>>
>
> As per the offline discussion had with Senthuja and Nisal, we cannot
> access location such as /repository/resources/mobileapps from Jaggery.
>
>
> Thanks
> Godwin
>
>
>
>
>>
>> On Mon, Oct 17, 2016 at 6:27 PM, Dinusha Senanayaka 
>> wrote:
>>
>>> We have done something similar in AppM for mobile apps where publisher
>>> uploads binary (.apk etc) and users comes to store install these apps to
>>> device.  Download has handled as a byte stream and storage location is
>>> stored in property of app-manger.xml (${carbon.ho
>>> me}/repository/resources/mobileapps/) and HostObject
>>> method has been provided to get the location.
>>>
>>> @Chathura should be able to explain the logic more since he implemented
>>> this.
>>>
>>> Regards,
>>> Dinusha.
>>>
>>> On Mon, Oct 17, 2016 at 6:06 PM, Godwin Shrimal  wrote:
>>>
 Hi All,

 We need to dynamically create zip file and allow download it from
 jaggery application. For resolve the concurrent access of the system, we
 are going to create a directory with the time-stamp and archive that
 directory and allow user to download it. Then we need to create a separate
 cleanup task to clean those directories and archive files.

 We can create above zip files in jaggery application level (ex.
 jaggery/dashboard/resource/) and create a cleanup task in OSGI level to
 delete the files/directories periodically. Here we need to keep a configure
 to find the jaggery application context from OSGI level.

 Do we have a better approach for this or is it fine to use a
 configuration for particular jaggery context ?

 Thanks
 Godwin

 --
 *Godwin Amila Shrimal*
 Senior Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D *
 twitter: https://twitter.com/godwinamila
 

>>>
>>>
>>>
>>> --
>>> Dinusha Dilrukshi
>>> Associate Technical Lead
>>> WSO2 Inc.: http://wso2.com/
>>> Mobile: +94725255071
>>> Blog: http://dinushasblog.blogspot.com/
>>>
>>
>>
>>
>> --
>> Regards,
>>
>> Chatura Dilan Perera
>> *Associate Tech Lead** - WSO2 Inc.*
>> www.dilan.me
>>
>
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
> 
>



-- 
Regards,

Chatura Dilan Perera
*Associate Tech Lead** - WSO2 Inc.*
www.dilan.me
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Dynamic zip file download from Jaggery application

2016-10-17 Thread Godwin Shrimal
Hi Chathura,



Yes there is a better approach than  save those files in the jaggery app
> itself. This is mainly because jaggery app is getting bulky, difficult for
> clustering, and less security.
>
> What we have done for mobile app is store them in a secured place such as
> /repository/resources/mobileapps (as the default location) with an
> arbitrary name. It can be configurable to any location in the file system
> or the network.
>
> That file can be read from its physical location using Java and and get an
> input stream via Jaggery for download or you can directly read it from
> Jaggery.
>

As per the offline discussion had with Senthuja and Nisal, we cannot access
location such as /repository/resources/mobileapps from Jaggery.


Thanks
Godwin




>
> On Mon, Oct 17, 2016 at 6:27 PM, Dinusha Senanayaka 
> wrote:
>
>> We have done something similar in AppM for mobile apps where publisher
>> uploads binary (.apk etc) and users comes to store install these apps to
>> device.  Download has handled as a byte stream and storage location is
>> stored in property of app-manger.xml (${carbon.ho
>> me}/repository/resources/mobileapps/) and HostObject
>> method has been provided to get the location.
>>
>> @Chathura should be able to explain the logic more since he implemented
>> this.
>>
>> Regards,
>> Dinusha.
>>
>> On Mon, Oct 17, 2016 at 6:06 PM, Godwin Shrimal  wrote:
>>
>>> Hi All,
>>>
>>> We need to dynamically create zip file and allow download it from
>>> jaggery application. For resolve the concurrent access of the system, we
>>> are going to create a directory with the time-stamp and archive that
>>> directory and allow user to download it. Then we need to create a separate
>>> cleanup task to clean those directories and archive files.
>>>
>>> We can create above zip files in jaggery application level (ex.
>>> jaggery/dashboard/resource/) and create a cleanup task in OSGI level to
>>> delete the files/directories periodically. Here we need to keep a configure
>>> to find the jaggery application context from OSGI level.
>>>
>>> Do we have a better approach for this or is it fine to use a
>>> configuration for particular jaggery context ?
>>>
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D *
>>> twitter: https://twitter.com/godwinamila
>>> 
>>>
>>
>>
>>
>> --
>> Dinusha Dilrukshi
>> Associate Technical Lead
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>
>
>
> --
> Regards,
>
> Chatura Dilan Perera
> *Associate Tech Lead** - WSO2 Inc.*
> www.dilan.me
>



-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila

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


Re: [Dev] Dynamic zip file download from Jaggery application

2016-10-17 Thread Chathura Dilan
Hi Godwin,

Yes there is a better approach than  save those files in the jaggery app
itself. This is mainly because jaggery app is getting bulky, difficult for
clustering, and less security.

What we have done for mobile app is store them in a secured place such as
/repository/resources/mobileapps (as the default location) with an
arbitrary name. It can be configurable to any location in the file system
or the network.

That file can be read from its physical location using Java and and get an
input stream via Jaggery for download or you can directly read it from
Jaggery.


On Mon, Oct 17, 2016 at 6:27 PM, Dinusha Senanayaka 
wrote:

> We have done something similar in AppM for mobile apps where publisher
> uploads binary (.apk etc) and users comes to store install these apps to
> device.  Download has handled as a byte stream and storage location is
> stored in property of app-manger.xml (${carbon.
> home}/repository/resources/mobileapps/) and HostObject
> method has been provided to get the location.
>
> @Chathura should be able to explain the logic more since he implemented
> this.
>
> Regards,
> Dinusha.
>
> On Mon, Oct 17, 2016 at 6:06 PM, Godwin Shrimal  wrote:
>
>> Hi All,
>>
>> We need to dynamically create zip file and allow download it from jaggery
>> application. For resolve the concurrent access of the system, we are going
>> to create a directory with the time-stamp and archive that directory and
>> allow user to download it. Then we need to create a separate cleanup task
>> to clean those directories and archive files.
>>
>> We can create above zip files in jaggery application level (ex.
>> jaggery/dashboard/resource/) and create a cleanup task in OSGI level to
>> delete the files/directories periodically. Here we need to keep a configure
>> to find the jaggery application context from OSGI level.
>>
>> Do we have a better approach for this or is it fine to use a
>> configuration for particular jaggery context ?
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>> 
>>
>
>
>
> --
> Dinusha Dilrukshi
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>



-- 
Regards,

Chatura Dilan Perera
*Associate Tech Lead** - WSO2 Inc.*
www.dilan.me
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Bulk deleting files with a pattern in file connector

2016-10-17 Thread Malaka Silva
Thx Shazni,

@Vivekananthan - Can you please check and release.

On Mon, Oct 17, 2016 at 6:36 PM, Shazni Nazeer  wrote:

> Hi Malaka,
>
> Please find the created jiira below and the PR in [2]
>
> [1] https://wso2.org/jira/browse/ESBCONNECT-135
> [2] https://github.com/wso2-extensions/esb-connector-file/pull/14
>
> Shazni Nazeer
> Associate Technical Lead | WSO2
>
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
> 
>
> On Mon, Oct 17, 2016 at 4:33 AM, Malaka Silva  wrote:
>
>> Hi Shazni,
>>
>> Create a jira to track this please.​​
>>
>> ​Feel free to contribute the improvement. :)
>>
>>
>> On Sun, Oct 16, 2016 at 8:11 PM, Vivekananthan Sivanayagam <
>> vivekanant...@wso2.com> wrote:
>>
>>> Hi ,
>>>
>>> The existing connector does not have this option to delete. It deletes
>>> only a single file or given folder, can not work for the pattern at the
>>> moment.
>>>
>>> Vivekananthan Sivanayagam
>>> Associate Software Engineer | WSO2
>>> E:vivekanant...@wso2.com
>>> M:+94752786138
>>>
>>> On Sun, Oct 16, 2016 at 5:36 PM, Shazni Nazeer  wrote:
>>>
 Hi all,

 Just double checking, if there's a way to bulk delete files using the
 file connector. I tried different options but wasn't able to do this.

 e.g: Given a pattern, Cal_*.xml, should delete Cal_1.xml, Cal_test.xml
 etc

 Do you guys know a way to achieve above using the file connector?

 If not, wouldn't this be a useful improvement for the file-connector [1]

 [1] https://docs.wso2.com/display/ESBCONNECTORS/Working+with
 +the+File+Connector+Version+2

 regards,

 Shazni Nazeer
 Associate Technical Lead | WSO2

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 

>>>
>>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Technical Lead
>> 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
>>
>
>


-- 

Best Regards,

Malaka Silva
Senior Technical Lead
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] Dynamic zip file download from Jaggery application

2016-10-17 Thread Ruwan Abeykoon
Hi Godwin,
I think all the tasks about create/zip/delete the folder better be done in
modular java code. Then we can call the java code with Jaggery. Then we
would not need to detect the Context. We can use the "system.temp" folder
to store the temporary file/folders.

Cheers,
Ruwan

On Mon, Oct 17, 2016 at 6:27 PM, Dinusha Senanayaka 
wrote:

> We have done something similar in AppM for mobile apps where publisher
> uploads binary (.apk etc) and users comes to store install these apps to
> device.  Download has handled as a byte stream and storage location is
> stored in property of app-manger.xml (${carbon.
> home}/repository/resources/mobileapps/) and HostObject
> method has been provided to get the location.
>
> @Chathura should be able to explain the logic more since he implemented
> this.
>
> Regards,
> Dinusha.
>
> On Mon, Oct 17, 2016 at 6:06 PM, Godwin Shrimal  wrote:
>
>> Hi All,
>>
>> We need to dynamically create zip file and allow download it from jaggery
>> application. For resolve the concurrent access of the system, we are going
>> to create a directory with the time-stamp and archive that directory and
>> allow user to download it. Then we need to create a separate cleanup task
>> to clean those directories and archive files.
>>
>> We can create above zip files in jaggery application level (ex.
>> jaggery/dashboard/resource/) and create a cleanup task in OSGI level to
>> delete the files/directories periodically. Here we need to keep a configure
>> to find the jaggery application context from OSGI level.
>>
>> Do we have a better approach for this or is it fine to use a
>> configuration for particular jaggery context ?
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>> 
>>
>
>
>
> --
> Dinusha Dilrukshi
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.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


Re: [Dev] Bulk deleting files with a pattern in file connector

2016-10-17 Thread Shazni Nazeer
Hi Malaka,

Please find the created jiira below and the PR in [2]

[1] https://wso2.org/jira/browse/ESBCONNECT-135
[2] https://github.com/wso2-extensions/esb-connector-file/pull/14

Shazni Nazeer
Associate Technical Lead | WSO2

Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com



On Mon, Oct 17, 2016 at 4:33 AM, Malaka Silva  wrote:

> Hi Shazni,
>
> Create a jira to track this please.​​
>
> ​Feel free to contribute the improvement. :)
>
>
> On Sun, Oct 16, 2016 at 8:11 PM, Vivekananthan Sivanayagam <
> vivekanant...@wso2.com> wrote:
>
>> Hi ,
>>
>> The existing connector does not have this option to delete. It deletes
>> only a single file or given folder, can not work for the pattern at the
>> moment.
>>
>> Vivekananthan Sivanayagam
>> Associate Software Engineer | WSO2
>> E:vivekanant...@wso2.com
>> M:+94752786138
>>
>> On Sun, Oct 16, 2016 at 5:36 PM, Shazni Nazeer  wrote:
>>
>>> Hi all,
>>>
>>> Just double checking, if there's a way to bulk delete files using the
>>> file connector. I tried different options but wasn't able to do this.
>>>
>>> e.g: Given a pattern, Cal_*.xml, should delete Cal_1.xml, Cal_test.xml
>>> etc
>>>
>>> Do you guys know a way to achieve above using the file connector?
>>>
>>> If not, wouldn't this be a useful improvement for the file-connector [1]
>>>
>>> [1] https://docs.wso2.com/display/ESBCONNECTORS/Working+with
>>> +the+File+Connector+Version+2
>>>
>>> regards,
>>>
>>> Shazni Nazeer
>>> Associate Technical Lead | WSO2
>>>
>>> Mob : +94 37331
>>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>>> Blog : http://shazninazeer.blogspot.com
>>>
>>> 
>>>
>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Technical Lead
> 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] Dynamic zip file download from Jaggery application

2016-10-17 Thread Dinusha Senanayaka
We have done something similar in AppM for mobile apps where publisher
uploads binary (.apk etc) and users comes to store install these apps to
device.  Download has handled as a byte stream and storage location is
stored in property of app-manger.xml
(${carbon.home}/repository/resources/mobileapps/)
and HostObject method has been provided to get the location.

@Chathura should be able to explain the logic more since he implemented
this.

Regards,
Dinusha.

On Mon, Oct 17, 2016 at 6:06 PM, Godwin Shrimal  wrote:

> Hi All,
>
> We need to dynamically create zip file and allow download it from jaggery
> application. For resolve the concurrent access of the system, we are going
> to create a directory with the time-stamp and archive that directory and
> allow user to download it. Then we need to create a separate cleanup task
> to clean those directories and archive files.
>
> We can create above zip files in jaggery application level (ex.
> jaggery/dashboard/resource/) and create a cleanup task in OSGI level to
> delete the files/directories periodically. Here we need to keep a configure
> to find the jaggery application context from OSGI level.
>
> Do we have a better approach for this or is it fine to use a configuration
> for particular jaggery context ?
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
> 
>



-- 
Dinusha Dilrukshi
Associate Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Dynamic zip file download from Jaggery application

2016-10-17 Thread Godwin Shrimal
Hi All,

We need to dynamically create zip file and allow download it from jaggery
application. For resolve the concurrent access of the system, we are going
to create a directory with the time-stamp and archive that directory and
allow user to download it. Then we need to create a separate cleanup task
to clean those directories and archive files.

We can create above zip files in jaggery application level (ex.
jaggery/dashboard/resource/) and create a cleanup task in OSGI level to
delete the files/directories periodically. Here we need to keep a configure
to find the jaggery application context from OSGI level.

Do we have a better approach for this or is it fine to use a configuration
for particular jaggery context ?

Thanks
Godwin

-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila

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


Re: [Dev] [IS] Public cert download link not seen in the custom tenant keystore

2016-10-17 Thread Asela Pathberiya
On Mon, Oct 17, 2016 at 5:33 PM, Niranda Perera  wrote:

> Hi all,
>
> I have replaced my tenant keystore with a another keystore following this
> blog from Asela [1]
>
> One thing I noticed while doing this is, the Public cert download link
> does not appear in the subsequently added keystores. Please refer the
> screenshots attached.
>
> ​
>  before.jpg
> 
> ​​
>  after.jpg
> 
> ​
>
> Is this the expected behavior? or is it a problem in creating the KS?
>

Yes.  There is some registry association for public key & certificate is
stored separately.  But;  when you manually create a keystore/password.
You have the public key.  Therefore we may not need to download it
separately.


>
> Best 
>
> [1] http://xacmlinfo.org/2014/11/05/how-to-changing-the-prim
> ary-keystore-of-a-tenant-in-carbon-products/
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>



-- 
Thanks & Regards,
Asela

ATL
Mobile : +94 777 625 933
 +358 449 228 979

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


[Dev] [IS] Public cert download link not seen in the custom tenant keystore

2016-10-17 Thread Niranda Perera
Hi all,

I have replaced my tenant keystore with a another keystore following this
blog from Asela [1]

One thing I noticed while doing this is, the Public cert download link does
not appear in the subsequently added keystores. Please refer the
screenshots attached.

​
 before.jpg

​​
 after.jpg

​

Is this the expected behavior? or is it a problem in creating the KS?

Best 

[1] http://xacmlinfo.org/2014/11/05/how-to-changing-the-
primary-keystore-of-a-tenant-in-carbon-products/

-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 
https://pythagoreanscript.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Anupama Pathirage

2016-10-17 Thread Madhawa Gunasekara
Congratulations :)

On Mon, Oct 17, 2016 at 2:03 PM, Rajith Vitharana  wrote:

> Congrats akke :) :)
>
> On 17 October 2016 at 14:01, Dilshani Subasinghe 
> wrote:
>
>> Congrats :) :)
>>
>> On Mon, Oct 17, 2016 at 1:35 PM, Anjana Fernando  wrote:
>>
>>> Hi everyone,
>>>
>>> It's my pleasure to announce Anupama as a WSO2 committer. Anupama has
>>> made great contributions to WSO2 DSS/DAS in improving the products. In
>>> recognizing the work that has been done, she has been voted in as a WSO2
>>> committer. Anupama, welcome aboard and all the best! ..
>>>
>>> Cheers,
>>> Anjana.
>>> --
>>> *Anjana Fernando*
>>> Associate Director / Architect
>>> WSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Best Regards,
>>
>> Dilshani Subasinghe
>> Software Engineer - QA *|* WSO2
>> lean *|* enterprise *|* middleware
>>
>> Mobile : +94773375185
>> Blog: dilshani.me
>>
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajith Vitharana
>
> Senior Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madhawa Gunasekara*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71941102 <+94+71941102>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Anupama Pathirage

2016-10-17 Thread Rajith Vitharana
Congrats akke :) :)

On 17 October 2016 at 14:01, Dilshani Subasinghe  wrote:

> Congrats :) :)
>
> On Mon, Oct 17, 2016 at 1:35 PM, Anjana Fernando  wrote:
>
>> Hi everyone,
>>
>> It's my pleasure to announce Anupama as a WSO2 committer. Anupama has
>> made great contributions to WSO2 DSS/DAS in improving the products. In
>> recognizing the work that has been done, she has been voted in as a WSO2
>> committer. Anupama, welcome aboard and all the best! ..
>>
>> Cheers,
>> Anjana.
>> --
>> *Anjana Fernando*
>> Associate Director / Architect
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards,
>
> Dilshani Subasinghe
> Software Engineer - QA *|* WSO2
> lean *|* enterprise *|* middleware
>
> Mobile : +94773375185
> Blog: dilshani.me
>
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/

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


Re: [Dev] WSO2 Committers += Anupama Pathirage

2016-10-17 Thread Dilshani Subasinghe
Congrats :) :)

On Mon, Oct 17, 2016 at 1:35 PM, Anjana Fernando  wrote:

> Hi everyone,
>
> It's my pleasure to announce Anupama as a WSO2 committer. Anupama has made
> great contributions to WSO2 DSS/DAS in improving the products. In
> recognizing the work that has been done, she has been voted in as a WSO2
> committer. Anupama, welcome aboard and all the best! ..
>
> Cheers,
> Anjana.
> --
> *Anjana Fernando*
> Associate Director / Architect
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,

Dilshani Subasinghe
Software Engineer - QA *|* WSO2
lean *|* enterprise *|* middleware

Mobile : +94773375185
Blog: dilshani.me


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


Re: [Dev] [EMM Android Agent] Compile error - missing package org.apache.http

2016-10-17 Thread Hasitha Amal De Silva
Hi Sidath,

True, but its supposed to be included within the android 22 sdk.. and I
noticed that AndroidHttpClient should be included within the SDK itself.

However after building this with the android 23 sdk with hidden APIs, the
issue went away.

Thanks

On Mon, Oct 17, 2016 at 1:47 PM, Sidath Weerasinghe  wrote:

> Hi Hasitha,
>
> I think you miss the dependency in the gradle.
>
> http://stackoverflow.com/questions/31433687/android-
> gradle-apache-httpclient-does-not-exist
>
> On Mon, Oct 17, 2016 at 1:32 PM, Hasitha Amal De Silva 
> wrote:
>
>> Hi,
>>
>> While trying to build the APK for android agent at [1], I'm getting the
>> following compile errors.
>>
>> .../iotserver/product-emm/modules/mobile-agents/android/clie
>> nt/volley/src/main/java/com/android/volley/toolbox/HttpStack.java
>> Error:(22, 23) error: package org.apache.http does not exist
>>
>> .../iotserver/product-emm/modules/mobile-agents/android/clie
>> nt/volley/src/main/java/com/android/volley/toolbox/Volley.java
>> Error:(22, 24) error: cannot find symbol class AndroidHttpClient
>> ...
>> ..
>>
>> I followed article [2] to setup the Android studio and SDK 22 and 16 and
>> the hidden android.jar file. It looks like the volley library requires
>> Apache HTTP lib and its not being imported.
>>
>> Any clue as to what I'm missing ?
>>
>> [1] : https://github.com/wso2/product-emm/tree/master/modules/
>> mobile-agents/android/client
>> [2] : https://docs.wso2.com/display/EMM210/Customizing+the+
>> Android+APK+File
>>
>> --
>> Cheers,
>>
>> Hasitha Amal De Silva
>> Senior Software Engineer
>> Mobile : +94772037426
>> Blog: http://devnutshell.tumblr.com/
>> WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thank You,
> Best Regards,
>
> Sidath Weerasinghe
>
>
> *Intern*
>
> *WSO2, Inc. *
>
> *lean . enterprise . middleware *
>
>
> *Mobile: +94719802550 <%2B94719802550>*
>
> *Email: *sid...@wso2.com
>
> Blog: https://medium.com/@sidath
>
> Linkedin: https://lk.linkedin.com/in/sidathweerasinghe
>



-- 
Cheers,

Hasitha Amal De Silva
Senior Software Engineer
Mobile : +94772037426
Blog: http://devnutshell.tumblr.com/
WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-10-17 Thread Rukshan Premathunga
HI Chirst,

Yes. Please configure on all the nodes using api-manager.xml

Thanks and Regards

On Mon, Oct 17, 2016 at 1:46 PM, christ Feng  wrote:

> Hi, rukshan,
>
> I really configure analytics using admin-dashboard on publisher node. I
> clustering APIM for 4 nodes ,publisher,store,gataway and keymanager. In
> your configuration, which node should i to configure. Or on every node ?
>
>
> Thanks and Regards
>
> 2016-10-17 15:53 GMT+08:00 Rukshan Premathunga :
>
>> Hi Christ,
>>
>> Seems you have configure analytics using admin-dashboard. Can you try to
>> configure analytics using the api-manager.xml[1].
>>
>> [1] http://rukspot.com/configure_wso2_apim_analytics_using_xml.html
>>
>> Thanks and Regards
>>
>> On Mon, Oct 17, 2016 at 12:49 PM, christ Feng 
>> wrote:
>>
>>> Hi , rukshan.Thanks for your reply.
>>>
>>> My offset on gateway node is 10003 . The error occured on gateway node.
>>>
>>> The attachment is my api-manager.xml in the gateway node.
>>>
>>> Thanks and Regards
>>>
>>>
>>>
>>> 2016-10-17 14:37 GMT+08:00 Rukshan Premathunga :
>>>
 Hi Christ,

 Can you please attached your api-manager.xml in the gateway node. This
 could be a configuration isse.

 Thanks and Regards


 On Mon, Oct 17, 2016 at 10:32 AM, Abimaran Kugathasan <
 abima...@wso2.com> wrote:

> 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+Runtim
> e+Statistics
> [2] : http://stackoverflow.com/questions/tagged/wso2
>
> On Sun, Oct 16, 2016 at 7:53 PM, christ Feng 
> 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 
>> 

Re: [Dev] [EMM Android Agent] Compile error - missing package org.apache.http

2016-10-17 Thread Sidath Weerasinghe
Hi Hasitha,

I think you miss the dependency in the gradle.

http://stackoverflow.com/questions/31433687/android-gradle-apache-httpclient-does-not-exist

On Mon, Oct 17, 2016 at 1:32 PM, Hasitha Amal De Silva 
wrote:

> Hi,
>
> While trying to build the APK for android agent at [1], I'm getting the
> following compile errors.
>
> .../iotserver/product-emm/modules/mobile-agents/android/
> client/volley/src/main/java/com/android/volley/toolbox/HttpStack.java
> Error:(22, 23) error: package org.apache.http does not exist
>
> .../iotserver/product-emm/modules/mobile-agents/android/
> client/volley/src/main/java/com/android/volley/toolbox/Volley.java
> Error:(22, 24) error: cannot find symbol class AndroidHttpClient
> ...
> ..
>
> I followed article [2] to setup the Android studio and SDK 22 and 16 and
> the hidden android.jar file. It looks like the volley library requires
> Apache HTTP lib and its not being imported.
>
> Any clue as to what I'm missing ?
>
> [1] : https://github.com/wso2/product-emm/tree/master/
> modules/mobile-agents/android/client
> [2] : https://docs.wso2.com/display/EMM210/Customizing+
> the+Android+APK+File
>
> --
> Cheers,
>
> Hasitha Amal De Silva
> Senior Software Engineer
> Mobile : +94772037426
> Blog: http://devnutshell.tumblr.com/
> WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thank You,
Best Regards,

Sidath Weerasinghe


*Intern*

*WSO2, Inc. *

*lean . enterprise . middleware *


*Mobile: +94719802550*

*Email: *sid...@wso2.com

Blog: https://medium.com/@sidath

Linkedin: https://lk.linkedin.com/in/sidathweerasinghe
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Anupama Pathirage

2016-10-17 Thread Anjana Fernando
Hi everyone,

It's my pleasure to announce Anupama as a WSO2 committer. Anupama has made
great contributions to WSO2 DSS/DAS in improving the products. In
recognizing the work that has been done, she has been voted in as a WSO2
committer. Anupama, welcome aboard and all the best! ..

Cheers,
Anjana.
-- 
*Anjana Fernando*
Associate Director / Architect
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [EMM Android Agent] Compile error - missing package org.apache.http

2016-10-17 Thread Hasitha Amal De Silva
Hi,

While trying to build the APK for android agent at [1], I'm getting the
following compile errors.

.../iotserver/product-emm/modules/mobile-agents/android/client/volley/src/main/java/com/android/volley/toolbox/HttpStack.java
Error:(22, 23) error: package org.apache.http does not exist

.../iotserver/product-emm/modules/mobile-agents/android/client/volley/src/main/java/com/android/volley/toolbox/Volley.java
Error:(22, 24) error: cannot find symbol class AndroidHttpClient
...
..

I followed article [2] to setup the Android studio and SDK 22 and 16 and
the hidden android.jar file. It looks like the volley library requires
Apache HTTP lib and its not being imported.

Any clue as to what I'm missing ?

[1] :
https://github.com/wso2/product-emm/tree/master/modules/mobile-agents/android/client
[2] : https://docs.wso2.com/display/EMM210/Customizing+the+Android+APK+File

-- 
Cheers,

Hasitha Amal De Silva
Senior Software Engineer
Mobile : +94772037426
Blog: http://devnutshell.tumblr.com/
WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-10-17 Thread Rukshan Premathunga
Hi Christ,

Can you please attached your api-manager.xml in the gateway node. This
could be a configuration isse.

Thanks and Regards


On Mon, Oct 17, 2016 at 10:32 AM, Abimaran Kugathasan 
wrote:

> 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 
> 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
>
> 
> 

Re: [Dev] Checking the existence of the roles with the character "@"

2016-10-17 Thread Megala Uthayakumar
Hi Ishara,

Thanks for the reply. But I think your suggestion won't work either. While
debugging in super-tenant mode, I found that we are not sending the tenant
id with role name. So it will will still go through the same path and
return false for already existing role which has a "@" character.

Thanks.

Regards,
Megala

On Mon, Oct 17, 2016 at 10:50 AM, Ishara Cooray  wrote:

> What if the create role context logic is changed as below.
>
> JDBCRoleContext searchCtx = new JDBCRoleContext();
> String[] roleNameParts = roleName.split(UserCoreConstants.
> TENANT_DOMAIN_COMBINER);
> if (roleNameParts.length > 1 && (roleNameParts[1] == null ||
> roleNameParts[1].equals("null"))) {
> roleNameParts = new String[]{roleNameParts[0]};
> }
>
> to
>
> JDBCRoleContext searchCtx = new JDBCRoleContext();
> String[] roleNameParts = roleName.split(UserCoreConstants.
> TENANT_DOMAIN_COMBINER);
> if (roleNameParts.length > 1 && (roleNameParts[1] == null ||
> roleNameParts[1].equals("null"))) {
> roleNameParts = new String[]{roleName.substring(0,
> roleName.lastIndexOf("@"))};
> }
>
> However there is no need to create a new string array here. Simply String
> should do(you can assign it to a String variable other that using existing
> string array). Please check that as well.
>
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> On Mon, Oct 17, 2016 at 9:55 AM, Megala Uthayakumar 
> wrote:
>
>> Hi All,
>>
>> I am working on a jira issue which is related with problem in updating
>> the permissions for the role names with special characters[1]. When I was
>> analyzing this issue I found that
>> when we have an existing role with a "@" character, the system returns
>> false, even that particular role exists in the primary user store. This is
>> because, in the JDBCUserStoreManager, before checking whether the
>> particular role exists, it creates a role context [2], in which it splits
>> the role using "@" character and takes the 1st part of the role as the role
>> name and if the split has more than a single part [3], it considers second
>> part as the tenant id.
>>
>> For example if we have a role with a name 'test@', it will consider
>> 'test' as a role name, because of that isExisting check, returns false.
>>
>> This behavior affects the role addition in management console too. After
>> creating a role with a name "test@" , if we try to create another role
>> name with the same name, it throws, following exception.
>> *Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key
>> violation: "CONSTRAINT_INDEX_19 ON PUBLIC.UM_ROLE(UM_ROLE_NAME,
>> UM_TENANT_ID) VALUES ( /* key:6 */ null, 'adadad@', -1234, null)"; SQL
>> statement:*
>> *INSERT INTO UM_ROLE (UM_ROLE_NAME, UM_TENANT_ID) VALUES (?, ?)
>> [23505-175]*
>> * at org.h2.message.DbException.getJdbcSQLException(DbException.java:332)*
>> * at org.h2.message.DbException.get(DbException.java:172)*
>> * at org.h2.message.DbException.get(DbException.java:149)*
>> * at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:101)*
>> * at org.h2.index.PageBtree.find(PageBtree.java:121)*
>> * at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:148)*
>> * at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:101)*
>> * at org.h2.index.PageBtreeIndex.ad
>> dRow(PageBtreeIndex.java:96)*
>> * at org.h2.index.PageBtreeIndex.ad
>> d(PageBtreeIndex.java:87)*
>> * at org.h2.table.RegularTable.addRow(RegularTable.java:119)*
>> * at org.h2.command.dml.Insert.insertRows(Insert.java:157)*
>> * at org.h2.command.dml.Insert.update(Insert.java:115)*
>> * at org.h2.command.CommandContainer.update(CommandContainer.java:79)*
>> * at org.h2.command.Command.executeUpdate(Command.java:253)*
>> * at
>> org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:154)*
>> * at
>> org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:140)*
>> * at
>> org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.updateStringValuesToDatabase(JDBCUserStoreManager.java:2352)*
>> * ... 78 more*
>> *[2016-10-17 09:33:50,836] ERROR
>> {org.wso2.carbon.user.mgt.ui.UserAdminClient} -  Error occurred while
>> getting database type from DB connection*
>> *org.apache.axis2.AxisFault: Error occurred while getting database type
>> from DB connection*
>> * at org.apache.axis2.util.Utils.ge
>> tInboundFaultFromMessageContext(Utils.java:531)*
>> * at
>> org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOutOnlyOperationClient.handleResponse(RobustOutOnlyAxisOperation.java:91)*
>> * at
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)*
>> * at
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)*
>> * at
>>