Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-13 Thread Asantha Thilina
Hi Tharindu,

sure i will prepare those documents sooner

Thanks,
Asantha

On Mon, Jun 13, 2016 at 9:38 PM, Tharindu Edirisinghe 
wrote:

> Excellent work Asantha !
>
> Meanwhile you can prepare a document also adding the screenshots you have
> got. Basically we will need following documentation.
>
> 1. Developer Guide ( The architecture of the userstoremanager, diagrams of
> all the collections, how they are related to each other etc.)
>
> 2. Administrator Guide (How to guide a server administrator to setup a
> secondary userstore with mongodb)
>
> 3. User Guide (All the functionality of the userstoremanager, i.e each
> function in RemoteUserStoreManager with sample SOAP requests and responses)
>
> We will need to look at the QA aspect of the project also.. but let's keep
> aside for the moment until we get all the functionality working.
>
> Thanks for all the hard work !
>
> Best Regards,
> Tharindu Edirisinghe
>
> On Tue, Jun 14, 2016 at 12:46 AM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>>
>> as you advice me i added soap ui screen shots of test result and selenium
>> script for implemented functions into my repository[1]
>>
>> [1] https://github.com/asanthamax/mongodbuserstore
>> Thanks,
>> Asantha
>>
>> On Mon, Jun 13, 2016 at 6:23 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> i updated my blog[1] with all the works i have done so far there i added
>>> all the methods and their use in MongoDBUserStoreManager ,
>>> hopes your feedback
>>> [1] http://asanthamax.blogspot.com/
>>> Thanks,
>>> Asantha
>>>
>>> On Sun, Jun 12, 2016 at 2:11 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Tharindu,

 i have solved the login issue for registered users in my mongodb user
 store. after compare my implementation with JDBCUserStoreManager i realized
 that i would gone through the wrong path by implementing UserStoreManager
 so i changed it by extending AbstractUserStoreManager instead of
 UserStoreManager thereafter most of the issues i have faced being resolved
 now it can add new users,roles and assign users to roles ,roles to users
 can change user profile claim values and also registered users can
 successfully logged into IS still the delete part has to be implemented and
 i will prepare a test scripts for my already implemented working parts
 sooner and from implemented modules only issue i'm facing at the moment is
 i can't decrypt the salted password of MongoDB server configuration in user
 store property xml file
 And also I need some advice from you to how i can improve the security
 of my query parameters in MongoDB
 i updated all my works in my repository[1]

 [1]https://github.com/asanthamax/mongodbuserstore

 Thanks,
 Asantha

 On Fri, Jun 10, 2016 at 12:51 PM, Asantha Thilina <
 asanthathil...@gmail.com> wrote:

> Hi Tharindu,
>
> sorry for the delay i have updated my blog today and i'm keep posting
> all the progress in their[1] up to now and i am look forward for your
> feedbacks and comments
>
> [1]http://asanthamax.blogspot.com/
>
> Thanks,
> Asantha
>
> On Thu, Jun 9, 2016 at 7:37 AM, Tharindu Edirisinghe <
> tharin...@wso2.com> wrote:
>
>> Hi Asantha,
>>
>> Great ! There has been a delay in my replies but it's really good to
>> see your progress with the project with a minimum level of supervision.
>>
>> I will arrange a review next week with the Identity Server team for
>> the work completed so far and then we can provide the Mid Review feedback
>> for the project.
>>
>> Keep on communicating the progress and the issues you face via emails
>> and also update your blog with the findings.
>>
>> Thank you,
>> TharinduE
>>
>> On Thu, Jun 9, 2016 at 4:44 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> i rearranged the UM_USER_ATTRIBUTE collection now when ever user
>>> update his profile, claim values will save in the collection the way we
>>> discussed in hangout i updated my repo[1] with latest modification
>>>
>>> [1] https://github.com/asanthamax/mongodbuserstore
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Wed, Jun 8, 2016 at 8:03 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Tharindu,

 sorry i forget to attach my github repository here is the
 repository link i have update the repository with my latest errors 
 fixed
 https://github.com/asanthamax/mongodbuserstore

 Thanks,
 Asantha

 On Wed, Jun 8, 2016 at 8:00 AM, Asantha Thilina <
 asanthathil...@gmail.com> wrote:

> Hi Tharindu,
>
> I have fixed the claims issue now it 

[Dev] Carbon Security Userstore JDBC 1.0.0 M2 Released

2016-06-13 Thread Jayanga Kaushalya
*Carbon Security Userstore JDBC 1.0.0 M2 Released*

We are pleased to announce the release of Carbon Security Userstore JDBC
1.0.0 M2.

This includes a JDBC based user store implementation for Carbon Security
CAAS with authentication, authorization and user management (read only)
support.

*Included features/bug fixes*

https://wso2.org/jira/issues/?filter=13097

*Installing as a Carbon Feature*

You may install carbon-security-userstore-jdbc feature to your product
with:


  org.wso2.carbon.security.userstore
  org.wso2.carbon.security.userstore.jdbc.feature
  1.0.0-m2
  zip


Best Regards
Identity Server Team

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


Re: [Dev] [GSOC2016]Proposal 4: [ML] Ensemble Methods Support for WSO2 Machine Learner

2016-06-13 Thread Supun Sethunga
Hi Misgana,

That's a pretty good job!

I have integrated a working version of Stacking into the
> SupervisedSparkModelBuilder. My implementation is naive (potential
> unnecessary conversions) but I would keep it to test against a more
> efficient implementation. Please find the details below.

I also wanted to adapt the graphical user interface but I have no idea
> where to start. Can you give me a hint?

Let's not worry about the performance/efficiency for the moment. We can do
it as an improvement later on, if time permits.
Anyway, were you able to run the standalone one (the one you wrote as a
java client), for a Test dataset?

If it works without any issues, then before we move on to the UI
implementation, shall we test the integration using the REST API? (even the
UI call this rest API. So we should be able to do the same operation using
this REST API, without the UI. If that works fine too, then we will move to
the UI part?)

[1] is a built-in sample, which builds a Random Forest Classification model
from end to end, using the REST APIs. Can you use the same APIs in the same
order, and try to build a Stacking Model and see if it works fine? Please
note, when you are invoking the REST API, Need to make sure you pass the
correct values, especially for:

   - setting model configs - Need to pass, not only the Algorithm Name
   ("Stacking"), but also the Base/Meta algorithm names as well.
   - setting hyper params - Need to add Hyper-parameters for all the base
   and meta algorithms. Hence, the Algorithm name should be "Meta_algorithm_x"
   or something similar (but *not* "Stacking" *nor* the actual algorithm
   name used for base algorithm x, such as "Random Forest" )

Also, to achieve above, you might have to modify the DB schema [2], and in
the Table "*Hyper_Parameters*" make the *algorithm_name* a primary key as
well. Otherwise, there can be duplicates.
If you have any doubts please feel free to ask.

Also, Since the Mid-evaluation is near, Can you please arrange a session
(Hangouts would be fine) to do small demo on the current work you did, and
run a small sample with stacking (with the standalone java client you
implemented) to show how it works? It would be great if you can set it in
an IST (GMT + 0530 ) friendly time slot.

[1]
https://github.com/wso2/product-ml/blob/master/modules/samples/tuned/random-forest-classification/model-generation.sh
[2]
https://docs.wso2.com/display/ML110/Architecture#Architecture-Databasedesign

Thanks,
Supun

On Mon, Jun 13, 2016 at 10:02 PM, Misgana Negassi <
negas...@tf.uni-freiburg.de> wrote:

> Hi Supun,
>
> I have integrated a working version of Stacking into the
> SupervisedSparkModelBuilder. My implementation is naive (potential
> unnecessary conversions) but I would keep it to test against a more
> efficient implementation. Please find the details below.
>
> I also wanted to adapt the graphical user interface but I have no idea
> where to start. Can you give me a hint?
>
> Best,
> Misgana
>
> DETAILS:
>
> UI LOGIC(My approach):
>  I expect a list of base-algorithms together with their parameters from
> the UI. That means, if the user selects Stacking, he will presented with UI
> to select the number of base-algorithms to train. After choosing a
> base-algorithm, he will be prompted to select parameters for each algorithm
> and is then redirected to selecting a meta-algorithm and also set its
> parameters.  This will be serialized and fed to carbon-ml.Finally,train.
>
> INTEGRATION:
>
> Here is the current work status:
>
>
> 1. buildStackingModel method for SupervisedSparkModelBuilder [1]:
>
> STATUS :  Method implementation completed.
>
> LOGIC: We expect, a list of base-Algorithms together with their
> parameters(serialized). Deserialized, this will be fed to Stacking Class to
> train. To this end, I have  added in MLCONSTANTS class, the hyperparameters
> needed.
> Next Step, is to invoke Stacking test() method and
> build ModelSummary.
>
> 2. Stacking Class: [2]
>
> STATUS:  Naive implementation with working code completed.
>
> LOGIC: This class implements ClassificationModel.
>
>  For train() method, the idea is to implement the four main
> Steps in Stacking Logic.
> Step1. Train list of basemodels(level0) on cross-validated
> data. For this, I implemented a BaseModelBuilder Class which is similiar in
> logic to SupervisedSparkModelBuilder except, it returns a model of MLModel
> datatype.
> Step2. get predictions of each List (we use here
> predict() method of Predictor class) and combine predictions to get level1
> dataset
> Step3. train Meta-Algorithm on level1dataset
> Step4. train base-algorithms on whole dataset and store
> list base models.
>
>For test() method, we create a level1_test_dataset by combining
> predictions of basemodels (trained on the whole dataset) on the
> level0_test_dataset. Finally, we get final 

Re: [Dev] [C5] Common directories to store DB scripts and databases for C5.

2016-06-13 Thread Hasitha Aravinda
Hi all,

Any thoughts on this. ?

Thanks,
Hasitha.

On Tue, May 10, 2016 at 11:45 AM, Hasitha Aravinda  wrote:

> Hi all,
>
> I am bringing this topic, because we are using multiple place to store
> dbscripts. In BPS we use  /dbscripts/bps folder to store scripts.
> In carbon-security-user-store-jdbc, we use database folder. Shall we use
> common place for this.
>
> My suggestion is to use,
>
>- /dbscripts/(product | component name) to store DB scripts
>(Same location in C4)
>- /database or /resources/database to store
>file-system databases (h2) ?
>
> Any thoughts ?
>
> Thanks,
> Hasitha.
>
> --
> --
> Hasitha Aravinda,
> Senior Software Engineer,
> WSO2 Inc.
> Email: hasi...@wso2.com
> Mobile : +94 718 210 200
>



-- 
--
Hasitha Aravinda,
Associate Technical Lead,
WSO2 Inc.
Email: hasi...@wso2.com
Mobile : +94 718 210 200
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [wso2 IS] How to disable Shindig fetching google analytics

2016-06-13 Thread Godwin Shrimal
Hi Udara,

You can disable Shindig from loading default features. However this might
affect some of the gadgets in the dashboard. Comment below line in
/repository/deployment/server/webapps/shindig/WEB-INF/web.xml
org.apache.shindig.extras.ShindigExtrasGuiceModule:


Thanks
Godwin


On Mon, Jun 13, 2016 at 4:56 AM, Maninda Edirisooriya 
wrote:

> Hi Udara,
>
> Remove the below 3 lines from the features.txt which is located in
> /repository/deployment/server/webapps/shindig.war/WEB-INF/lib/shindig-extras-2.5.2.jar/feature-extras
> directory.
> (In the shindig-extras-2.5.2.jar jar in shindig.war)
>
> features-extras/analytics/feature.xml
> features-extras/com.google.gadgets.analytics/feature.xml
> features-extras/org.jquery.core-1.4.2/feature.xml
>
> If the extracted directory "shindig" is already there, delete that
> directory and let the shindig.war to be extracted in the server startup.
> Thanks.
>
>
> *Maninda Edirisooriya*
> Senior Software Engineer
>
> *WSO2, Inc.*lean.enterprise.middleware.
>
> *Blog* : http://maninda.blogspot.com/
> *E-mail* : mani...@wso2.com
> *Skype* : @manindae
> *Twitter* : @maninda
>
> On Thu, Jun 2, 2016 at 8:26 PM, Kasun Bandara  wrote:
>
>> Hi Bhathiya,
>>
>> Thanks for pointing out the corresponding version update. Created [1] to
>> ensure that this doesn't miss in the next release.
>>
>>
>> Regards,
>> Kasun.
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-4650
>>
>> On Thu, Jun 2, 2016 at 7:41 PM, Bhathiya Jayasekara 
>> wrote:
>>
>>> Hi Udara,
>>>
>>> This is fixed by carbon-dashboards 1.0.18. See [1]. IS has to upgrade
>>> its dependency.
>>>
>>> [1] [Dev] Shindig error on DS portal startup, due to connectivity errors
>>> to google
>>>
>>> Thanks,
>>> Bhathiya
>>>
>>> On Thu, Jun 2, 2016 at 7:01 PM, Udara Liyanage  wrote:
>>>
 Hi,

 IS 510 tries to reach google analytic at startup. When an server is
 started in a docker container where no internet access is available it
 throws errors and server startup delays.

 Is there configuration to stop this?


 TID: [-1234] [] [2016-06-02 12:58:43,036]  INFO
 {org.apache.shindig.gadgets.http.BasicHttpFetcher} -*  The following
 exception occurred when fetching
 http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
 : 25,573
 ms elapsed. *
 TID: [-1234] [] [2016-06-02 12:58:43,037]  INFO
 {org.apache.shindig.gadgets.http.BasicHttpFetcher} -
 org.apache.http.conn.ConnectTimeoutException: Connect to
 ajax.googleapis.com:80 timed out
 at
 org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
 at
 org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
 at
 org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)
 at
 org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:131)
 at
 org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
 at
 org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
 at
 org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
 at
 org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:115)
 at
 org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
 at
 org.apache.shindig.gadgets.http.BasicHttpFetcher.fetch(BasicHttpFetcher.java:359)
 at
 org.apache.shindig.gadgets.features.FeatureResourceLoader$UriResource.getContent(FeatureResourceLoader.java:291)
 at
 org.apache.shindig.gadgets.features.FeatureResourceLoader$UriResource.(FeatureResourceLoader.java:270)
 at
 org.apache.shindig.gadgets.features.FeatureResourceLoader$UriResource.(FeatureResourceLoader.java:256)
 at
 org.apache.shindig.gadgets.features.FeatureResourceLoader.loadUri(FeatureResourceLoader.java:135)
 at
 org.apache.shindig.gadgets.features.FeatureResourceLoader.load(FeatureResourceLoader.java:88)
 at
 org.apache.shindig.gadgets.features.FeatureRegistry.loadFeature(FeatureRegistry.java:486)


 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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


>>>
>>>
>>> --
>>> *Bhathiya Jayasekara*
>>> *Senior Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>> *Phone: +94715478185 <%2B94715478185>*
>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>>> 

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-13 Thread Tharindu Edirisinghe
Excellent work Asantha !

Meanwhile you can prepare a document also adding the screenshots you have
got. Basically we will need following documentation.

1. Developer Guide ( The architecture of the userstoremanager, diagrams of
all the collections, how they are related to each other etc.)

2. Administrator Guide (How to guide a server administrator to setup a
secondary userstore with mongodb)

3. User Guide (All the functionality of the userstoremanager, i.e each
function in RemoteUserStoreManager with sample SOAP requests and responses)

We will need to look at the QA aspect of the project also.. but let's keep
aside for the moment until we get all the functionality working.

Thanks for all the hard work !

Best Regards,
Tharindu Edirisinghe

On Tue, Jun 14, 2016 at 12:46 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> as you advice me i added soap ui screen shots of test result and selenium
> script for implemented functions into my repository[1]
>
> [1] https://github.com/asanthamax/mongodbuserstore
> Thanks,
> Asantha
>
> On Mon, Jun 13, 2016 at 6:23 AM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> i updated my blog[1] with all the works i have done so far there i added
>> all the methods and their use in MongoDBUserStoreManager ,
>> hopes your feedback
>> [1] http://asanthamax.blogspot.com/
>> Thanks,
>> Asantha
>>
>> On Sun, Jun 12, 2016 at 2:11 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> i have solved the login issue for registered users in my mongodb user
>>> store. after compare my implementation with JDBCUserStoreManager i realized
>>> that i would gone through the wrong path by implementing UserStoreManager
>>> so i changed it by extending AbstractUserStoreManager instead of
>>> UserStoreManager thereafter most of the issues i have faced being resolved
>>> now it can add new users,roles and assign users to roles ,roles to users
>>> can change user profile claim values and also registered users can
>>> successfully logged into IS still the delete part has to be implemented and
>>> i will prepare a test scripts for my already implemented working parts
>>> sooner and from implemented modules only issue i'm facing at the moment is
>>> i can't decrypt the salted password of MongoDB server configuration in user
>>> store property xml file
>>> And also I need some advice from you to how i can improve the security
>>> of my query parameters in MongoDB
>>> i updated all my works in my repository[1]
>>>
>>> [1]https://github.com/asanthamax/mongodbuserstore
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Fri, Jun 10, 2016 at 12:51 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Tharindu,

 sorry for the delay i have updated my blog today and i'm keep posting
 all the progress in their[1] up to now and i am look forward for your
 feedbacks and comments

 [1]http://asanthamax.blogspot.com/

 Thanks,
 Asantha

 On Thu, Jun 9, 2016 at 7:37 AM, Tharindu Edirisinghe <
 tharin...@wso2.com> wrote:

> Hi Asantha,
>
> Great ! There has been a delay in my replies but it's really good to
> see your progress with the project with a minimum level of supervision.
>
> I will arrange a review next week with the Identity Server team for
> the work completed so far and then we can provide the Mid Review feedback
> for the project.
>
> Keep on communicating the progress and the issues you face via emails
> and also update your blog with the findings.
>
> Thank you,
> TharinduE
>
> On Thu, Jun 9, 2016 at 4:44 PM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>>
>> i rearranged the UM_USER_ATTRIBUTE collection now when ever user
>> update his profile, claim values will save in the collection the way we
>> discussed in hangout i updated my repo[1] with latest modification
>>
>> [1] https://github.com/asanthamax/mongodbuserstore
>>
>> Thanks,
>> Asantha
>>
>> On Wed, Jun 8, 2016 at 8:03 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> sorry i forget to attach my github repository here is the repository
>>> link i have update the repository with my latest errors fixed
>>> https://github.com/asanthamax/mongodbuserstore
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Wed, Jun 8, 2016 at 8:00 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Tharindu,

 I have fixed the claims issue now it can update and add claims to
 user but still the db structure is same as in relational structure i 
 have
 currently mapping it to a way we discussed ,most of the issues being 
 fixed
 now following tasks can do in now MongoDBUserStoreManager
 can add users.
 can 

[Dev] [Architecture] WSO2 Identity Server 5.3.0 Milestone 2 Released..!!

2016-06-13 Thread Thanuja Jayasinghe
*WSO2 Identity Server 5.3.0 Milestone 2 Released..!!*


The WSO2 Identity Server team is pleased to announce the 2nd Milestone of
WSO2 Identity Server 5.3.0. You can download this distribution from
https://github.com/wso2/product-is/releases/tag/v5.3.0-m2.

Following list contains all features, improvements and bug fixes available
with this milestone.
Improvement

   - [IDENTITY-4686 ] - Rest
   API for user information recovery scenarios in IS user portal

New Feature

   - [IDENTITY-1916 ] - Support
   for OpenID Connect Dynamic Client Registration 1.0
   - [IDENTITY-3504 ] - IWA
   authentication with WSO2 IS on Linux and external Kerberos/NTLM Server
   - [IDENTITY-4284 ] - RFC
   7662 – Token Introspection
   - [IDENTITY-4687 ] -
   Revocation/Regeneration client secret in OAuth 2.0
   - [IDENTITY-4688 ] - Email
   confirmation scenarios

Sub-task

   - [IDENTITY-2979 ] - Provide
   a REST endpoint that for Identity Management operations
   - [IDENTITY-3300 ] - WSO2
   dashboard support user information recovery
   - [IDENTITY-3606 ] -
   Integrate an enhanced captcha library




*How To Contribute*
Your feedback are most welcome! Mailing ListsJoin our mailing list and
correspond with the developers directly.

   - Developer List : dev@wso2.org | Subscribe  | Mail
   Archive 
   - User forum : StackOverflow
   

Reporting Issues
We encourage you to report issues, improvements and feature requests
regarding WSO2 Identity Server through public WSO2 Identity Server JIRA
https://wso2.org/jira/browse/IDENTITY


~ The WSO2 Identity Server Team ~


-- 
*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] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-13 Thread Asantha Thilina
Hi Tharindu,

as you advice me i added soap ui screen shots of test result and selenium
script for implemented functions into my repository[1]

[1] https://github.com/asanthamax/mongodbuserstore
Thanks,
Asantha

On Mon, Jun 13, 2016 at 6:23 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> i updated my blog[1] with all the works i have done so far there i added
> all the methods and their use in MongoDBUserStoreManager ,
> hopes your feedback
> [1] http://asanthamax.blogspot.com/
> Thanks,
> Asantha
>
> On Sun, Jun 12, 2016 at 2:11 PM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> i have solved the login issue for registered users in my mongodb user
>> store. after compare my implementation with JDBCUserStoreManager i realized
>> that i would gone through the wrong path by implementing UserStoreManager
>> so i changed it by extending AbstractUserStoreManager instead of
>> UserStoreManager thereafter most of the issues i have faced being resolved
>> now it can add new users,roles and assign users to roles ,roles to users
>> can change user profile claim values and also registered users can
>> successfully logged into IS still the delete part has to be implemented and
>> i will prepare a test scripts for my already implemented working parts
>> sooner and from implemented modules only issue i'm facing at the moment is
>> i can't decrypt the salted password of MongoDB server configuration in user
>> store property xml file
>> And also I need some advice from you to how i can improve the security of
>> my query parameters in MongoDB
>> i updated all my works in my repository[1]
>>
>> [1]https://github.com/asanthamax/mongodbuserstore
>>
>> Thanks,
>> Asantha
>>
>> On Fri, Jun 10, 2016 at 12:51 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> sorry for the delay i have updated my blog today and i'm keep posting
>>> all the progress in their[1] up to now and i am look forward for your
>>> feedbacks and comments
>>>
>>> [1]http://asanthamax.blogspot.com/
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Thu, Jun 9, 2016 at 7:37 AM, Tharindu Edirisinghe >> > wrote:
>>>
 Hi Asantha,

 Great ! There has been a delay in my replies but it's really good to
 see your progress with the project with a minimum level of supervision.

 I will arrange a review next week with the Identity Server team for the
 work completed so far and then we can provide the Mid Review feedback for
 the project.

 Keep on communicating the progress and the issues you face via emails
 and also update your blog with the findings.

 Thank you,
 TharinduE

 On Thu, Jun 9, 2016 at 4:44 PM, Asantha Thilina <
 asanthathil...@gmail.com> wrote:

> Hi Tharindu,
>
> i rearranged the UM_USER_ATTRIBUTE collection now when ever user
> update his profile, claim values will save in the collection the way we
> discussed in hangout i updated my repo[1] with latest modification
>
> [1] https://github.com/asanthamax/mongodbuserstore
>
> Thanks,
> Asantha
>
> On Wed, Jun 8, 2016 at 8:03 AM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>>
>> sorry i forget to attach my github repository here is the repository
>> link i have update the repository with my latest errors fixed
>> https://github.com/asanthamax/mongodbuserstore
>>
>> Thanks,
>> Asantha
>>
>> On Wed, Jun 8, 2016 at 8:00 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> I have fixed the claims issue now it can update and add claims to
>>> user but still the db structure is same as in relational structure i 
>>> have
>>> currently mapping it to a way we discussed ,most of the issues being 
>>> fixed
>>> now following tasks can do in now MongoDBUserStoreManager
>>> can add users.
>>> can add roles.
>>> can assign roles to users.
>>> can assign users to roles.
>>> can edit user claim values in update profile.
>>> I creating the documentation of my MongoDBUserStoreManager as well
>>> sooner i will publish the document and also test scripts as well
>>> And also following are the issues now i facing in
>>> registered users in my user store domain can't login to the IS it's
>>> giving error as MongoDBUserStoreManager can't cast to
>>> AbstractUserStoreManager since i done MongoDBUserStoreManager by
>>> implementing the UserStoreManager is there any special changes to do in 
>>> my
>>> code to authenticate user ? i debugged and see my doAuthenticate method 
>>> not
>>> get triggered during runtime
>>> expect some advice from you
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Mon, Jun 6, 2016 at 1:18 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>

Re: [Dev] [DEV] Need to know and contribute

2016-06-13 Thread Hariprasath Thanarajah
Hi Mayuran,

Really nice to hear about your interest in WSO2. You will get some idea
about connectors[1] and WSO2-ESB[2].  You may getting help from your
seniors since they were already did this.

[1] - https://docs.wso2.com/display/ESBCONNECTORS/WSO2+ESB+Connectors
[2] -
https://docs.wso2.com/display/ESB490/WSO2+Enterprise+Service+Bus+Documentation

On Tue, Jun 14, 2016 at 12:08 AM, Tharmalingam Mayuran  wrote:

> Hi All,
>
> I'm Mayuran doing computer science at Department of Computer Science,
> University of Jaffna. I was participate the Jaffna meetup last month. I got
> some idea about How to contribute to WSO2 and about WSO2 extensions and
> their usages. I would like to contribute to WSO2(wso2-extension). Some of
> my colleagues were already done this and some are working on this. Could
> you please share some useful documentation to understand the basic about
> ESB and wso2-extension. I and my friend would like to create an
> ESB-Connector. Can anyone suggest a useful connector as well to create?
>
> Thanks and Regards
> Mayuran T
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 


*Thank you and Regards**Hariprasath Thanarajah*
Associate Software Engineer | WSO2
E: haripras...@wso2.com
M: +94752806528, 0777216903
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] Need to know and contribute

2016-06-13 Thread Tharmalingam Mayuran
Hi All,

I'm Mayuran doing computer science at Department of Computer Science,
University of Jaffna. I was participate the Jaffna meetup last month. I got
some idea about How to contribute to WSO2 and about WSO2 extensions and
their usages. I would like to contribute to WSO2(wso2-extension). Some of
my colleagues were already done this and some are working on this. Could
you please share some useful documentation to understand the basic about
ESB and wso2-extension. I and my friend would like to create an
ESB-Connector. Can anyone suggest a useful connector as well to create?

Thanks and Regards
Mayuran T
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Blocking call mediator

2016-06-13 Thread Malaka Silva
Hi Godwin,

We can try the following to maintain the URL in registry.

   1. Create a registry entry with the url.
   2. Use call mediator with default endpoint.
   3. Use get-property(
   ​'registry'​
   , property
   ​ path​
   )
   ​ to get the value.
   4. Set TO header before using call in blocking mode.​


On Mon, Jun 13, 2016 at 8:53 PM, Godwin Shrimal  wrote:

> Hi Malaka,
>
> There is a template with a parameter as registry resource for backend
> endpoint. So inside the template we need to call backend endpoint using the
> parameter pass into template. Hope you understand my requirement.
>
>
> Thanks
> Godwin
>
>
> On Thu, Jun 9, 2016 at 12:37 AM, Malaka Silva  wrote:
>
>> Hi Godwin,
>>
>> For using the key-expression feature, shall we get the exact use case
>> that you are trying to implement?
>>
>> On Wed, Jun 8, 2016 at 7:55 PM, Godwin Shrimal  wrote:
>>
>>> Hi Kathees,
>>>
>>> My requirement is to use key-expression in blocking mode.
>>>
>>> @Isuru : Do we have any workaround/alternatives to achieve this ?
>>>
>>> Thanks
>>> Godwin
>>>
>>>
>>> On Tue, Jun 7, 2016 at 11:22 PM, Kathees Rajendram 
>>> wrote:
>>>
 Hi Godwin,

 Call mediator blocking mode supportes indirect URL with key as you
 mensioned above. Can you define the key expression in the endpoint.

 
 
 

 @Isuru
 Yes, call mediator with the combination of blocking=true and
 key-expression in endpoint is not supported directly. We can use above
 approach.

 Thanks,
 Kathees

 On Wed, Jun 8, 2016 at 6:27 AM, Isuru Udana  wrote:

> Hi Godwin,
>
> I think key-expressions are not supported in blocking mode.
> @Kathees,
> Can you please confirm ?
>
> Thanks.
>
> On Wed, Jun 8, 2016 at 3:08 AM, Godwin Shrimal 
> wrote:
>
>> Hi All,
>>
>> When I use call mediator in my sequence as below it gives error [1].
>>
>> 
>>
>> 
>>
>> 
>> If I change the code as any of below, its works fine.
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> Do we have a problem in Call mediator with the combination of 
>> *blocking=true
>> *and *key-expression *in endpoint ?
>>
>>
>> [1] org.apache.synapse.SynapseException: Error while performing the
>> call operation
>> at
>> org.apache.synapse.mediators.builtin.CallMediator.handleFault(CallMediator.java:306)
>> at
>> org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:119)
>> at
>> org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:85)
>> 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:149)
>> at
>> org.apache.synapse.message.processor.impl.sampler.SamplingService$1.run(SamplingService.java:211)
>> at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: java.lang.NullPointerException
>> at
>> org.apache.synapse.message.senders.blocking.BlockingMsgSender.send(BlockingMsgSender.java:114)
>> at
>> org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:113)
>>
>>
>> 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
>>
>
>
>
> --
> *Isuru Udana*
> Technical Lead
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
>



 --
 Kathees
 Software Engineer,
 email: kath...@wso2.com
 mobile: +94772596173

>>>
>>>
>>>
>>> --
>>> *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] ESB Blocking call mediator

2016-06-13 Thread Godwin Shrimal
Hi Malaka,

There is a template with a parameter as registry resource for backend
endpoint. So inside the template we need to call backend endpoint using the
parameter pass into template. Hope you understand my requirement.


Thanks
Godwin


On Thu, Jun 9, 2016 at 12:37 AM, Malaka Silva  wrote:

> Hi Godwin,
>
> For using the key-expression feature, shall we get the exact use case that
> you are trying to implement?
>
> On Wed, Jun 8, 2016 at 7:55 PM, Godwin Shrimal  wrote:
>
>> Hi Kathees,
>>
>> My requirement is to use key-expression in blocking mode.
>>
>> @Isuru : Do we have any workaround/alternatives to achieve this ?
>>
>> Thanks
>> Godwin
>>
>>
>> On Tue, Jun 7, 2016 at 11:22 PM, Kathees Rajendram 
>> wrote:
>>
>>> Hi Godwin,
>>>
>>> Call mediator blocking mode supportes indirect URL with key as you
>>> mensioned above. Can you define the key expression in the endpoint.
>>>
>>> 
>>> 
>>> 
>>>
>>> @Isuru
>>> Yes, call mediator with the combination of blocking=true and
>>> key-expression in endpoint is not supported directly. We can use above
>>> approach.
>>>
>>> Thanks,
>>> Kathees
>>>
>>> On Wed, Jun 8, 2016 at 6:27 AM, Isuru Udana  wrote:
>>>
 Hi Godwin,

 I think key-expressions are not supported in blocking mode.
 @Kathees,
 Can you please confirm ?

 Thanks.

 On Wed, Jun 8, 2016 at 3:08 AM, Godwin Shrimal  wrote:

> Hi All,
>
> When I use call mediator in my sequence as below it gives error [1].
>
> 
>
> 
>
> 
> If I change the code as any of below, its works fine.
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> Do we have a problem in Call mediator with the combination of 
> *blocking=true
> *and *key-expression *in endpoint ?
>
>
> [1] org.apache.synapse.SynapseException: Error while performing the
> call operation
> at
> org.apache.synapse.mediators.builtin.CallMediator.handleFault(CallMediator.java:306)
> at
> org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:119)
> at
> org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:85)
> 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:149)
> at
> org.apache.synapse.message.processor.impl.sampler.SamplingService$1.run(SamplingService.java:211)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NullPointerException
> at
> org.apache.synapse.message.senders.blocking.BlockingMsgSender.send(BlockingMsgSender.java:114)
> at
> org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:113)
>
>
> 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
>



 --
 *Isuru Udana*
 Technical Lead
 WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/

>>>
>>>
>>>
>>> --
>>> Kathees
>>> Software Engineer,
>>> email: kath...@wso2.com
>>> mobile: +94772596173
>>>
>>
>>
>>
>> --
>> *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
>>
>>
>
>
> --
>
> 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
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
> https://store.wso2.com/store/
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is 

Re: [Dev] [Carbon] Get tenant login event.

2016-06-13 Thread Lahiru J Ekanayake
Hi Ishara,

Thanks for replying. I want to get the *tenant login event*. Not the tenant
Id.

Regards

On Mon, Jun 13, 2016 at 2:24 PM, Ishara Cooray  wrote:

> Hi Lahiru,
>
> if you need to get the logged in tenant id, try
>
> //get the tenant domain
> String tenantDomain =
> CarbonContext.getThreadLocalCarbonContext().getTenantDomain();
> //then use org.wso2.carbon.user.core.service.RealmService to get the
> tenant id
>
>  * @scr.reference name="realm.service"
>  * interface="org.wso2.carbon.user.core.service.RealmService"
>  * cardinality="1..1" policy="dynamic" bind="setRealmService"
>  * unbind="unsetRealmService"
>
>  realmService.getTenantManager().getTenantId(tenantDomain);
>
> Regards,
>
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> On Mon, Jun 13, 2016 at 12:26 PM, Lahiru J Ekanayake 
> wrote:
>
>> Hi All,
>>
>> I'm trying to get specific tenant id, *when tenant log into the system*.
>> For that , i have tried by implementing *AxisObserver* interface.  As
>> well as i have debugged [1], which implemented AxisObserver interface. When
>> i was debugging this class's [1] init method ,I was able to see , it
>> executed only for supper tenant  when starting the server. Its not executed
>> when any tenant log to the system.
>>
>> How to detect any tenant login event ? . Please advice.
>>
>>
>>
>> [1] -
>> https://github.com/wso2/carbon-governance/blob/master/components/ws-discovery-proxy/org.wso2.carbon.discovery.proxy/src/main/java/org/wso2/carbon/discovery/proxy/DiscoveryProxyObserver.java
>>
>>
>>
>> Regards.
>>
>>
>>
>> --
>>
>>
>>
>> *Lahiru J Ekanayake**Software Engineer*
>> Mobile : +94 (0) 77 8812629 / +94(0) 778509547
>> Email : lahi...@wso2.com
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middleware.
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 



*Lahiru J Ekanayake**Software Engineer*
Mobile : +94 (0) 77 8812629 / +94(0) 778509547
Email : lahi...@wso2.com
WSO2, Inc.; http://wso2.com/
lean . enterprise . middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UUF] Convert an array to a javascript string array in nashorn.

2016-06-13 Thread Sudharma Subasinghe
There was a case to generate dynamic form using string such as
"."  and I had to use {{{ }}} to generate the form
dynamically.

Hence need a function to resolve this also.

On Fri, Jun 10, 2016 at 9:07 PM, Ayoma Wijethunga  wrote:

> +1 for not using "{{{".
>
> We will further check on adding such patterns ("{{{ * }}}") in planned
> Jenkins based automated security scans (static code analysis).
>
> On Fri, Jun 10, 2016 at 8:47 PM, SajithAR Ariyarathna 
> wrote:
>
>> +1 for abandoning "{{{"
>>
>> toClent("fromBackend.protocols", protocols);
>>
>> We can implement this in the next milestone.
>>
>> On Fri, Jun 10, 2016 at 8:12 PM, Manuranga Perera  wrote:
>>
>>> These are mistakes we have already made in our old systems, let's not
>>> repeat them
>>>
>>> 1) Please DO NOT use "{{{", it introduces SECURITY VULNERABILITIES,
>>> Sajith,Rasika we need to introduce a new function. Don't even tell
>>> people about "{{{"
>>> in backend JS, Hemika should be able to do the following
>>>
>>> toClent("fromBackend.protocols", protocols);
>>>
>>> and in frontend, he should be able to just
>>> console.log(fromBackend.protocols) and see the json
>>> Given the cost of this kind of vulnerabilities, I don't think we should
>>> even do this as a temp solution. We should safe stringify before sending,
>>> view source of gmail and search "var GLOBALS" and you see how safe json
>>> stringify works. ALL non-alpha-numeric has to be encoded with \x. Not just
>>> " but things like < , which are normally considered safe in json, has to be
>>> encoded [1].
>>>
>>> 2) We shouldn't manually iterating to convert to JSON. This just adds
>>> unnecessary boilerplate work dev has to do. If we implement (1) we don't
>>> need this for now. So we can discuss this later. But also see [2]
>>>
>>> [1] see "JavaScript Encoding" in
>>> https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet#Output_Encoding_Rules_Summary
>>> [2]
>>> http://mail.openjdk.java.net/pipermail/nashorn-dev/2013-September/002013.html
>>>
>>> On Fri, Jun 10, 2016 at 4:46 AM, Hemika Kodikara 
>>> wrote:
>>>
 Also please note that I used JSON.stringify method in server side js.

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

 On Fri, Jun 10, 2016 at 2:13 PM, Hemika Kodikara 
 wrote:

> Thanks Rasika for the solution.
>
> In the client side JS, have the following code :
>
> 
> var protocols = *{{{protocols}}}*;
> $.each(protocols, function(index, value) {
>
> $('#queue-subscription-protocols').append($('

[Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.6 RC3

2016-06-13 Thread Kalpa Welivitigoda
Hi Devs,

This is the 3rd release candidate of WSO2 Carbon Kernel 4.4.6.

This release fixes the following issues:
https://wso2.org/jira/issues/?filter=13090

Please download and test your products with kernel 4.4.6 RC3 and vote. Vote
will be open for 72 hours or as longer as needed.

​Source and binary distribution files:​
http://svn.wso2.org/repos/wso2/people/kalpaw/wso2carbon-4.4.6/wso2carbon-4.4.6-rc3.zip

​Maven staging repository:​
http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1024/

​The tag to be voted upon:​
https://github.com/wso2/carbon-kernel/tree/v4.4.6-rc3


[ ] Broken - do not release (explain why)
[ ] Stable - go ahead and release

Thank you
Carbon Team​

-- 
Best Regards,

Kalpa Welivitigoda
Senior Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Call Template Mediator Limitations

2016-06-13 Thread Charmi Jayanga
Hi,

Call Template mediator
 description
given in the documentation says, "it only supported for special types of
mediators such as the Iterator and Aggregate Mediators". But the sample
given in Sequence Template
, call-template
mediator has been used inside a switch mediator too. Could you please
explain where we can and can't use Call-Template mediator in WSO2 ESB.

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


[Dev] WSO2 Carbon Security CAAS 1.0.0-M2 Released

2016-06-13 Thread Jayanga Kaushalya
*WSO2 Carbon Security CAAS 1.0.0-M2 Released*

The Identity Server team is pleased to announce
the release of Carbon Security CAAS 1.0.0-M2. It is now available to
download from here
.

*Features*

*https://wso2.org/jira/issues/?filter=13096
*

*Installing as a Carbon Feature*

You may install carbon-security-caas feature to your product with:


  org.wso2.carbon.security.caas
  org.wso2.carbon.security.caas.feature
  1.0.0-m2
  zip


*How to Contribute*

   - WSO2 Carbon Security CAAS code is hosted in github.
   - The Git repository is *https://github.com/wso2/carbon-security
   *
   - Carbon Security CAAS 1.0.0-m2 release tag is
*https://github.com/wso2/carbon-security/releases/tag/v1.0.0-m
   2*
   - Please report issues at Carbon Security Jira,
*https://wso2.org/jira/browse/CSECURITY
   *


*Contact Us *

​WSO2 Carbon developers​ can be contacted via following mailing lists:

   - WSO2 Developers List: dev@wso2.org
   - WSO2 Architecture List: architect...@wso2.org


​Thank you for your interest in WSO2 Carbon Security CAAS​.

Thanks!
Identity Server Team

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


Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-13 Thread Asantha Thilina
Hi Tharindu,

i updated my blog[1] with all the works i have done so far there i added
all the methods and their use in MongoDBUserStoreManager ,
hopes your feedback
[1] http://asanthamax.blogspot.com/
Thanks,
Asantha

On Sun, Jun 12, 2016 at 2:11 PM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> i have solved the login issue for registered users in my mongodb user
> store. after compare my implementation with JDBCUserStoreManager i realized
> that i would gone through the wrong path by implementing UserStoreManager
> so i changed it by extending AbstractUserStoreManager instead of
> UserStoreManager thereafter most of the issues i have faced being resolved
> now it can add new users,roles and assign users to roles ,roles to users
> can change user profile claim values and also registered users can
> successfully logged into IS still the delete part has to be implemented and
> i will prepare a test scripts for my already implemented working parts
> sooner and from implemented modules only issue i'm facing at the moment is
> i can't decrypt the salted password of MongoDB server configuration in user
> store property xml file
> And also I need some advice from you to how i can improve the security of
> my query parameters in MongoDB
> i updated all my works in my repository[1]
>
> [1]https://github.com/asanthamax/mongodbuserstore
>
> Thanks,
> Asantha
>
> On Fri, Jun 10, 2016 at 12:51 PM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>>
>> sorry for the delay i have updated my blog today and i'm keep posting all
>> the progress in their[1] up to now and i am look forward for your feedbacks
>> and comments
>>
>> [1]http://asanthamax.blogspot.com/
>>
>> Thanks,
>> Asantha
>>
>> On Thu, Jun 9, 2016 at 7:37 AM, Tharindu Edirisinghe 
>> wrote:
>>
>>> Hi Asantha,
>>>
>>> Great ! There has been a delay in my replies but it's really good to see
>>> your progress with the project with a minimum level of supervision.
>>>
>>> I will arrange a review next week with the Identity Server team for the
>>> work completed so far and then we can provide the Mid Review feedback for
>>> the project.
>>>
>>> Keep on communicating the progress and the issues you face via emails
>>> and also update your blog with the findings.
>>>
>>> Thank you,
>>> TharinduE
>>>
>>> On Thu, Jun 9, 2016 at 4:44 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Tharindu,

 i rearranged the UM_USER_ATTRIBUTE collection now when ever user update
 his profile, claim values will save in the collection the way we discussed
 in hangout i updated my repo[1] with latest modification

 [1] https://github.com/asanthamax/mongodbuserstore

 Thanks,
 Asantha

 On Wed, Jun 8, 2016 at 8:03 AM, Asantha Thilina <
 asanthathil...@gmail.com> wrote:

> Hi Tharindu,
>
> sorry i forget to attach my github repository here is the repository
> link i have update the repository with my latest errors fixed
> https://github.com/asanthamax/mongodbuserstore
>
> Thanks,
> Asantha
>
> On Wed, Jun 8, 2016 at 8:00 AM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>>
>> I have fixed the claims issue now it can update and add claims to
>> user but still the db structure is same as in relational structure i have
>> currently mapping it to a way we discussed ,most of the issues being 
>> fixed
>> now following tasks can do in now MongoDBUserStoreManager
>> can add users.
>> can add roles.
>> can assign roles to users.
>> can assign users to roles.
>> can edit user claim values in update profile.
>> I creating the documentation of my MongoDBUserStoreManager as well
>> sooner i will publish the document and also test scripts as well
>> And also following are the issues now i facing in
>> registered users in my user store domain can't login to the IS it's
>> giving error as MongoDBUserStoreManager can't cast to
>> AbstractUserStoreManager since i done MongoDBUserStoreManager by
>> implementing the UserStoreManager is there any special changes to do in 
>> my
>> code to authenticate user ? i debugged and see my doAuthenticate method 
>> not
>> get triggered during runtime
>> expect some advice from you
>>
>> Thanks,
>> Asantha
>>
>> On Mon, Jun 6, 2016 at 1:18 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> ok sure i will modify the readme content as appropriately,at the
>>> moment i didn't add that feature, set to all default i will modify that 
>>> to
>>> add a port number also,
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Mon, Jun 6, 2016 at 12:04 AM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
 Hi Asantha,

 We might not need 

Re: [Dev] [DevStudio][WebUI] Providing CSS Editing feature through Web UI platform

2016-06-13 Thread Heshitha Hettihewa
Hi Awanthika/Kavith,

Thanks for the suggestions. I'll send a PR of those functions for sure.
Further I added a Jira[1] to track this functionality.

Thanks.

[1]. https://wso2.org/jira/browse/DEVTOOLBPS-37

On Mon, Jun 13, 2016 at 3:25 PM, Awanthika Senarath 
wrote:

> Hello Heshitha,
>
> As mentioned please add the functionalities into the web ui core plugin
> available at [1], developer studio tooling platform and send a PR.
>
> [1] https://github.com/wso2/devstudio-tooling-platform/tree/master/plugins
>
> Regards
> Awanthika
>
> Awanthika Senarath
> Senior Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Mon, Jun 13, 2016 at 3:22 PM, Kavith Lokuhewage 
> wrote:
>
>> On Mon, Jun 13, 2016 at 3:11 PM, Awanthika Senarath 
>> wrote:
>>
>>>
>>> @ Kavith, WDYT? is there any other approach OR a possibility for us to
>>> make this available through the framework?
>>>
>>
>>  Yep, we should add this support to the framework itself.
>>
>> @Heshitha, this is perfectly fine and should be done always when you
>> need to keep any user preference for web based editors. Please go ahead
>> with implement a custom js function handler.
>> For now, you can keep it within your plugin. In next release, we can get
>> it to the kernel and get the support from kernel it self.
>>
>> As I remember, there were two other function handlers - which you
>> implemented for logging and error dialog related functionalities. We need
>> to merge those handlers also to kernel. If you find some time,  please try
>> to send a PR to kernel. We will get them shipped with next kernel release.
>>
>> Thanks
>>
>> [1]
>>> https://github.com/wso2/developer-studio/tree/master/plugins/org.wso2.developerstudio.eclipse.platform.ui/src/org/wso2/developerstudio/eclipse/platform/ui/preferences
>>>
>>> Regards
>>> Awanthika
>>>
>>> Awanthika Senarath
>>> Senior Software Engineer, WSO2 Inc.
>>> Mobile: +94717681791
>>>
>>>
>>>
>>> On Mon, Jun 13, 2016 at 2:58 PM, Heshitha Hettihewa 
>>> wrote:
>>>
 Hi all,

 Is there any possibility of providing the ability of editing Web UI
 Editor's CSS styles such as font size and font colors from eclipse
 preferences?. If not what is the best approach to do such thing?. As an
 example if user needs to change the font size of the web editor's fonts
 what is the preferred method to do so. Is it ok if a web UI based method
 added inside the editor itself to change the preferences?.

 Thanks.
 --
 Heshitha Hettihewa
 *Software Engineer*
 Mobile : +94716866386
 <%2B94%20%280%29%20773%20451194>
 heshit...@wso2.com

>>>
>>>
>>
>


-- 
Heshitha Hettihewa
*Software Engineer*
Mobile : +94716866386
<%2B94%20%280%29%20773%20451194>
heshit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [wso2 IS] How to disable Shindig fetching google analytics

2016-06-13 Thread Maninda Edirisooriya
Hi Udara,

Remove the below 3 lines from the features.txt which is located in
/repository/deployment/server/webapps/shindig.war/WEB-INF/lib/shindig-extras-2.5.2.jar/feature-extras
directory.
(In the shindig-extras-2.5.2.jar jar in shindig.war)

features-extras/analytics/feature.xml
features-extras/com.google.gadgets.analytics/feature.xml
features-extras/org.jquery.core-1.4.2/feature.xml

If the extracted directory "shindig" is already there, delete that
directory and let the shindig.war to be extracted in the server startup.
Thanks.


*Maninda Edirisooriya*
Senior Software Engineer

*WSO2, Inc.*lean.enterprise.middleware.

*Blog* : http://maninda.blogspot.com/
*E-mail* : mani...@wso2.com
*Skype* : @manindae
*Twitter* : @maninda

On Thu, Jun 2, 2016 at 8:26 PM, Kasun Bandara  wrote:

> Hi Bhathiya,
>
> Thanks for pointing out the corresponding version update. Created [1] to
> ensure that this doesn't miss in the next release.
>
>
> Regards,
> Kasun.
>
> [1] https://wso2.org/jira/browse/IDENTITY-4650
>
> On Thu, Jun 2, 2016 at 7:41 PM, Bhathiya Jayasekara 
> wrote:
>
>> Hi Udara,
>>
>> This is fixed by carbon-dashboards 1.0.18. See [1]. IS has to upgrade its
>> dependency.
>>
>> [1] [Dev] Shindig error on DS portal startup, due to connectivity errors
>> to google
>>
>> Thanks,
>> Bhathiya
>>
>> On Thu, Jun 2, 2016 at 7:01 PM, Udara Liyanage  wrote:
>>
>>> Hi,
>>>
>>> IS 510 tries to reach google analytic at startup. When an server is
>>> started in a docker container where no internet access is available it
>>> throws errors and server startup delays.
>>>
>>> Is there configuration to stop this?
>>>
>>>
>>> TID: [-1234] [] [2016-06-02 12:58:43,036]  INFO
>>> {org.apache.shindig.gadgets.http.BasicHttpFetcher} -*  The following
>>> exception occurred when fetching
>>> http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
>>> : 25,573
>>> ms elapsed. *
>>> TID: [-1234] [] [2016-06-02 12:58:43,037]  INFO
>>> {org.apache.shindig.gadgets.http.BasicHttpFetcher} -
>>> org.apache.http.conn.ConnectTimeoutException: Connect to
>>> ajax.googleapis.com:80 timed out
>>> at
>>> org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
>>> at
>>> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
>>> at
>>> org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)
>>> at
>>> org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:131)
>>> at
>>> org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
>>> at
>>> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
>>> at
>>> org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
>>> at
>>> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:115)
>>> at
>>> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
>>> at
>>> org.apache.shindig.gadgets.http.BasicHttpFetcher.fetch(BasicHttpFetcher.java:359)
>>> at
>>> org.apache.shindig.gadgets.features.FeatureResourceLoader$UriResource.getContent(FeatureResourceLoader.java:291)
>>> at
>>> org.apache.shindig.gadgets.features.FeatureResourceLoader$UriResource.(FeatureResourceLoader.java:270)
>>> at
>>> org.apache.shindig.gadgets.features.FeatureResourceLoader$UriResource.(FeatureResourceLoader.java:256)
>>> at
>>> org.apache.shindig.gadgets.features.FeatureResourceLoader.loadUri(FeatureResourceLoader.java:135)
>>> at
>>> org.apache.shindig.gadgets.features.FeatureResourceLoader.load(FeatureResourceLoader.java:88)
>>> at
>>> org.apache.shindig.gadgets.features.FeatureRegistry.loadFeature(FeatureRegistry.java:486)
>>>
>>>
>>> --
>>>
>>> Udara Liyanage
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> web: http://udaraliyanage.wordpress.com
>>> phone: +94 71 443 6897
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Bhathiya Jayasekara*
>> *Senior Software Engineer,*
>> *WSO2 inc., http://wso2.com *
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> *
>> *Twitter: https://twitter.com/bhathiyax *
>> *Blog: http://movingaheadblog.blogspot.com
>> *
>>
>
>
>
> --
> Kasun Bandara
> *Software Engineer*
> Mobile : +94 (0) 718 338 360
> <%2B94%20%280%29%20773%20451194>
> kas...@wso2.com 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

Re: [Dev] [DevStudio][WebUI] Providing CSS Editing feature through Web UI platform

2016-06-13 Thread Awanthika Senarath
Hello Heshitha,

As mentioned please add the functionalities into the web ui core plugin
available at [1], developer studio tooling platform and send a PR.

[1] https://github.com/wso2/devstudio-tooling-platform/tree/master/plugins

Regards
Awanthika

Awanthika Senarath
Senior Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Mon, Jun 13, 2016 at 3:22 PM, Kavith Lokuhewage  wrote:

> On Mon, Jun 13, 2016 at 3:11 PM, Awanthika Senarath 
> wrote:
>
>>
>> @ Kavith, WDYT? is there any other approach OR a possibility for us to
>> make this available through the framework?
>>
>
>  Yep, we should add this support to the framework itself.
>
> @Heshitha, this is perfectly fine and should be done always when you need
> to keep any user preference for web based editors. Please go ahead with
> implement a custom js function handler.
> For now, you can keep it within your plugin. In next release, we can get
> it to the kernel and get the support from kernel it self.
>
> As I remember, there were two other function handlers - which you
> implemented for logging and error dialog related functionalities. We need
> to merge those handlers also to kernel. If you find some time,  please try
> to send a PR to kernel. We will get them shipped with next kernel release.
>
> Thanks
>
> [1]
>> https://github.com/wso2/developer-studio/tree/master/plugins/org.wso2.developerstudio.eclipse.platform.ui/src/org/wso2/developerstudio/eclipse/platform/ui/preferences
>>
>> Regards
>> Awanthika
>>
>> Awanthika Senarath
>> Senior Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> On Mon, Jun 13, 2016 at 2:58 PM, Heshitha Hettihewa 
>> wrote:
>>
>>> Hi all,
>>>
>>> Is there any possibility of providing the ability of editing Web UI
>>> Editor's CSS styles such as font size and font colors from eclipse
>>> preferences?. If not what is the best approach to do such thing?. As an
>>> example if user needs to change the font size of the web editor's fonts
>>> what is the preferred method to do so. Is it ok if a web UI based method
>>> added inside the editor itself to change the preferences?.
>>>
>>> Thanks.
>>> --
>>> Heshitha Hettihewa
>>> *Software Engineer*
>>> Mobile : +94716866386
>>> <%2B94%20%280%29%20773%20451194>
>>> heshit...@wso2.com
>>>
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DevStudio][WebUI] Providing CSS Editing feature through Web UI platform

2016-06-13 Thread Kavith Lokuhewage
On Mon, Jun 13, 2016 at 3:11 PM, Awanthika Senarath 
wrote:

>
> @ Kavith, WDYT? is there any other approach OR a possibility for us to
> make this available through the framework?
>

 Yep, we should add this support to the framework itself.

@Heshitha, this is perfectly fine and should be done always when you need
to keep any user preference for web based editors. Please go ahead with
implement a custom js function handler.
For now, you can keep it within your plugin. In next release, we can get it
to the kernel and get the support from kernel it self.

As I remember, there were two other function handlers - which you
implemented for logging and error dialog related functionalities. We need
to merge those handlers also to kernel. If you find some time,  please try
to send a PR to kernel. We will get them shipped with next kernel release.

Thanks

[1]
> https://github.com/wso2/developer-studio/tree/master/plugins/org.wso2.developerstudio.eclipse.platform.ui/src/org/wso2/developerstudio/eclipse/platform/ui/preferences
>
> Regards
> Awanthika
>
> Awanthika Senarath
> Senior Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Mon, Jun 13, 2016 at 2:58 PM, Heshitha Hettihewa 
> wrote:
>
>> Hi all,
>>
>> Is there any possibility of providing the ability of editing Web UI
>> Editor's CSS styles such as font size and font colors from eclipse
>> preferences?. If not what is the best approach to do such thing?. As an
>> example if user needs to change the font size of the web editor's fonts
>> what is the preferred method to do so. Is it ok if a web UI based method
>> added inside the editor itself to change the preferences?.
>>
>> Thanks.
>> --
>> Heshitha Hettihewa
>> *Software Engineer*
>> Mobile : +94716866386
>> <%2B94%20%280%29%20773%20451194>
>> heshit...@wso2.com
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DevStudio][WebUI] Providing CSS Editing feature through Web UI platform

2016-06-13 Thread Heshitha Hettihewa
Hi Awanthika,

Thanks a lot. I'll try this out.

Thanks.

On Mon, Jun 13, 2016 at 3:11 PM, Awanthika Senarath 
wrote:

> Hello Heshitha,
>
> You can add your own preference page to change text colors and sizes from
> eclipse preferences and retrieve these values on Java side. There are
> enough samples on this in the kernel at [1].
>
> You will have to introduce a method in the java code to read these
> preferences and make them available in the web side for it to be available
> through the web <->Java bridge we have created.
>
> Then you will have to look into a way to change these CSS values from java
> script code, which I believe is not that hard.
>
> @ Kavith, WDYT? is there any other approach OR a possibility for us to
> make this available through the framework?
>
>
> [1]
> https://github.com/wso2/developer-studio/tree/master/plugins/org.wso2.developerstudio.eclipse.platform.ui/src/org/wso2/developerstudio/eclipse/platform/ui/preferences
>
> Regards
> Awanthika
>
> Awanthika Senarath
> Senior Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Mon, Jun 13, 2016 at 2:58 PM, Heshitha Hettihewa 
> wrote:
>
>> Hi all,
>>
>> Is there any possibility of providing the ability of editing Web UI
>> Editor's CSS styles such as font size and font colors from eclipse
>> preferences?. If not what is the best approach to do such thing?. As an
>> example if user needs to change the font size of the web editor's fonts
>> what is the preferred method to do so. Is it ok if a web UI based method
>> added inside the editor itself to change the preferences?.
>>
>> Thanks.
>> --
>> Heshitha Hettihewa
>> *Software Engineer*
>> Mobile : +94716866386
>> <%2B94%20%280%29%20773%20451194>
>> heshit...@wso2.com
>>
>
>


-- 
Heshitha Hettihewa
*Software Engineer*
Mobile : +94716866386
<%2B94%20%280%29%20773%20451194>
heshit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DevStudio][WebUI] Providing CSS Editing feature through Web UI platform

2016-06-13 Thread Awanthika Senarath
Hello Heshitha,

You can add your own preference page to change text colors and sizes from
eclipse preferences and retrieve these values on Java side. There are
enough samples on this in the kernel at [1].

You will have to introduce a method in the java code to read these
preferences and make them available in the web side for it to be available
through the web <->Java bridge we have created.

Then you will have to look into a way to change these CSS values from java
script code, which I believe is not that hard.

@ Kavith, WDYT? is there any other approach OR a possibility for us to make
this available through the framework?


[1]
https://github.com/wso2/developer-studio/tree/master/plugins/org.wso2.developerstudio.eclipse.platform.ui/src/org/wso2/developerstudio/eclipse/platform/ui/preferences

Regards
Awanthika

Awanthika Senarath
Senior Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Mon, Jun 13, 2016 at 2:58 PM, Heshitha Hettihewa 
wrote:

> Hi all,
>
> Is there any possibility of providing the ability of editing Web UI
> Editor's CSS styles such as font size and font colors from eclipse
> preferences?. If not what is the best approach to do such thing?. As an
> example if user needs to change the font size of the web editor's fonts
> what is the preferred method to do so. Is it ok if a web UI based method
> added inside the editor itself to change the preferences?.
>
> Thanks.
> --
> Heshitha Hettihewa
> *Software Engineer*
> Mobile : +94716866386
> <%2B94%20%280%29%20773%20451194>
> heshit...@wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DevStudio][WebUI] Providing CSS Editing feature through Web UI platform

2016-06-13 Thread Heshitha Hettihewa
Hi all,

Is there any possibility of providing the ability of editing Web UI
Editor's CSS styles such as font size and font colors from eclipse
preferences?. If not what is the best approach to do such thing?. As an
example if user needs to change the font size of the web editor's fonts
what is the preferred method to do so. Is it ok if a web UI based method
added inside the editor itself to change the preferences?.

Thanks.
-- 
Heshitha Hettihewa
*Software Engineer*
Mobile : +94716866386
<%2B94%20%280%29%20773%20451194>
heshit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [UUF] Passing values when continuing using server side js

2016-06-13 Thread Sudharma Subasinghe
Hi,

Currently, I am using "query string" parameter to pass a value from one
page to another page using server side js.

Is there any way to pass values without using "query string" for these
scenarios?

Thanks
Sudharma
-- 
Sudharma Subasinghe,
Software Engineer,
WSO2 Inc.
Email: sudhar...@wso2.com 
Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Carbon] Get tenant login event.

2016-06-13 Thread Lahiru J Ekanayake
Hi All,

I'm trying to get specific tenant id, *when tenant log into the system*.
For that , i have tried by implementing *AxisObserver* interface.  As well
as i have debugged [1], which implemented AxisObserver interface. When i
was debugging this class's [1] init method ,I was able to see , it executed
only for supper tenant  when starting the server. Its not executed when any
tenant log to the system.

How to detect any tenant login event ? . Please advice.



[1] -
https://github.com/wso2/carbon-governance/blob/master/components/ws-discovery-proxy/org.wso2.carbon.discovery.proxy/src/main/java/org/wso2/carbon/discovery/proxy/DiscoveryProxyObserver.java



Regards.



-- 



*Lahiru J Ekanayake**Software Engineer*
Mobile : +94 (0) 77 8812629 / +94(0) 778509547
Email : lahi...@wso2.com
WSO2, Inc.; http://wso2.com/
lean . enterprise . middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove the heading-label of collapsible Metadata menu specific UI features on Carbon Mgt Console

2016-06-13 Thread Samitha Chathuranga
Hi Denuwanthi,

Thanks for the suggestion. I removed the lifecycle UI feature too and the
build is now ok. We will consider about the permission restriction for the
expected requirement.

Regards.

On Mon, Jun 13, 2016 at 12:07 PM, Denuwanthi De Silva 
wrote:

> Hi Samitha,
>
> Since you don't need meta data ui, there is no point of having a lifecycle
> ui as well(as there are no metadata view to do lifecycle operations). Then
> you can go on and remove the lifecycle UI feature and just use the
> lifecycle server feature.
>
> Anyway, the kind of requirement you need, can be achieved via permission
> management.
> That is, you restrict the permissions to WSO2 PC users/roles according to
> the operations you want to be restricted to each role. So some roles will
> not be able to modify metadata etc.
>
>
> Thanks.
>
> On Mon, Jun 13, 2016 at 11:50 AM, Samitha Chathuranga 
> wrote:
>
>> Hi Denuwanthi,
>>
>> This is the error log.
>>
>> Cannot complete the install because one or more required items could not
>> be found.
>>  Software being installed: WSO2 Carbon - Governance Lifecycle Management
>> Feature 4.6.4.SNAPSHOT
>> (org.wso2.carbon.governance.lifecycle.management.feature.group
>> 4.6.4.SNAPSHOT)
>>  Missing requirement: WSO2 Carbon - Governance Lifecycle Management UI
>> Feature 4.6.4.SNAPSHOT
>> (org.wso2.carbon.governance.lifecycle.management.ui.feature.group
>> 4.6.4.SNAPSHOT) requires
>> 'org.wso2.carbon.registry.extensions.ui.feature.group
>> [4.6.4.SNAPSHOT,4.7.0)' but it could not be found
>>  Cannot satisfy dependency:
>>   From: WSO2 Carbon - Governance Lifecycle Management Feature
>> 4.6.4.SNAPSHOT
>> (org.wso2.carbon.governance.lifecycle.management.feature.group
>> 4.6.4.SNAPSHOT)
>>   To: org.wso2.carbon.governance.lifecycle.management.ui.feature.group
>> [4.6.4.SNAPSHOT]
>> Application failed, log file location:
>> /home/samithac/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1465798066460.log
>> .
>>
>> Anyway I am not sure that the solution for my task is removing
>> org.wso2.carbon.registry.extensions.ui.feature. Because it seems that other
>> features need it and so we cannot remove it.
>>
>> Thanks.
>>
>>
>> On Mon, Jun 13, 2016 at 11:34 AM, Denuwanthi De Silva <
>> denuwan...@wso2.com> wrote:
>>
>>> Hi Samitha,
>>>
>>> Can you mention the error log you get when the build fails (when
>>> removing org.wso2.carbon.registry.extensions.ui.feature)?
>>>
>>> Thanks
>>>
>>> On Mon, Jun 13, 2016 at 11:25 AM, Samitha Chathuranga 
>>> wrote:
>>>
 Hi,

 I wanted to remove Main - > Metadata section on the mgt console (In
 WSO2 PC). So I removed,

 org.wso2.carbon.governance.metadata.ui.feature
 ( by removing, org.wso2.carbon.governance.metadata.feature and adding 
 org.wso2.carbon.governance.metadata.server.feature.)

 But this was half a success as it removed all the sub links / buttons 
 under "Metadata" section, but the specific collapsible menu (only with the 
 heading label) is still left. So I want to remove that empty collapsible 
 Metadata
 menu heading too. How to do that?

 P.S. I tried removing org.wso2.carbon.registry.extensions.ui.feature but 
 then the build failed as another feature required that removed feature as 
 a dependency.

 Thanks.



 --
 Samitha Chathuranga
 Software Engineer, WSO2 Inc.
 lean.enterprise.middleware
 Mobile: +94715123761

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


>>>
>>>
>>> --
>>> Denuwanthi De Silva
>>> Software Engineer;
>>> WSO2 Inc.; http://wso2.com,
>>> Email: denuwan...@wso2.com
>>> Blog: https://denuwanthi.wordpress.com/
>>>
>>
>>
>>
>> --
>> Samitha Chathuranga
>> Software Engineer, WSO2 Inc.
>> lean.enterprise.middleware
>> Mobile: +94715123761
>>
>
>
>
> --
> Denuwanthi De Silva
> Software Engineer;
> WSO2 Inc.; http://wso2.com,
> Email: denuwan...@wso2.com
> Blog: https://denuwanthi.wordpress.com/
>



-- 
Samitha Chathuranga
Software Engineer, WSO2 Inc.
lean.enterprise.middleware
Mobile: +94715123761
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API-M Analytics] Can't we enable Log Analyzer by default?

2016-06-13 Thread Ruwan Abeykoon
Hi Nirmal,
>>Can't we enable LA publishers too once the API-M Analytics enabled?
Yes, we can and should.

This is discussed at another thread [1]. Yet to discuss is, we still not
have agreed place to enable analytics across all products. So reading the
respective property from api-manager.xml does not work for other products
(say Analytics for ESB).

[1] engineering@ "Single point configuration, DAS Log4J Appender on Log
Analyzer"

Cheers,
Ruwan

On Mon, Jun 13, 2016 at 12:06 PM, Nirmal Fernando  wrote:

> Can't we enable LA publishers too once the API-M Analytics enabled?
>
> On Mon, Jun 13, 2016 at 12:03 PM, Ruwan Abeykoon  wrote:
>
>> Hi Nirmal,
>> I assume you refer the adding "DAS_AGENT" to the "log4j.rootLogger"
>>
>> Main reason is that a person first trying the APIM will not use analytics
>> at the very first steps. Currently the DAS publisher throws few errors when
>> the "Analytics DAS pack" is not contactable. This will confuse the first
>> time user.
>>
>> We should be able to fix this with some small re-design of DAS publisher
>> error handling mechanism, and handling the errors at log4j appender
>> properly.
>>
>> Cheers,
>> Ruwan
>>
>> On Mon, Jun 13, 2016 at 11:52 AM, Nirmal Fernando 
>> wrote:
>>
>>> Hi All,
>>>
>>> $Subject? What're the issues of doing so?
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Team Lead - WSO2 Machine Learner
>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>>
>> *Ruwan Abeykoon*
>> *Associate Director/Architect**,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ruw...@wso2.com
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 

*Ruwan Abeykoon*
*Associate Director/Architect**,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

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


Re: [Dev] Remove the heading-label of collapsible Metadata menu specific UI features on Carbon Mgt Console

2016-06-13 Thread Denuwanthi De Silva
Hi Samitha,

Since you don't need meta data ui, there is no point of having a lifecycle
ui as well(as there are no metadata view to do lifecycle operations). Then
you can go on and remove the lifecycle UI feature and just use the
lifecycle server feature.

Anyway, the kind of requirement you need, can be achieved via permission
management.
That is, you restrict the permissions to WSO2 PC users/roles according to
the operations you want to be restricted to each role. So some roles will
not be able to modify metadata etc.


Thanks.

On Mon, Jun 13, 2016 at 11:50 AM, Samitha Chathuranga 
wrote:

> Hi Denuwanthi,
>
> This is the error log.
>
> Cannot complete the install because one or more required items could not
> be found.
>  Software being installed: WSO2 Carbon - Governance Lifecycle Management
> Feature 4.6.4.SNAPSHOT
> (org.wso2.carbon.governance.lifecycle.management.feature.group
> 4.6.4.SNAPSHOT)
>  Missing requirement: WSO2 Carbon - Governance Lifecycle Management UI
> Feature 4.6.4.SNAPSHOT
> (org.wso2.carbon.governance.lifecycle.management.ui.feature.group
> 4.6.4.SNAPSHOT) requires
> 'org.wso2.carbon.registry.extensions.ui.feature.group
> [4.6.4.SNAPSHOT,4.7.0)' but it could not be found
>  Cannot satisfy dependency:
>   From: WSO2 Carbon - Governance Lifecycle Management Feature
> 4.6.4.SNAPSHOT
> (org.wso2.carbon.governance.lifecycle.management.feature.group
> 4.6.4.SNAPSHOT)
>   To: org.wso2.carbon.governance.lifecycle.management.ui.feature.group
> [4.6.4.SNAPSHOT]
> Application failed, log file location:
> /home/samithac/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1465798066460.log
> .
>
> Anyway I am not sure that the solution for my task is removing
> org.wso2.carbon.registry.extensions.ui.feature. Because it seems that other
> features need it and so we cannot remove it.
>
> Thanks.
>
>
> On Mon, Jun 13, 2016 at 11:34 AM, Denuwanthi De Silva  > wrote:
>
>> Hi Samitha,
>>
>> Can you mention the error log you get when the build fails (when removing
>> org.wso2.carbon.registry.extensions.ui.feature)?
>>
>> Thanks
>>
>> On Mon, Jun 13, 2016 at 11:25 AM, Samitha Chathuranga 
>> wrote:
>>
>>> Hi,
>>>
>>> I wanted to remove Main - > Metadata section on the mgt console (In WSO2
>>> PC). So I removed,
>>>
>>> org.wso2.carbon.governance.metadata.ui.feature
>>> ( by removing, org.wso2.carbon.governance.metadata.feature and adding 
>>> org.wso2.carbon.governance.metadata.server.feature.)
>>>
>>> But this was half a success as it removed all the sub links / buttons under 
>>> "Metadata" section, but the specific collapsible menu (only with the 
>>> heading label) is still left. So I want to remove that empty collapsible 
>>> Metadata
>>> menu heading too. How to do that?
>>>
>>> P.S. I tried removing org.wso2.carbon.registry.extensions.ui.feature but 
>>> then the build failed as another feature required that removed feature as a 
>>> dependency.
>>>
>>> Thanks.
>>>
>>>
>>>
>>> --
>>> Samitha Chathuranga
>>> Software Engineer, WSO2 Inc.
>>> lean.enterprise.middleware
>>> Mobile: +94715123761
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Denuwanthi De Silva
>> Software Engineer;
>> WSO2 Inc.; http://wso2.com,
>> Email: denuwan...@wso2.com
>> Blog: https://denuwanthi.wordpress.com/
>>
>
>
>
> --
> Samitha Chathuranga
> Software Engineer, WSO2 Inc.
> lean.enterprise.middleware
> Mobile: +94715123761
>



-- 
Denuwanthi De Silva
Software Engineer;
WSO2 Inc.; http://wso2.com,
Email: denuwan...@wso2.com
Blog: https://denuwanthi.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API-M Analytics] Can't we enable Log Analyzer by default?

2016-06-13 Thread Nirmal Fernando
Can't we enable LA publishers too once the API-M Analytics enabled?

On Mon, Jun 13, 2016 at 12:03 PM, Ruwan Abeykoon  wrote:

> Hi Nirmal,
> I assume you refer the adding "DAS_AGENT" to the "log4j.rootLogger"
>
> Main reason is that a person first trying the APIM will not use analytics
> at the very first steps. Currently the DAS publisher throws few errors when
> the "Analytics DAS pack" is not contactable. This will confuse the first
> time user.
>
> We should be able to fix this with some small re-design of DAS publisher
> error handling mechanism, and handling the errors at log4j appender
> properly.
>
> Cheers,
> Ruwan
>
> On Mon, Jun 13, 2016 at 11:52 AM, Nirmal Fernando  wrote:
>
>> Hi All,
>>
>> $Subject? What're the issues of doing so?
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Team Lead - WSO2 Machine Learner
>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
>
> *Ruwan Abeykoon*
> *Associate Director/Architect**,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
>



-- 

Thanks & regards,
Nirmal

Team Lead - WSO2 Machine Learner
Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API-M Analytics] Can't we enable Log Analyzer by default?

2016-06-13 Thread Ruwan Abeykoon
Hi Nirmal,
I assume you refer the adding "DAS_AGENT" to the "log4j.rootLogger"

Main reason is that a person first trying the APIM will not use analytics
at the very first steps. Currently the DAS publisher throws few errors when
the "Analytics DAS pack" is not contactable. This will confuse the first
time user.

We should be able to fix this with some small re-design of DAS publisher
error handling mechanism, and handling the errors at log4j appender
properly.

Cheers,
Ruwan

On Mon, Jun 13, 2016 at 11:52 AM, Nirmal Fernando  wrote:

> Hi All,
>
> $Subject? What're the issues of doing so?
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 

*Ruwan Abeykoon*
*Associate Director/Architect**,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

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


[Dev] [API-M Analytics] Can't we enable Log Analyzer by default?

2016-06-13 Thread Nirmal Fernando
Hi All,

$Subject? What're the issues of doing so?

-- 

Thanks & regards,
Nirmal

Team Lead - WSO2 Machine Learner
Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.6 RC2

2016-06-13 Thread Bhathiya Jayasekara
Hi Kasun,

On Fri, Jun 10, 2016 at 5:01 PM, KasunG Gajasinghe  wrote:

>
>
> On Fri, Jun 10, 2016 at 4:42 PM, Bhathiya Jayasekara 
> wrote:
>
>> Hi Kasun,
>>
>> On Fri, Jun 10, 2016 at 4:10 PM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi Bhathiya,
>>>
>>> On Fri, Jun 10, 2016 at 3:19 PM, Bhathiya Jayasekara 
>>> wrote:
>>>
 Hi Kalpa,

 I tried to do a smoke test. But I can't login to any jaggery app, due
 to the same error. So I think we have 2 options here.

 1) Modify default jks to accept * (wildcard) hostname.
 2) Introduce some config or system variable to disable hostname
 verification,  read it from everywhere we use http client in our platform
 and disable/enable it.


>>> Both these options introduce security vulnerabilities, so I don't think
>>> we should do either.
>>>
>>
>> That's correct, but since no one is supposed to use default keystore or
>> disable hostname verification in production, this won't be a problem at
>> all.
>>
>>
>>>
>>> Your jaggery apps are calling AuthenticationAdmin service endpoint which
>>> is in the same JVM.
>>>
>>
>> This is not the case always. In a distributed setup, auth call is not in
>> jvm.
>>
>
> Yes, if you are setting up a cluster, then you need to use proper
> keystores.
>
>
>> So we can't read it from carbon.xml.
>>
>
> I checked how APIM generates the AuthenticationAdmin endpoint. In
> api-manager.xml, for the AuthManager's ServerURL, you have the https
> endpoint of the local server as the default setting. Can you change this to
> use local transport instead? This may be applicable to all the ServerURLs
> configurations in there.
>
> This will work when invoking axis2 back-ends, but not for other rest apis
> like cxf. Does APIM has such a usecase?
>

Yes, we have a cxf rest api. We use the same config to read the URL of
that. So we won't be able to change it to local transport.

Thanks,
Bhathiya


>
> One other option is modifying all our default configs to have local
>> transport. But that will introduce a new configuration complexity to the
>> product. However we will try if we can do that in all places.
>>
>
> There is no configuration complexity since the relevant bits are already
> there.
>
>
>>
>> Meanwhile please consider my above suggestions again.
>>
>> Thanks,
>> Bhathiya
>>
>>
>>> So, it is an in-jvm call. You should be using the local transport for
>>> that. For that, you can get the server url through the *ServerURL *attribute
>>> in the carbon.xml. Then, append the service name at the end. Now, you have
>>> the endpoint you need to call.
>>>
>>> Further, I have tested after changing the ServerURL from local to https
>>> transport to see how it works. Then, I noticed the same issue when logging
>>> into the mgt console as well. But it is fine since if a customer need to
>>> use https transport, then they need to have their own keystore.
>>>
>>> In summary, you will need to fix your jaggery apps. I don't see this as
>>> a problem for this release.
>>>
>>> Thanks,
>>> KasunG
>>>
>>>
 I think option 1 is the most feasible . WDYT?

 Thanks,
 Bhathiya

 On Fri, Jun 10, 2016 at 2:37 PM, Bhathiya Jayasekara  wrote:

> Hi Kalpa,
>
> Thanks. I'll try to fix that.
>
> Regards,
> Bhathiya
>
> On Fri, Jun 10, 2016 at 2:31 PM, Kalpa Welivitigoda 
> wrote:
>
>> Hi Bhathiya,
>>
>> We are using a newer version of httpclient orbit
>> (commons-httpclient-3.1.0.wso2v3.jar) in kernel 4.4.6 and it verify the
>> host name. You will be able to get it fixed from your test module.
>>
>> On Fri, Jun 10, 2016 at 1:02 PM, Bhathiya Jayasekara <
>> bhath...@wso2.com> wrote:
>>
>>> Hi Kalpa,
>>>
>>> I'm getting this error while running tests with new kernel. Any idea
>>> why?
>>>
>>> [2016-06-10 12:45:49,077]  INFO - HTTPSender Unable to sendViaPost
>>> to url[https://10.100.0.189:9943//services/AuthenticationAdmin]
>>> INFO
>>>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>> javax.net.ssl.SSLException: hostname in certificate didn't match:
>>> <10.100.0.189> != 
>>> INFO
>>>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] 
>>> -  at
>>> org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.verifyHostName(SSLProtocolSocketFactory.java:341)
>>> INFO
>>>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] 
>>> -  at
>>> org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.verifyHostName(SSLProtocolSocketFactory.java:277)
>>> INFO
>>>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] 
>>> -  at
>>> org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.verifyHostName(SSLProtocolSocketFactory.java:260)
>>> 

Re: [Dev] Remove the heading-label of collapsible Metadata menu specific UI features on Carbon Mgt Console

2016-06-13 Thread Samitha Chathuranga
Hi Denuwanthi,

This is the error log.

Cannot complete the install because one or more required items could not be
found.
 Software being installed: WSO2 Carbon - Governance Lifecycle Management
Feature 4.6.4.SNAPSHOT
(org.wso2.carbon.governance.lifecycle.management.feature.group
4.6.4.SNAPSHOT)
 Missing requirement: WSO2 Carbon - Governance Lifecycle Management UI
Feature 4.6.4.SNAPSHOT
(org.wso2.carbon.governance.lifecycle.management.ui.feature.group
4.6.4.SNAPSHOT) requires
'org.wso2.carbon.registry.extensions.ui.feature.group
[4.6.4.SNAPSHOT,4.7.0)' but it could not be found
 Cannot satisfy dependency:
  From: WSO2 Carbon - Governance Lifecycle Management Feature
4.6.4.SNAPSHOT
(org.wso2.carbon.governance.lifecycle.management.feature.group
4.6.4.SNAPSHOT)
  To: org.wso2.carbon.governance.lifecycle.management.ui.feature.group
[4.6.4.SNAPSHOT]
Application failed, log file location:
/home/samithac/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1465798066460.log
.

Anyway I am not sure that the solution for my task is removing
org.wso2.carbon.registry.extensions.ui.feature. Because it seems that other
features need it and so we cannot remove it.

Thanks.


On Mon, Jun 13, 2016 at 11:34 AM, Denuwanthi De Silva 
wrote:

> Hi Samitha,
>
> Can you mention the error log you get when the build fails (when removing
> org.wso2.carbon.registry.extensions.ui.feature)?
>
> Thanks
>
> On Mon, Jun 13, 2016 at 11:25 AM, Samitha Chathuranga 
> wrote:
>
>> Hi,
>>
>> I wanted to remove Main - > Metadata section on the mgt console (In WSO2
>> PC). So I removed,
>>
>> org.wso2.carbon.governance.metadata.ui.feature
>> ( by removing, org.wso2.carbon.governance.metadata.feature and adding 
>> org.wso2.carbon.governance.metadata.server.feature.)
>>
>> But this was half a success as it removed all the sub links / buttons under 
>> "Metadata" section, but the specific collapsible menu (only with the heading 
>> label) is still left. So I want to remove that empty collapsible Metadata
>> menu heading too. How to do that?
>>
>> P.S. I tried removing org.wso2.carbon.registry.extensions.ui.feature but 
>> then the build failed as another feature required that removed feature as a 
>> dependency.
>>
>> Thanks.
>>
>>
>>
>> --
>> Samitha Chathuranga
>> Software Engineer, WSO2 Inc.
>> lean.enterprise.middleware
>> Mobile: +94715123761
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Denuwanthi De Silva
> Software Engineer;
> WSO2 Inc.; http://wso2.com,
> Email: denuwan...@wso2.com
> Blog: https://denuwanthi.wordpress.com/
>



-- 
Samitha Chathuranga
Software Engineer, WSO2 Inc.
lean.enterprise.middleware
Mobile: +94715123761
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [SMS Transport] Problem with Exception Handling

2016-06-13 Thread Biruntha Gnaneswaran
Hi malaka,

I will do ...

Thankyou

Biruntha

Associate Software Engineer
WSO2
Email : birun...@wso2.com

On Mon, Jun 13, 2016 at 9:32 AM, Malaka Silva  wrote:

> Hi Biruntha,
>
> These are the exact fixes we need to improve with the connector. Otherwise
> no pointing implementing the same thing. We need to have a better version
> of existing transport with connector.
>
> Axis2 transport is something for you to get an idea. We need to have a
> better version for connector.
>
> With connector not an good idea to depend on axis2 modules, better to
> implement logic within the connector itself.
>
> On Sat, Jun 11, 2016 at 8:32 PM, Biruntha Gnaneswaran 
> wrote:
>
>> Hi Rajjaz,
>>
>> The above problem is not for the case “without specifying "system Id" or
>> "password" ".  This is for the " wrong "system Id" or "password" ".
>>
>> Thankyou
>>
>> Biruntha
>>
>> Associate Software Engineer
>> WSO2
>> Email : birun...@wso2.com
>>
>> On Sat, Jun 11, 2016 at 3:47 PM, Biruntha Gnaneswaran 
>> wrote:
>>
>>> Hi Rajjaz,
>>>
>>> Yes SMSMesage  throws AxisFault.
>>> I try without general exception. but i'm facing the same problem.
>>> because sentInfo() is different.
>>>
>>> for example i try this without specifying "system Id" or "password". so, 
>>> this
>>> was checked [getSystemId(),getPassword()] under sendSMS() method in
>>> SMPPImplManager class. So only i’m getting *"Unable to Connect "* error
>>> message in *log*.
>>>
>>> Thankyou
>>>
>>> Biruntha
>>>
>>> Associate Software Engineer
>>> WSO2
>>> Email : birun...@wso2.com
>>>
>>> On Sat, Jun 11, 2016 at 3:22 PM, Rajjaz Mohammed 
>>> wrote:
>>>
 Hi Biruntha,

 Why do you want to catch a general exception here?

 You can simply catch AxisFault since SMSMesage uses axis2 transport and
 throws AxisFault.

 try {
 smsMessage = new SMSMessage(SMPPConstants.SENDER, phoneNo, message, 
 SMSMessage.OUT_MESSAGE);
 manager.sentInfo(smsMessage);
 } catch (AxisFault axisFault) {
 handleException("Error while sending SMS: " + axisFault.getMessage(), 
 messageContext);
 }


 On Fri, Jun 10, 2016 at 4:04 PM, Biruntha Gnaneswaran <
 birun...@wso2.com> wrote:

> Hi Devs,
>
> I want to send SMS using axis2 SMS Transport [1] . I try with below
> code. It works fine in normal case. Here sentInfo() is used to send
> SMS. But if there is an exception in sentInfo() method, I couldn’t
> catch that exception from my code. Because sendSMS() method in
> SMPPImplManager class didn’t throw any exception.
>
> Is there any way to solve this problem?
>
> *try *{smsMessage = *new *SMSMessage(sender,phoneNo,message,*2*);
> manager.sentInfo(smsMessage);*log*.info(*"Successfully completed 
> sending SMS"*);} *catch *(Exception e){handleException(*"Error while 
> sending SMS: " *+ e.getMessage(), e, messageContext);}
>
> [1]
> https://github.com/wso2/wso2-axis2-transports/tree/master/modules/sms/src/main/java/org/apache/axis2/transport/sms
>
> Thankyou,
>
> Biruntha
>
> Associate Software Engineer
> WSO2
> Email : birun...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Thank you
 Best Regards

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

>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> 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
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
> https://store.wso2.com/store/
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fixing IDENTITY-4588 for 5.2

2016-06-13 Thread Pushpalanka Jayawardhana
Hi Samisa,

It was not prioritized, as the functionality is not broken and can still
proceed with the workaround of making identity provider name as same as iss
values of JWT. A proper fix would need few other changes to the design of
OAuth grant handlers as well, which was too tight to proceed with time
lines of 5.2.0 GA.

Thanks,
Pushpalanka

On Mon, Jun 13, 2016 at 11:15 AM, Samisa Abeysinghe  wrote:

> Why not?
>
> Thanks,
> Samisa...
>
>
> Samisa Abeysinghe
>
> Vice President Delivery
>
> WSO2 Inc.
> http://wso2.com
>
>
> On Mon, Jun 13, 2016 at 10:52 AM, Pushpalanka Jayawardhana  > wrote:
>
>> Hi Samisa,
>>
>> This was not prioritized to be included in 5.2.0 GA.
>>
>> Thanks,
>> Pushpalanka
>>
>> On Mon, Jun 13, 2016 at 10:37 AM, Samisa Abeysinghe 
>> wrote:
>>
>>> Hi All
>>>$subject
>>>
>>>Will this be available in 5.2 GA
>>>
>>> Thanks,
>>> Samisa...
>>>
>>>
>>> Samisa Abeysinghe
>>>
>>> Vice President Delivery
>>>
>>> WSO2 Inc.
>>> http://wso2.com
>>>
>>>
>>
>>
>> --
>> Pushpalanka.
>> --
>> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
>> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
>> Mobile: +94779716248
>> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
>> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>>
>>
>


-- 
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove the heading-label of collapsible Metadata menu specific UI features on Carbon Mgt Console

2016-06-13 Thread Denuwanthi De Silva
Hi Samitha,

Can you mention the error log you get when the build fails (when removing
org.wso2.carbon.registry.extensions.ui.feature)?

Thanks

On Mon, Jun 13, 2016 at 11:25 AM, Samitha Chathuranga 
wrote:

> Hi,
>
> I wanted to remove Main - > Metadata section on the mgt console (In WSO2
> PC). So I removed,
>
> org.wso2.carbon.governance.metadata.ui.feature
> ( by removing, org.wso2.carbon.governance.metadata.feature and adding 
> org.wso2.carbon.governance.metadata.server.feature.)
>
> But this was half a success as it removed all the sub links / buttons under 
> "Metadata" section, but the specific collapsible menu (only with the heading 
> label) is still left. So I want to remove that empty collapsible Metadata
> menu heading too. How to do that?
>
> P.S. I tried removing org.wso2.carbon.registry.extensions.ui.feature but then 
> the build failed as another feature required that removed feature as a 
> dependency.
>
> Thanks.
>
>
>
> --
> Samitha Chathuranga
> Software Engineer, WSO2 Inc.
> lean.enterprise.middleware
> Mobile: +94715123761
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Denuwanthi De Silva
Software Engineer;
WSO2 Inc.; http://wso2.com,
Email: denuwan...@wso2.com
Blog: https://denuwanthi.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev