Re: [Dev] Pass dynamic values to class mediator

2016-06-01 Thread Kathees Rajendram
Hi Godwin/Isuru,

This may not be a good approach. You can define a static property. In
static property you can dynamically assign dynamic properties and values as
key value pairs with the patterns (dynamicProperty1: value1,
dynamicProperty2: value2, etc.).

dynamicProperty1: value1, dynamicProperty2:
value2

In the class mediator, you can read the static property and you need to
write a login to get each values of the dynamic properties.
Thanks,
Kathees

On Thu, Jun 2, 2016 at 10:46 AM, Isuru Udana  wrote:

> Hi Rajjaz,
>
> Godwin is asking about class mediators not connectors.
>
>
>
> On Thu, Jun 2, 2016 at 10:38 AM, Rajjaz Mohammed  wrote:
>
>> Hi Godwin,
>> You can receive dynamic values in class level without set in the property
>> configuration.
>>
>> for example:
>> 
>> raj
>> > >com.sun.enterprise.naming.SerialInitContextFactory> raj.java.naming.factory.initial>
>> localhost> raj.org.omg.CORBA.ORBInitialHost>
>> 3700> raj.org.omg.CORBA.ORBInitialPort>
>> 
>>
>> these values are dynamic values so we can receive these values in code
>> level without set property[1].
>>
>> [1]
>> https://github.com/wso2-extensions/esb-connector-ejb2.0/blob/master/src/main/java/org/wso2/carbon/custom/connector/EJBUtil.java#L131
>>
>>
>>
>> On Thu, Jun 2, 2016 at 9:09 AM, Godwin Shrimal  wrote:
>>
>>> Hi Isuru,
>>>
>>> Thanks for quick response, I'll proceed with by setting property.
>>>
>>>
>>> Thanks
>>> Godwin
>>>
>>>
>>>
>>> On Wed, Jun 1, 2016 at 10:32 PM, Isuru Udana  wrote:
>>>
 Hi Godwin,

 It is not possible to pass dynamic values using the property
 configuration element. It only support static values.

 The only option is to set some property using the property mediator and
 within the class mediator code read that property using
 synCtx.getProperty('prop_name_here')

 Thanks.

 On Thu, Jun 2, 2016 at 8:54 AM, Godwin Shrimal  wrote:

> Hi All,
>
> How can we pass dynamic values to class mediator ?, if we try to do as
> below it give a error *A Class mediator property must specify name
> and value attributes, or a name and a child XML fragment*
>
> 
> 
> 
>
> How can we achieve this ?
>
> 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/

>>>
>>>
>>>
>>> --
>>> *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
>>>
>>>
>>
>>
>> --
>> 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
>> 
>>
>
>
>
> --
> *Isuru Udana*
> Technical Lead
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kathees
Software Engineer,
email: kath...@wso2.com
mobile: +94772596173
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shindig error on DS portal startup, due to connectivity errors to google

2016-06-01 Thread Fazlan Nazeem
Thanks Megala. Will upgrade

On Wed, Jun 1, 2016 at 6:57 PM, Megala Uthayakumar  wrote:

> Hi,
>
> We have done the carbon-dashboards 1.0.18 release with the fix for the
> remaining online feature.
>
> Thanks.
>
> On Mon, May 30, 2016 at 2:03 PM, Fazlan Nazeem  wrote:
>
>> Hi Megala,
>>
>> Please let us know once the new release is done. For now we will go with
>> 1.0.17.
>>
>> On Mon, May 30, 2016 at 1:52 PM, Ruwan Abeykoon  wrote:
>>
>>> Hi Megala, Sinthuja,
>>> Thank you for the fix.
>>> Yes, I am ok if things can be fixed in DS side.
>>>
>>> Have we checked any other JS which is loaded form external servers,
>>> which might cause similar issues in future? We need to fix them too if
>>> there are any.
>>>
>>> Cheers,
>>> Ruwan
>>>
>>>
>>> On Mon, May 30, 2016 at 1:21 PM, Sinthuja Ragendran 
>>> wrote:
>>>
 Hi Ruwan,

 As mentioned by megala folking shindig is not an option, it's simply
 calling for more trouble! Anyhow the fix done by megala fixes the issues in
 startup.

 Thanks,
 Sinthuja.

 On Mon, May 30, 2016 at 1:19 PM, Megala Uthayakumar 
 wrote:

> Hi All,
>
> Reason for error in new log[1] is that we did not remove the jquery
> feature which also requires the internet connection as we thought that
> feature is used by the shindig. But after a throughout testing we found
> that it can be removed. We have removed that feature in master branch
> now[2]. We can do a release for this.
>
> @Ruwan
> Why do we need to fork the shindig app? Since removing the feature
> from carbon-dashboard side is enough to avoid this error.
>
> [1] http://pastebin.com/raw/0EbCqN8v
> [2]
> https://github.com/wso2/carbon-dashboards/blob/e86f60e95b6206eb466bca5981799bb061098dd4/components/shindig-server/src/main/resources/features.txt
>
> On Mon, May 30, 2016 at 12:48 PM, Ruwan Abeykoon 
> wrote:
>
>> Hi All,
>> Can we fork the Shindig app and fix these issues in short term?
>>
>> It seems that shinding is not maintained any more[1]. So can we look
>> for an alternative since the Gadgets is going to be a central component 
>> in
>> our UIs within the platform?
>>
>> [1] https://shindig.apache.org/about_shindig_overview.html
>>
>> Cheers,
>> Ruwan
>>
>>
>>
>> On Mon, May 30, 2016 at 12:36 PM, Fazlan Nazeem 
>> wrote:
>>
>>> Hi,
>>>
>>> in APIM-analytics I have upgraded the carbon.dashboards.version and
>>> shindig.version to fix the issue. The git diff of the changes is 
>>> attached.
>>>
>>> log after the fix[1]
>>> log prior to the fix[2]
>>>
>>> log[1] was verified to be fine by Megala. Please let me know if
>>> there are any concerns.
>>>
>>> [1] http://pastebin.com/raw/0EbCqN8v
>>> [2] http://pastebin.com/raw/w8sGjpM0
>>>
>>> On Sat, May 28, 2016 at 8:43 PM, Fazlan Nazeem 
>>> wrote:
>>>
 Sure will check.

 On Sat, May 28, 2016 at 8:37 PM, Nirmal Fernando 
 wrote:

> Thanks Deep. @Fazlan please check.
>
> On Sat, May 28, 2016 at 1:22 AM, Deependra Ariyadewa <
> d...@wso2.com> wrote:
>
>> This issue also exists in the  WSO2 API Manager Analytics
>>  SNAPSHOT pack [1]
>>
>> [1] Build WSO2 API Manager Analytics - Distribution (May 27, 2016
>> 3:24:17 PM)
>>
>> On Fri, May 27, 2016 at 1:08 AM, Bhathiya Jayasekara <
>> bhath...@wso2.com> wrote:
>>
>>> Thanks.
>>>
>>> On Fri, May 27, 2016 at 10:37 AM, Megala Uthayakumar <
>>> meg...@wso2.com> wrote:
>>>
 We will do a release tonight.

 Thanks

 On Fri, May 27, 2016 at 10:33 AM, Bhathiya Jayasekara <
 bhath...@wso2.com> wrote:

> We still have carbon dashboard 1.0.15 in APIM. Will upgrade.
> When are you planning to release this?
>
> Thanks,
> Bhathiya
>
> On Fri, May 27, 2016 at 10:31 AM, Bhathiya Jayasekara <
> bhath...@wso2.com> wrote:
>
>> +Ruwan
>>
>> On Fri, May 27, 2016 at 10:20 AM, Megala Uthayakumar <
>> meg...@wso2.com> wrote:
>>
>>> Hi,
>>> This fix is available in carbon-dashboards 1.0.17-SNAPSHOT.
>>> Is APIM 2.0.0 SNAPSHOT uses the same version?
>>>
>>> Thanks.
>>>
>>> On Fri, May 27, 2016 at 10:02 AM, Deependra Ariyadewa <
>>> d...@wso2.com> wrote:
>>>
 This error still exists in the 

Re: [Dev] Pass dynamic values to class mediator

2016-06-01 Thread Isuru Udana
Hi Rajjaz,

Godwin is asking about class mediators not connectors.



On Thu, Jun 2, 2016 at 10:38 AM, Rajjaz Mohammed  wrote:

> Hi Godwin,
> You can receive dynamic values in class level without set in the property
> configuration.
>
> for example:
> 
> raj
>  >com.sun.enterprise.naming.SerialInitContextFactory raj.java.naming.factory.initial>
> localhost raj.org.omg.CORBA.ORBInitialHost>
> 3700 raj.org.omg.CORBA.ORBInitialPort>
> 
>
> these values are dynamic values so we can receive these values in code
> level without set property[1].
>
> [1]
> https://github.com/wso2-extensions/esb-connector-ejb2.0/blob/master/src/main/java/org/wso2/carbon/custom/connector/EJBUtil.java#L131
>
>
>
> On Thu, Jun 2, 2016 at 9:09 AM, Godwin Shrimal  wrote:
>
>> Hi Isuru,
>>
>> Thanks for quick response, I'll proceed with by setting property.
>>
>>
>> Thanks
>> Godwin
>>
>>
>>
>> On Wed, Jun 1, 2016 at 10:32 PM, Isuru Udana  wrote:
>>
>>> Hi Godwin,
>>>
>>> It is not possible to pass dynamic values using the property
>>> configuration element. It only support static values.
>>>
>>> The only option is to set some property using the property mediator and
>>> within the class mediator code read that property using
>>> synCtx.getProperty('prop_name_here')
>>>
>>> Thanks.
>>>
>>> On Thu, Jun 2, 2016 at 8:54 AM, Godwin Shrimal  wrote:
>>>
 Hi All,

 How can we pass dynamic values to class mediator ?, if we try to do as
 below it give a error *A Class mediator property must specify name and
 value attributes, or a name and a child XML fragment*

 
 
 

 How can we achieve this ?

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



-- 
*Isuru Udana*
Technical Lead
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC 16] Initial Project Progress

2016-06-01 Thread Imesh Gunaratne
On Thu, Jun 2, 2016 at 10:33 AM, Osura Rathnayake 
wrote:

> Hi mentors,
>
> When developing the membership scheme, from where can I get
> the HazelcastMembershipScheme interface? I Googled but couldn't find an
> appropriate jar file or anything. the one that netbeans suggests also
> cannot be downloaded.
>

https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/clustering/hazelcast/HazelcastMembershipScheme.java


​Will implement this for Carbon 4.4.x.

Thanks​


> Thanks,
>
> On Mon, May 30, 2016 at 1:49 AM, Osura Rathnayake 
> wrote:
>
>> Hi Isuru,
>>
>> Thank you
>> I have updated my Git repository with this sample code, please find it
>> here [1].
>>
>> [1] https://github.com/osuran/azure-membership-scheme
>>
>> Thanks
>>
>> On Sun, May 29, 2016 at 8:41 AM, Isuru Haththotuwa 
>> wrote:
>>
>>> Hi Osura,
>>>
>>> On Sun, May 29, 2016 at 12:32 AM, Osura Rathnayake 
>>> wrote:
>>>
 Hi Isuru,

 Please find the attached project zip. From line 108 to 148 I hard coded
 because I was getting errors with StringTokenizer and I didn't want to
 focus much on that.
 Okay I'm right on writing the actual membership scheme.

>>> Thanks. Will have a look.
>>>
>>> It would be better if you can commit this to a github repository. By
>>> doing that, your sample is available for anyone to use/refer. Make sure to
>>> remove any sensitive information (passwords, etc.) before doing so.
>>>

 thanks

 On Sat, May 28, 2016 at 10:19 PM, Isuru Haththotuwa 
 wrote:

> Hi Osura,
>
> These are great findings!
>
> Can you please share the sample code that you wrote?
>
> The next step would be to start writing the actual membership scheme.
> Please refer the Kubernetes Membership scheme as a reference.
>
>
> On Sat, May 28, 2016 at 9:06 PM, Osura Rathnayake 
> wrote:
>
>> Hi All,
>>
>>
>>
>> This is the summary of everything that I have done so far.
>>
>>
>>
>> Pre requisite: VMs which has WSO2 Application Server running should
>> have been added to a particular network security group (NSG). In my case
>> it’s ASNSG
>>
>>
>>
>> First the java app should be authenticated. Then it query for the
>> information on ASNSG. Response of that API call includes names of all the
>> network interfaces that are existed in ASNSG. Then each and every network
>> interface is queried using their names to get private IP addresses of 
>> each
>> of them. As the final outcome we get a list of IP addresses of VMs which
>> has WSO2 Application Server running.
>>
>>
>>
>> *Authentication*
>>
>> In order to work with Azure Resource Manager (ARM) REST API, first of
>> all our app has to be authenticated. ARM provides two methods for this
>> purpose,
>>
>>
>>
>> 1) Authenticate using service principal
>>
>> 2) Authenticate using organizational account.
>>
>>
>>
>> I have used the first method that is authenticating using a service
>> principal.  A Service Principal is an instance of an application that is
>> within your Active Directory that is allowed access to one or more
>> resources or an entire resource group. How to set up a service principal 
>> is
>> well described here [1]. Once you successfully set up a service 
>> principal,
>> you will have the following information in hand.
>>
>>
>>
>> 1)  Client ID
>>
>> 2)  Client secret
>>
>> 3)  Tenant ID
>>
>> Above parameters and Azure subscription ID are used in the java app
>> for authentication purpose. I have used Active Directory Authentication
>> Library (ADAL) [2] for authentication. Once the authentication is
>> successful, an authentication token will be issued and it will be used in
>> the rest of the program as to make calls to API.
>>
>>
>>
>> *Getting information on ASNSG*
>>
>> For this purpose, [3] API reference is used. As the response we get a
>> JSON string which includes names of NICs which are available in ASNSG.
>>
>>
>>
>> *Getting private IP address of each NIC*
>>
>> With the NIC names we received from previous API call, we can use
>> this [4] API reference to get the private IP address of each NIC. And 
>> then
>> with that information we can list out the IP addresses of all the VMs 
>> which
>> has WSO2 Application Server running.
>>
>>
>>
>> [1]
>> https://azure.microsoft.com/en-gb/documentation/articles/resource-group-create-service-principal-portal/
>>
>> [2] https://github.com/AzureAD/azure-activedirectory-library-for-java
>>
>> [3] 

Re: [Dev] Pass dynamic values to class mediator

2016-06-01 Thread Rajjaz Mohammed
Hi Godwin,
You can receive dynamic values in class level without set in the property
configuration.

for example:

raj
com.sun.enterprise.naming.SerialInitContextFactory
localhost
3700


these values are dynamic values so we can receive these values in code
level without set property[1].

[1]
https://github.com/wso2-extensions/esb-connector-ejb2.0/blob/master/src/main/java/org/wso2/carbon/custom/connector/EJBUtil.java#L131



On Thu, Jun 2, 2016 at 9:09 AM, Godwin Shrimal  wrote:

> Hi Isuru,
>
> Thanks for quick response, I'll proceed with by setting property.
>
>
> Thanks
> Godwin
>
>
>
> On Wed, Jun 1, 2016 at 10:32 PM, Isuru Udana  wrote:
>
>> Hi Godwin,
>>
>> It is not possible to pass dynamic values using the property
>> configuration element. It only support static values.
>>
>> The only option is to set some property using the property mediator and
>> within the class mediator code read that property using
>> synCtx.getProperty('prop_name_here')
>>
>> Thanks.
>>
>> On Thu, Jun 2, 2016 at 8:54 AM, Godwin Shrimal  wrote:
>>
>>> Hi All,
>>>
>>> How can we pass dynamic values to class mediator ?, if we try to do as
>>> below it give a error *A Class mediator property must specify name and
>>> value attributes, or a name and a child XML fragment*
>>>
>>> 
>>> 
>>> 
>>>
>>> How can we achieve this ?
>>>
>>> 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/
>>
>
>
>
> --
> *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
>
>


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


Re: [Dev] [GSOC 16] Initial Project Progress

2016-06-01 Thread Osura Rathnayake
Hi mentors,

When developing the membership scheme, from where can I get
the HazelcastMembershipScheme interface? I Googled but couldn't find an
appropriate jar file or anything. the one that netbeans suggests also
cannot be downloaded.

Thanks,

On Mon, May 30, 2016 at 1:49 AM, Osura Rathnayake 
wrote:

> Hi Isuru,
>
> Thank you
> I have updated my Git repository with this sample code, please find it
> here [1].
>
> [1] https://github.com/osuran/azure-membership-scheme
>
> Thanks
>
> On Sun, May 29, 2016 at 8:41 AM, Isuru Haththotuwa 
> wrote:
>
>> Hi Osura,
>>
>> On Sun, May 29, 2016 at 12:32 AM, Osura Rathnayake 
>> wrote:
>>
>>> Hi Isuru,
>>>
>>> Please find the attached project zip. From line 108 to 148 I hard coded
>>> because I was getting errors with StringTokenizer and I didn't want to
>>> focus much on that.
>>> Okay I'm right on writing the actual membership scheme.
>>>
>> Thanks. Will have a look.
>>
>> It would be better if you can commit this to a github repository. By
>> doing that, your sample is available for anyone to use/refer. Make sure to
>> remove any sensitive information (passwords, etc.) before doing so.
>>
>>>
>>> thanks
>>>
>>> On Sat, May 28, 2016 at 10:19 PM, Isuru Haththotuwa 
>>> wrote:
>>>
 Hi Osura,

 These are great findings!

 Can you please share the sample code that you wrote?

 The next step would be to start writing the actual membership scheme.
 Please refer the Kubernetes Membership scheme as a reference.


 On Sat, May 28, 2016 at 9:06 PM, Osura Rathnayake 
 wrote:

> Hi All,
>
>
>
> This is the summary of everything that I have done so far.
>
>
>
> Pre requisite: VMs which has WSO2 Application Server running should
> have been added to a particular network security group (NSG). In my case
> it’s ASNSG
>
>
>
> First the java app should be authenticated. Then it query for the
> information on ASNSG. Response of that API call includes names of all the
> network interfaces that are existed in ASNSG. Then each and every network
> interface is queried using their names to get private IP addresses of each
> of them. As the final outcome we get a list of IP addresses of VMs which
> has WSO2 Application Server running.
>
>
>
> *Authentication*
>
> In order to work with Azure Resource Manager (ARM) REST API, first of
> all our app has to be authenticated. ARM provides two methods for this
> purpose,
>
>
>
> 1) Authenticate using service principal
>
> 2) Authenticate using organizational account.
>
>
>
> I have used the first method that is authenticating using a service
> principal.  A Service Principal is an instance of an application that is
> within your Active Directory that is allowed access to one or more
> resources or an entire resource group. How to set up a service principal 
> is
> well described here [1]. Once you successfully set up a service principal,
> you will have the following information in hand.
>
>
>
> 1)  Client ID
>
> 2)  Client secret
>
> 3)  Tenant ID
>
> Above parameters and Azure subscription ID are used in the java app
> for authentication purpose. I have used Active Directory Authentication
> Library (ADAL) [2] for authentication. Once the authentication is
> successful, an authentication token will be issued and it will be used in
> the rest of the program as to make calls to API.
>
>
>
> *Getting information on ASNSG*
>
> For this purpose, [3] API reference is used. As the response we get a
> JSON string which includes names of NICs which are available in ASNSG.
>
>
>
> *Getting private IP address of each NIC*
>
> With the NIC names we received from previous API call, we can use this
> [4] API reference to get the private IP address of each NIC. And then with
> that information we can list out the IP addresses of all the VMs which has
> WSO2 Application Server running.
>
>
>
> [1]
> https://azure.microsoft.com/en-gb/documentation/articles/resource-group-create-service-principal-portal/
>
> [2] https://github.com/AzureAD/azure-activedirectory-library-for-java
>
> [3] https://msdn.microsoft.com/en-us/library/azure/mt163654.aspx
>
> [4] https://msdn.microsoft.com/en-us/library/azure/mt163611.aspx
>
>
>
> Thanks
>
>
>
> *From:* Imesh Gunaratne [mailto:im...@wso2.com]
> *Sent:* Saturday, May 28, 2016 8:53 AM
> *To:* Osura Rathnayake
> *Cc:* Isuru Haththotuwa; WSO2 Developers' List
> *Subject:* Re: [GSOC 16] Initial Project Progress
>
>
>
>
>
>
>
> On Sat, May 28, 2016 at 12:42 

Re: [Dev] Unexpected error occured when generating SAML2 bearer token using API manager- IS integrated setup.

2016-06-01 Thread Nuwan Dias
Ok thanks, if there is no API change we don't have to worry.

Thanks,
NuwanD.

On Thu, Jun 2, 2016 at 10:10 AM, Johann Nallathamby  wrote:

> Hi Nuwan,
>
> For SAML2 SSO this is how it has been all this time. Because we can't
> guarantee the issuer will be unique across tenants unlike the client id in
> oauth2, which is a UUID.
>
> In IS even for OAuth2 we were sending the tenantDomain to token endpoint
> for all the grant types. However later found that in APIM it has been
> working without sending it due to a different reason, and that is why we
> did a fix to make tenant domain optional to token endpoint.
>
> I don't think in SAML2 SSO we can change it that way.
>
> Johann.
>
> On Thu, Jun 2, 2016 at 9:40 AM, Nuwan Dias  wrote:
>
>> So for tenant users, the samlsso url has changed (requires tenantDomain
>> query param)? Does this mean that for tenant users who are migrating to the
>> new version, they have to change their Application's SSO handling code?
>>
>> Thanks,
>> NuwanD.
>>
>> On Thu, Jun 2, 2016 at 8:48 AM, Farasath Ahamed 
>> wrote:
>>
>>> Hi Chamara,
>>>
>>> Sorry, I missed out some details. I tested the SAML Bearer Grant with an
>>> Identity Server 5.3.0 M1 pack.  I had to change the samlsso URL to 
>>> *https://localhost:9443/samlsso?tenantDomain=wso2.com
>>>  *to log in as a
>>> user in the tenant domain in the travelocity App. Thereafter the SAML2
>>> Bearer grant was sent to https://localhost:9443/oauth2/token
>>>  endpoint without
>>> passing the tenantDomain as a query param in the URL.
>>>
>>> The fix [1] was done after Identity Server 5.2.0-beta so if we are
>>> testing with a 5.2.0-beta or earlier IS pack we would have to send in the
>>> tenantDomain as a query param (ie.
>>> https://localhost:9443/oauth2/token?tenantDomain=) to the
>>> token endpoint for SPs in a tenantDomain  as Pushpalanka has pointed out
>>> earlier .Otherwise, it will be taken as cabon.super.
>>>
>>>
>>> [1] https://wso2.org/jira/browse/IDENTITY-4531
>>>
>>>
>>> Thanks,
>>>
>>> Farasath Ahamed
>>> Software Engineer,
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>>
>>> Email: farasa...@wso2.com
>>> Mobile: +94777603866
>>> Blog: blog.farazath.com
>>> Twitter: @farazath619 
>>>
>>> On Thu, Jun 2, 2016 at 7:43 AM, Chamara Ariyarathne 
>>> wrote:
>>>
 Hi Farsath, Some unclear points.

 On Thu, Jun 2, 2016 at 2:47 AM, Farasath Ahamed 
 wrote:

> Hi,
>
> I tested the SAML2 bearer grant with travelocity app for a tenant user
> and I was able to get an access token with any issue.
>
 "with" or "without"?


> I had to change the samlsso URL to 
> *https://localhost:9443/samlsso?tenantDomain=wso2.com
>  *to get the
> sample working for a tenant user.
>
 So, is it still needed?


> However, I was able to generate the token without sending the
> tenantDomain as a query param.
>
 For which grant type? Are you still talking about the saml2-bearer
 grant type?

>
>
> Thanks,
> Farasath
>
>
> Farasath Ahamed
> Software Engineer,
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
> Email: farasa...@wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
>
> On Thu, Jun 2, 2016 at 2:22 AM, Farasath Ahamed 
> wrote:
>
>> Hi All,
>>
>> We have removed the requirement to send in the tenantDomain with the
>> token request as a query param in [1]. Instead of relying on the query
>> param we now retrieve the tenantDomain using the client_id sent in the
>> request. Therefore, this should work for all grant types. Anyways will
>> check once again with the SAML2 Bearer grant.
>>
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-4531
>>
>> Thanks.
>>
>> Farasath Ahamed
>> Software Engineer,
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>>
>> Email: farasa...@wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 
>>
>> On Thu, Jun 2, 2016 at 1:25 AM, Tania Mahanama 
>> wrote:
>>
>>>
>>>
>>> On Wed, Jun 1, 2016 at 9:56 PM, Sewmini Jayaweera 
>>> wrote:
>>>
 Hi Pushpalanka,

 Thank you for your prompt response.
 I could generate token successfully with the suggested endpoint.

 @Tania: Could you please update documentation [1] with this
 information? I have created 

[Dev] API-M Analytics 1.0.0-SNAPSHOT Nightly build - 01/06/2016

2016-06-01 Thread Nirmal Fernando
Hi All,

Please find the API-M Analytics 1.0.0-SNAPSHOT Nightly build pack here:

https://wso2.org/jenkins/job/analytics-apim/126/org.wso2.analytics.apim$wso2analytics-apim/artifact/org.wso2.analytics.apim/wso2analytics-apim/1.0.0-SNAPSHOT/wso2analytics-apim-1.0.0-SNAPSHOT.zip

-- 

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] Unexpected error occured when generating SAML2 bearer token using API manager- IS integrated setup.

2016-06-01 Thread Johann Nallathamby
Hi Nuwan,

For SAML2 SSO this is how it has been all this time. Because we can't
guarantee the issuer will be unique across tenants unlike the client id in
oauth2, which is a UUID.

In IS even for OAuth2 we were sending the tenantDomain to token endpoint
for all the grant types. However later found that in APIM it has been
working without sending it due to a different reason, and that is why we
did a fix to make tenant domain optional to token endpoint.

I don't think in SAML2 SSO we can change it that way.

Johann.

On Thu, Jun 2, 2016 at 9:40 AM, Nuwan Dias  wrote:

> So for tenant users, the samlsso url has changed (requires tenantDomain
> query param)? Does this mean that for tenant users who are migrating to the
> new version, they have to change their Application's SSO handling code?
>
> Thanks,
> NuwanD.
>
> On Thu, Jun 2, 2016 at 8:48 AM, Farasath Ahamed 
> wrote:
>
>> Hi Chamara,
>>
>> Sorry, I missed out some details. I tested the SAML Bearer Grant with an
>> Identity Server 5.3.0 M1 pack.  I had to change the samlsso URL to 
>> *https://localhost:9443/samlsso?tenantDomain=wso2.com
>>  *to log in as a
>> user in the tenant domain in the travelocity App. Thereafter the SAML2
>> Bearer grant was sent to https://localhost:9443/oauth2/token
>>  endpoint without
>> passing the tenantDomain as a query param in the URL.
>>
>> The fix [1] was done after Identity Server 5.2.0-beta so if we are
>> testing with a 5.2.0-beta or earlier IS pack we would have to send in the
>> tenantDomain as a query param (ie.
>> https://localhost:9443/oauth2/token?tenantDomain=) to the
>> token endpoint for SPs in a tenantDomain  as Pushpalanka has pointed out
>> earlier .Otherwise, it will be taken as cabon.super.
>>
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-4531
>>
>>
>> Thanks,
>>
>> Farasath Ahamed
>> Software Engineer,
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>>
>> Email: farasa...@wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 
>>
>> On Thu, Jun 2, 2016 at 7:43 AM, Chamara Ariyarathne 
>> wrote:
>>
>>> Hi Farsath, Some unclear points.
>>>
>>> On Thu, Jun 2, 2016 at 2:47 AM, Farasath Ahamed 
>>> wrote:
>>>
 Hi,

 I tested the SAML2 bearer grant with travelocity app for a tenant user
 and I was able to get an access token with any issue.

>>> "with" or "without"?
>>>
>>>
 I had to change the samlsso URL to 
 *https://localhost:9443/samlsso?tenantDomain=wso2.com
  *to get the
 sample working for a tenant user.

>>> So, is it still needed?
>>>
>>>
 However, I was able to generate the token without sending the
 tenantDomain as a query param.

>>> For which grant type? Are you still talking about the saml2-bearer grant
>>> type?
>>>


 Thanks,
 Farasath


 Farasath Ahamed
 Software Engineer,
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware


 Email: farasa...@wso2.com
 Mobile: +94777603866
 Blog: blog.farazath.com
 Twitter: @farazath619 

 On Thu, Jun 2, 2016 at 2:22 AM, Farasath Ahamed 
 wrote:

> Hi All,
>
> We have removed the requirement to send in the tenantDomain with the
> token request as a query param in [1]. Instead of relying on the query
> param we now retrieve the tenantDomain using the client_id sent in the
> request. Therefore, this should work for all grant types. Anyways will
> check once again with the SAML2 Bearer grant.
>
>
> [1] https://wso2.org/jira/browse/IDENTITY-4531
>
> Thanks.
>
> Farasath Ahamed
> Software Engineer,
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
> Email: farasa...@wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
>
> On Thu, Jun 2, 2016 at 1:25 AM, Tania Mahanama  wrote:
>
>>
>>
>> On Wed, Jun 1, 2016 at 9:56 PM, Sewmini Jayaweera 
>> wrote:
>>
>>> Hi Pushpalanka,
>>>
>>> Thank you for your prompt response.
>>> I could generate token successfully with the suggested endpoint.
>>>
>>> @Tania: Could you please update documentation [1] with this
>>> information? I have created documentation Jira [2].
>>>
>>
>> Noted.
>>
>>
>>>
>>> [1].
>>> https://docs.wso2.com/display/AM1100/Exchanging+SAML2+Bearer+Tokens+with+OAuth2+-+SAML+Extension+Grant+Type
>>> [2]. https://wso2.org/jira/browse/DOCUMENTATION-3414
>>>
>>> Regards,
>>> Sewmini.
>>>
>>> Sewmini 

Re: [Dev] Unexpected error occured when generating SAML2 bearer token using API manager- IS integrated setup.

2016-06-01 Thread Nuwan Dias
So for tenant users, the samlsso url has changed (requires tenantDomain
query param)? Does this mean that for tenant users who are migrating to the
new version, they have to change their Application's SSO handling code?

Thanks,
NuwanD.

On Thu, Jun 2, 2016 at 8:48 AM, Farasath Ahamed  wrote:

> Hi Chamara,
>
> Sorry, I missed out some details. I tested the SAML Bearer Grant with an
> Identity Server 5.3.0 M1 pack.  I had to change the samlsso URL to 
> *https://localhost:9443/samlsso?tenantDomain=wso2.com
>  *to log in as a
> user in the tenant domain in the travelocity App. Thereafter the SAML2
> Bearer grant was sent to https://localhost:9443/oauth2/token
>  endpoint without
> passing the tenantDomain as a query param in the URL.
>
> The fix [1] was done after Identity Server 5.2.0-beta so if we are testing
> with a 5.2.0-beta or earlier IS pack we would have to send in the
> tenantDomain as a query param (ie.
> https://localhost:9443/oauth2/token?tenantDomain=) to the
> token endpoint for SPs in a tenantDomain  as Pushpalanka has pointed out
> earlier .Otherwise, it will be taken as cabon.super.
>
>
> [1] https://wso2.org/jira/browse/IDENTITY-4531
>
>
> Thanks,
>
> Farasath Ahamed
> Software Engineer,
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
> Email: farasa...@wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
>
> On Thu, Jun 2, 2016 at 7:43 AM, Chamara Ariyarathne 
> wrote:
>
>> Hi Farsath, Some unclear points.
>>
>> On Thu, Jun 2, 2016 at 2:47 AM, Farasath Ahamed 
>> wrote:
>>
>>> Hi,
>>>
>>> I tested the SAML2 bearer grant with travelocity app for a tenant user
>>> and I was able to get an access token with any issue.
>>>
>> "with" or "without"?
>>
>>
>>> I had to change the samlsso URL to 
>>> *https://localhost:9443/samlsso?tenantDomain=wso2.com
>>>  *to get the
>>> sample working for a tenant user.
>>>
>> So, is it still needed?
>>
>>
>>> However, I was able to generate the token without sending the
>>> tenantDomain as a query param.
>>>
>> For which grant type? Are you still talking about the saml2-bearer grant
>> type?
>>
>>>
>>>
>>> Thanks,
>>> Farasath
>>>
>>>
>>> Farasath Ahamed
>>> Software Engineer,
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>>
>>> Email: farasa...@wso2.com
>>> Mobile: +94777603866
>>> Blog: blog.farazath.com
>>> Twitter: @farazath619 
>>>
>>> On Thu, Jun 2, 2016 at 2:22 AM, Farasath Ahamed 
>>> wrote:
>>>
 Hi All,

 We have removed the requirement to send in the tenantDomain with the
 token request as a query param in [1]. Instead of relying on the query
 param we now retrieve the tenantDomain using the client_id sent in the
 request. Therefore, this should work for all grant types. Anyways will
 check once again with the SAML2 Bearer grant.


 [1] https://wso2.org/jira/browse/IDENTITY-4531

 Thanks.

 Farasath Ahamed
 Software Engineer,
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware


 Email: farasa...@wso2.com
 Mobile: +94777603866
 Blog: blog.farazath.com
 Twitter: @farazath619 

 On Thu, Jun 2, 2016 at 1:25 AM, Tania Mahanama  wrote:

>
>
> On Wed, Jun 1, 2016 at 9:56 PM, Sewmini Jayaweera 
> wrote:
>
>> Hi Pushpalanka,
>>
>> Thank you for your prompt response.
>> I could generate token successfully with the suggested endpoint.
>>
>> @Tania: Could you please update documentation [1] with this
>> information? I have created documentation Jira [2].
>>
>
> Noted.
>
>
>>
>> [1].
>> https://docs.wso2.com/display/AM1100/Exchanging+SAML2+Bearer+Tokens+with+OAuth2+-+SAML+Extension+Grant+Type
>> [2]. https://wso2.org/jira/browse/DOCUMENTATION-3414
>>
>> Regards,
>> Sewmini.
>>
>> Sewmini Jayaweera
>> *Software Engineer - QA Team*
>> Mobile: +94 (0) 773 381 250
>> sewm...@wso2.com
>>
>> On Wed, Jun 1, 2016 at 8:42 PM, Pushpalanka Jayawardhana <
>> la...@wso2.com> wrote:
>>
>>> Hi Sewmini,
>>>
>>> Please try sending the tenantDomain as a query param in the cURL
>>> command's token endpoint as below.
>>>
>>> https://localhost:9443/oauth2/token?tenantDomain=
>>>
>>>
>>> Thanks,
>>>
>>> On Wed, Jun 1, 2016 at 8:15 PM, Sewmini Jayaweera 
>>> wrote:
>>>
 Adding dev@wso2.org

 Sewmini Jayaweera
 *Software Engineer - QA Team*
 Mobile: +94 (0) 773 381 250
 sewm...@wso2.com

 

Re: [Dev] Pass dynamic values to class mediator

2016-06-01 Thread Godwin Shrimal
Hi Isuru,

Thanks for quick response, I'll proceed with by setting property.


Thanks
Godwin



On Wed, Jun 1, 2016 at 10:32 PM, Isuru Udana  wrote:

> Hi Godwin,
>
> It is not possible to pass dynamic values using the property configuration
> element. It only support static values.
>
> The only option is to set some property using the property mediator and
> within the class mediator code read that property using
> synCtx.getProperty('prop_name_here')
>
> Thanks.
>
> On Thu, Jun 2, 2016 at 8:54 AM, Godwin Shrimal  wrote:
>
>> Hi All,
>>
>> How can we pass dynamic values to class mediator ?, if we try to do as
>> below it give a error *A Class mediator property must specify name and
>> value attributes, or a name and a child XML fragment*
>>
>> 
>> 
>> 
>>
>> How can we achieve this ?
>>
>> 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/
>



-- 
*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] Pass dynamic values to class mediator

2016-06-01 Thread Isuru Udana
Hi Godwin,

It is not possible to pass dynamic values using the property configuration
element. It only support static values.

The only option is to set some property using the property mediator and
within the class mediator code read that property using
synCtx.getProperty('prop_name_here')

Thanks.

On Thu, Jun 2, 2016 at 8:54 AM, Godwin Shrimal  wrote:

> Hi All,
>
> How can we pass dynamic values to class mediator ?, if we try to do as
> below it give a error *A Class mediator property must specify name and
> value attributes, or a name and a child XML fragment*
>
> 
> 
> 
>
> How can we achieve this ?
>
> 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/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Pass dynamic values to class mediator

2016-06-01 Thread Godwin Shrimal
Hi All,

How can we pass dynamic values to class mediator ?, if we try to do as
below it give a error *A Class mediator property must specify name and
value attributes, or a name and a child XML fragment*





How can we achieve this ?

Thanks
Godwin


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

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unexpected error occured when generating SAML2 bearer token using API manager- IS integrated setup.

2016-06-01 Thread Farasath Ahamed
Hi Chamara,

Sorry, I missed out some details. I tested the SAML Bearer Grant with an
Identity Server 5.3.0 M1 pack.  I had to change the samlsso URL to
*https://localhost:9443/samlsso?tenantDomain=wso2.com
 *to log in as a user
in the tenant domain in the travelocity App. Thereafter the SAML2 Bearer
grant was sent to https://localhost:9443/oauth2/token
 endpoint without
passing the tenantDomain as a query param in the URL.

The fix [1] was done after Identity Server 5.2.0-beta so if we are testing
with a 5.2.0-beta or earlier IS pack we would have to send in the
tenantDomain as a query param (ie.
https://localhost:9443/oauth2/token?tenantDomain=) to the
token endpoint for SPs in a tenantDomain  as Pushpalanka has pointed out
earlier .Otherwise, it will be taken as cabon.super.


[1] https://wso2.org/jira/browse/IDENTITY-4531


Thanks,

Farasath Ahamed
Software Engineer,
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware


Email: farasa...@wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 

On Thu, Jun 2, 2016 at 7:43 AM, Chamara Ariyarathne 
wrote:

> Hi Farsath, Some unclear points.
>
> On Thu, Jun 2, 2016 at 2:47 AM, Farasath Ahamed 
> wrote:
>
>> Hi,
>>
>> I tested the SAML2 bearer grant with travelocity app for a tenant user
>> and I was able to get an access token with any issue.
>>
> "with" or "without"?
>
>
>> I had to change the samlsso URL to 
>> *https://localhost:9443/samlsso?tenantDomain=wso2.com
>>  *to get the
>> sample working for a tenant user.
>>
> So, is it still needed?
>
>
>> However, I was able to generate the token without sending the
>> tenantDomain as a query param.
>>
> For which grant type? Are you still talking about the saml2-bearer grant
> type?
>
>>
>>
>> Thanks,
>> Farasath
>>
>>
>> Farasath Ahamed
>> Software Engineer,
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>>
>> Email: farasa...@wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 
>>
>> On Thu, Jun 2, 2016 at 2:22 AM, Farasath Ahamed 
>> wrote:
>>
>>> Hi All,
>>>
>>> We have removed the requirement to send in the tenantDomain with the
>>> token request as a query param in [1]. Instead of relying on the query
>>> param we now retrieve the tenantDomain using the client_id sent in the
>>> request. Therefore, this should work for all grant types. Anyways will
>>> check once again with the SAML2 Bearer grant.
>>>
>>>
>>> [1] https://wso2.org/jira/browse/IDENTITY-4531
>>>
>>> Thanks.
>>>
>>> Farasath Ahamed
>>> Software Engineer,
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>>
>>> Email: farasa...@wso2.com
>>> Mobile: +94777603866
>>> Blog: blog.farazath.com
>>> Twitter: @farazath619 
>>>
>>> On Thu, Jun 2, 2016 at 1:25 AM, Tania Mahanama  wrote:
>>>


 On Wed, Jun 1, 2016 at 9:56 PM, Sewmini Jayaweera 
 wrote:

> Hi Pushpalanka,
>
> Thank you for your prompt response.
> I could generate token successfully with the suggested endpoint.
>
> @Tania: Could you please update documentation [1] with this
> information? I have created documentation Jira [2].
>

 Noted.


>
> [1].
> https://docs.wso2.com/display/AM1100/Exchanging+SAML2+Bearer+Tokens+with+OAuth2+-+SAML+Extension+Grant+Type
> [2]. https://wso2.org/jira/browse/DOCUMENTATION-3414
>
> Regards,
> Sewmini.
>
> Sewmini Jayaweera
> *Software Engineer - QA Team*
> Mobile: +94 (0) 773 381 250
> sewm...@wso2.com
>
> On Wed, Jun 1, 2016 at 8:42 PM, Pushpalanka Jayawardhana <
> la...@wso2.com> wrote:
>
>> Hi Sewmini,
>>
>> Please try sending the tenantDomain as a query param in the cURL
>> command's token endpoint as below.
>>
>> https://localhost:9443/oauth2/token?tenantDomain=
>>
>>
>> Thanks,
>>
>> On Wed, Jun 1, 2016 at 8:15 PM, Sewmini Jayaweera 
>> wrote:
>>
>>> Adding dev@wso2.org
>>>
>>> Sewmini Jayaweera
>>> *Software Engineer - QA Team*
>>> Mobile: +94 (0) 773 381 250
>>> sewm...@wso2.com
>>>
>>> On Wed, Jun 1, 2016 at 8:13 PM, Sewmini Jayaweera 
>>> wrote:
>>>
 Hi APIM / IS teams,

 I am testing 'Exchanging SAML2 Bearer Tokens with OAuth2' (SAML
 Extension Grant Type) scenario for tenant user. I followed API manager
 documentation available [1] and scenario worked fine for the super 
 tenant.
 When I try the tenant scenario I noticed when service provider and IDP
 created in IS tenant domain token 

Re: [Dev] [GSoC 2016]Proposal 03: [ML]Visual(Deep) Neural Network Builder -Project Progress

2016-06-01 Thread Upul Bandara
Yes at the moment this looks OK.

Please put some effort to create a basic version of the NN builder and
let's have a quick demo.

Let me know if you have further questions or clarifications.

Thanks,
Upul

On Wed, Jun 1, 2016 at 11:29 PM, Lakini Senanayaka <
lakinisenanayak...@gmail.com> wrote:

> Hi,
>
> Thank you very much Upul. I will submit a demo soon.
>
> I have drawn a sketch of NN builder front end[1]. Basically it will be
> like this UI[2].(The content will be changed.)
>
> [1]Sketch of NN Builder
> 
> [2]https://www.draw.io/  
>
> In [1],under "layers" users can select the type of the layer-Input,Hidden
> or Output layer.
> Under "node" and "Connectors"-users can drag and drop nodes and connectors
> to the working area and they can build their NN as they wish.
>
> In the right hand side,there is a setting area.From that user can set
> Optimization algorithms,iterations,learning rates,seed etc. of the neural
> network.
>
> Could you please give me comments and your thoughts regrading this?
>
> Thank you.
>
>
>
> On Wed, Jun 1, 2016 at 2:19 PM, Upul Bandara  wrote:
>
>> Hi,
>>
>> Good progress.
>>
>> The key parts of the project are designing the front-end of NN builder,
>> communicating between the front-end and the Deeplearning4J back-end.
>> So at this stage of the project, it is better to put your effort on above
>> the components. Later, we can integrate what you have built with WSO2
>> Machine Learning server.
>>
>> Once you have completed a basic NN builder (ability to build a simple
>> feedforward  is enough) we would like to have a quick demo.
>>
>> Let me know if you have further questions or clarifications.
>>
>> Thanks,
>> Upul
>>
>> On Wed, Jun 1, 2016 at 10:42 AM, Lakini Senanayaka <
>> lakinisenanayak...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I'm sorry for the late response.Thank you very much for the last email.I
>>> have gone through JQueryUI and I have implemented some samples using
>>> JQueryUI.I have gone through the  WSO2 machine learner and I have
>>> identified the place to insert this jaggery page(replace the
>>> hyper-parameter page in the ML UI).
>>> Currently I'm designing the sketch of the Deep Neural Network
>>> Builder-the front end.
>>> I'll send my sketch before tonight.Based on your comments I can start
>>> implementations.
>>>
>>> Thank you.
>>>
>>>
>>> On Wed, Jun 1, 2016 at 9:29 AM, Supun Sethunga  wrote:
>>>
 Hi Lakini,

 Any update on the progress?

 Regards,
 Supun

 On Fri, May 27, 2016 at 5:34 PM, Supun Sethunga 
 wrote:

> Hi Lakini,
>
> Sorry for the delayed response. As the first part of the project, you
> can start the work on the UI/drag and drop feature, as the core of your
> project is based around that. Therefore, shall we try to get a basic
> version of drag and drop UI, by the mid-term evaluation? (No need to
> connect the UI with the dl4j, for the first phase)  So this would be
> include:
>
>- A link/re-direct to go to Visual builder, upon selecting the
>Neural Netowrks (as the algorithm)
>- The drawing/dropping area and a panel to pick the objects to be
>dragged (objects as in, nodes, layers, links, etc)
>
> This drag and drop page should replace the hyper-parameter page in the
> ML UI. More precisely, In the Machine Learner wizard, when a user picks 
> the
> algorithm name as Neural Network, and proceed, this drag and drop page
> should be prompted instead of the hyper-parameters page. You can create 
> the
> overall page as a jaggery page (.jag). It would be easier for you to get a
> copy of an existing page, and modifying the content. That will preserve 
> the
> existing styles, session handling etc.
>
> Please feel free to raise any question you come across during
> implementing.
>
> Regards,
> Supun
>
> On Tue, May 24, 2016 at 8:09 PM, Lakini Senanayaka <
> lakinisenanayak...@gmail.com> wrote:
>
>> Hi,
>>
>> Thank you very much for the suggestions.I will be using JQueryUI.
>>
>> As my coding period started yesterday according to the GSoC Schedule
>>  I would like to know the workload that should be completed
>> before the midterm evaluation. Please advise me accordingly.
>>
>> Thank you.
>>
>>
>> On Tue, May 24, 2016 at 10:34 AM, Supun Sethunga 
>> wrote:
>>
>>> Hi Lakini,
>>>
>>> Yes you can use any of them, with open source licence. But I would
>>> prefer JQueryUI, as its a well known library, and is already been used 
>>> by
>>> some of the wso2 products.
>>>
>>> Regards,
>>> Supun
>>>
>>> On Tue, May 24, 2016 at 9:29 AM, Lakini Senanayaka <
>>> 

Re: [Dev] Puppet modules are not compatible with puppet 4

2016-06-01 Thread Imesh Gunaratne
On Thu, Jun 2, 2016 at 12:49 AM, Manuranga Perera  wrote:

> Yes it is coming when running with Vagrent, but I don't think this is
> vagrant only issue. When I try to run puppet agent apply after SSHing in I
> still get the same error. May be I can manually run by giving differing
> command line args. But for now I will downgrade to puppet 3.
>

​Yes that's better. Please create a JIRA/Github Issue with the details.

​Thanks​


> On Fri, May 27, 2016 at 12:15 AM, Imesh Gunaratne  wrote:
>
>>
>>
>> On Thu, May 26, 2016 at 9:39 PM, Manuranga Perera  wrote:
>>
>>> We are using non-environment puppet mode this is not compatible with
>>> puppet 4 [1]
>>>
>>> If manifests_path and manifest_file are specified without environments,
 the old non-environment mode will be used (which will fail on Puppet 4+).
 [2]
>>>
>>>
>>> Are we planing to update to be compatible with puppet 4?
>>>
>>
>> As I see this is not a compatibility issue in Puppet modules, rather this
>> is about the Vagrant Puppet plugin which is used for testing Puppet
>> modules. We may need to test this and update the Vagrant script in the next
>> release.
>>
>> Did you see any issues in Puppet modules related to Puppet 4?
>>
>> Thanks
>>
>>>
>>> [1] https://github.com/mitchellh/vagrant/issues/5615
>>> [2] https://www.vagrantup.com/docs/provisioning/puppet_apply.html
>>> --
>>> With regards,
>>> *Manu*ranga Perera.
>>>
>>> phone : 071 7 70 20 50
>>> mail : m...@wso2.com
>>>
>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.io TW: @imesh
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unexpected error occured when generating SAML2 bearer token using API manager- IS integrated setup.

2016-06-01 Thread Chamara Ariyarathne
Hi Farsath, Some unclear points.

On Thu, Jun 2, 2016 at 2:47 AM, Farasath Ahamed  wrote:

> Hi,
>
> I tested the SAML2 bearer grant with travelocity app for a tenant user and
> I was able to get an access token with any issue.
>
"with" or "without"?


> I had to change the samlsso URL to 
> *https://localhost:9443/samlsso?tenantDomain=wso2.com
>  *to get the sample
> working for a tenant user.
>
So, is it still needed?


> However, I was able to generate the token without sending the tenantDomain
> as a query param.
>
For which grant type? Are you still talking about the saml2-bearer grant
type?

>
>
> Thanks,
> Farasath
>
>
> Farasath Ahamed
> Software Engineer,
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
> Email: farasa...@wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
>
> On Thu, Jun 2, 2016 at 2:22 AM, Farasath Ahamed 
> wrote:
>
>> Hi All,
>>
>> We have removed the requirement to send in the tenantDomain with the
>> token request as a query param in [1]. Instead of relying on the query
>> param we now retrieve the tenantDomain using the client_id sent in the
>> request. Therefore, this should work for all grant types. Anyways will
>> check once again with the SAML2 Bearer grant.
>>
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-4531
>>
>> Thanks.
>>
>> Farasath Ahamed
>> Software Engineer,
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>>
>> Email: farasa...@wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 
>>
>> On Thu, Jun 2, 2016 at 1:25 AM, Tania Mahanama  wrote:
>>
>>>
>>>
>>> On Wed, Jun 1, 2016 at 9:56 PM, Sewmini Jayaweera 
>>> wrote:
>>>
 Hi Pushpalanka,

 Thank you for your prompt response.
 I could generate token successfully with the suggested endpoint.

 @Tania: Could you please update documentation [1] with this
 information? I have created documentation Jira [2].

>>>
>>> Noted.
>>>
>>>

 [1].
 https://docs.wso2.com/display/AM1100/Exchanging+SAML2+Bearer+Tokens+with+OAuth2+-+SAML+Extension+Grant+Type
 [2]. https://wso2.org/jira/browse/DOCUMENTATION-3414

 Regards,
 Sewmini.

 Sewmini Jayaweera
 *Software Engineer - QA Team*
 Mobile: +94 (0) 773 381 250
 sewm...@wso2.com

 On Wed, Jun 1, 2016 at 8:42 PM, Pushpalanka Jayawardhana <
 la...@wso2.com> wrote:

> Hi Sewmini,
>
> Please try sending the tenantDomain as a query param in the cURL
> command's token endpoint as below.
>
> https://localhost:9443/oauth2/token?tenantDomain=
>
>
> Thanks,
>
> On Wed, Jun 1, 2016 at 8:15 PM, Sewmini Jayaweera 
> wrote:
>
>> Adding dev@wso2.org
>>
>> Sewmini Jayaweera
>> *Software Engineer - QA Team*
>> Mobile: +94 (0) 773 381 250
>> sewm...@wso2.com
>>
>> On Wed, Jun 1, 2016 at 8:13 PM, Sewmini Jayaweera 
>> wrote:
>>
>>> Hi APIM / IS teams,
>>>
>>> I am testing 'Exchanging SAML2 Bearer Tokens with OAuth2' (SAML
>>> Extension Grant Type) scenario for tenant user. I followed API manager
>>> documentation available [1] and scenario worked fine for the super 
>>> tenant.
>>> When I try the tenant scenario I noticed when service provider and IDP
>>> created in IS tenant domain token generation fails. Reason is that even
>>> though SP is in the tenant domain system expects IDP in carbon.super
>>> tenant.
>>>
>>> Are there any specific configurations which should be done, in order
>>> to get the tenant scenario working ?
>>>
>>> I have also reported a Jira [2] on this explaining full scenario.
>>>
>>> [2]. https://wso2.org/jira/browse/APIMANAGER-4929
>>> [1].
>>> https://docs.wso2.com/display/AM1100/Exchanging+SAML2+Bearer+Tokens+with+OAuth2+-+SAML+Extension+Grant+Type
>>>
>>> Kind Regards,
>>> Sewmini.
>>>
>>> Sewmini Jayaweera
>>> *Software Engineer - QA Team*
>>> Mobile: +94 (0) 773 381 250
>>> sewm...@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
>
>

>>>
>>>
>>> --
>>> Tania Mahanama
>>> Senior Technical Writer
>>>
>>> Contact:
>>> Mob: +94 077 5129270
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "WSO2 Documentation Group" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to 

Re: [Dev] Issues in loading shared dashboard with registry cache enabled

2016-06-01 Thread Chandana Napagoda
Hi Sinthuja,

>From the registry point of view, we are not replicating one tenant's
resources into another tenant's registry. I would like to know how you guys
set one resource visible to other tenants?

Regards,
Chandana
On Jun 1, 2016 11:47 PM, "Sinthuja Ragendran"  wrote:

> Hi,
>
> I did some further testing, and it looks like we are replicating the super
> tenant cache entries to tenant cache, when the tenant is loading at the
> first time. Because if I first create the dashboard (a registry resource)
> in super tenant and configured it to be shared by all nodes, and secondly
> if I create the tenant and try to login, then I can see my shared
> dashboards. But if I create the tenant first and secondly I configure the
> share option in the dashboard, then I'm not seeing the dashboard. Therefore
> I believe that there is simply a cache replication issue.
>
> Can we get a fix for this issue?
>
> Thanks,
> Sinthuja.
>
> On Wed, Jun 1, 2016 at 10:51 PM, Megala Uthayakumar 
> wrote:
>
>> Hi,
>>
>> We are using super-tenant registry to load the dashboards in other
>> tenants. We are using following code.
>>
>> superTenantRegistry = new carbon.registry.Registry(server, {
>> system: true,
>> tenantId: carbon.server.superTenant.tenantId
>> });
>>
>> Thanks.
>>
>> Regards,
>>
>> Megala
>>
>>
>> On Wed, Jun 1, 2016 at 10:47 PM, Chandana Napagoda 
>> wrote:
>>
>>> Hi,
>>>
>>> How are you sharing the asset between all the tenants? Is it a public
>>> visible asset?
>>>
>>> Regards,
>>> Chandana
>>> On Jun 1, 2016 10:08 PM, "Megala Uthayakumar"  wrote:
>>>
 Hi All,

 We are developing a shared dashboard feature for Dashboard Server. This
 feature allows the dashboard created from super-tenant to be shared among
 all the tenants. We have observed following behavior when developing this
 feature.

 When we create a shareable dashboard in super-tenant mode and if we
 immediately login to portal as a different tenant-user. Shared database is
 not visible in the tenant mode. We were able to see the shared dashboard in
 other tenants after we restart the server.

 However after we disable registry caching, we were able to see the
 shared dashboard in tenant mode immediately after login without requiring
 to restart the server. Is it possible to get the same type of behavior
 without disabling registry cache?

 Thanks

 Regards,
 Megala
 --
 Megala Uthayakumar

 Software Engineer
 Mobile : 0779967122

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


>>
>>
>> --
>> Megala Uthayakumar
>>
>> Software Engineer
>> Mobile : 0779967122
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Sinthuja Rajendran*
> Associate Technical Lead
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unexpected error occured when generating SAML2 bearer token using API manager- IS integrated setup.

2016-06-01 Thread Farasath Ahamed
Hi,

I tested the SAML2 bearer grant with travelocity app for a tenant user and
I was able to get an access token with any issue. I had to change the
samlsso URL to *https://localhost:9443/samlsso?tenantDomain=wso2.com
 *to get the sample
working for a tenant user. However, I was able to generate the token
without sending the tenantDomain as a query param.


Thanks,
Farasath


Farasath Ahamed
Software Engineer,
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware


Email: farasa...@wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 

On Thu, Jun 2, 2016 at 2:22 AM, Farasath Ahamed  wrote:

> Hi All,
>
> We have removed the requirement to send in the tenantDomain with the token
> request as a query param in [1]. Instead of relying on the query param we
> now retrieve the tenantDomain using the client_id sent in the request.
> Therefore, this should work for all grant types. Anyways will check once
> again with the SAML2 Bearer grant.
>
>
> [1] https://wso2.org/jira/browse/IDENTITY-4531
>
> Thanks.
>
> Farasath Ahamed
> Software Engineer,
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
> Email: farasa...@wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
>
> On Thu, Jun 2, 2016 at 1:25 AM, Tania Mahanama  wrote:
>
>>
>>
>> On Wed, Jun 1, 2016 at 9:56 PM, Sewmini Jayaweera 
>> wrote:
>>
>>> Hi Pushpalanka,
>>>
>>> Thank you for your prompt response.
>>> I could generate token successfully with the suggested endpoint.
>>>
>>> @Tania: Could you please update documentation [1] with this information?
>>> I have created documentation Jira [2].
>>>
>>
>> Noted.
>>
>>
>>>
>>> [1].
>>> https://docs.wso2.com/display/AM1100/Exchanging+SAML2+Bearer+Tokens+with+OAuth2+-+SAML+Extension+Grant+Type
>>> [2]. https://wso2.org/jira/browse/DOCUMENTATION-3414
>>>
>>> Regards,
>>> Sewmini.
>>>
>>> Sewmini Jayaweera
>>> *Software Engineer - QA Team*
>>> Mobile: +94 (0) 773 381 250
>>> sewm...@wso2.com
>>>
>>> On Wed, Jun 1, 2016 at 8:42 PM, Pushpalanka Jayawardhana >> > wrote:
>>>
 Hi Sewmini,

 Please try sending the tenantDomain as a query param in the cURL
 command's token endpoint as below.

 https://localhost:9443/oauth2/token?tenantDomain=


 Thanks,

 On Wed, Jun 1, 2016 at 8:15 PM, Sewmini Jayaweera 
 wrote:

> Adding dev@wso2.org
>
> Sewmini Jayaweera
> *Software Engineer - QA Team*
> Mobile: +94 (0) 773 381 250
> sewm...@wso2.com
>
> On Wed, Jun 1, 2016 at 8:13 PM, Sewmini Jayaweera 
> wrote:
>
>> Hi APIM / IS teams,
>>
>> I am testing 'Exchanging SAML2 Bearer Tokens with OAuth2' (SAML
>> Extension Grant Type) scenario for tenant user. I followed API manager
>> documentation available [1] and scenario worked fine for the super 
>> tenant.
>> When I try the tenant scenario I noticed when service provider and IDP
>> created in IS tenant domain token generation fails. Reason is that even
>> though SP is in the tenant domain system expects IDP in carbon.super
>> tenant.
>>
>> Are there any specific configurations which should be done, in order
>> to get the tenant scenario working ?
>>
>> I have also reported a Jira [2] on this explaining full scenario.
>>
>> [2]. https://wso2.org/jira/browse/APIMANAGER-4929
>> [1].
>> https://docs.wso2.com/display/AM1100/Exchanging+SAML2+Bearer+Tokens+with+OAuth2+-+SAML+Extension+Grant+Type
>>
>> Kind Regards,
>> Sewmini.
>>
>> Sewmini Jayaweera
>> *Software Engineer - QA Team*
>> Mobile: +94 (0) 773 381 250
>> sewm...@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


>>>
>>
>>
>> --
>> Tania Mahanama
>> Senior Technical Writer
>>
>> Contact:
>> Mob: +94 077 5129270
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "WSO2 Documentation Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to documentation+unsubscr...@wso2.com.
>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jaguery app Deployment

2016-06-01 Thread Manuranga Perera
1) Did you upload to an existing same version of EMM product? Uploading the
EMM app to some other WSO2 product will not work.
2) Go to repository\deployment\server\jaggeryapps and verify the app is
successfully copied


-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Puppet modules are not compatible with puppet 4

2016-06-01 Thread Manuranga Perera
Yes it is coming when running with Vagrent, but I don't think this is
vagrant only issue. When I try to run puppet agent apply after SSHing in I
still get the same error. May be I can manually run by giving differing
command line args. But for now I will downgrade to puppet 3.

On Fri, May 27, 2016 at 12:15 AM, Imesh Gunaratne  wrote:

>
>
> On Thu, May 26, 2016 at 9:39 PM, Manuranga Perera  wrote:
>
>> We are using non-environment puppet mode this is not compatible with
>> puppet 4 [1]
>>
>> If manifests_path and manifest_file are specified without environments,
>>> the old non-environment mode will be used (which will fail on Puppet 4+).
>>> [2]
>>
>>
>> Are we planing to update to be compatible with puppet 4?
>>
>
> As I see this is not a compatibility issue in Puppet modules, rather this
> is about the Vagrant Puppet plugin which is used for testing Puppet
> modules. We may need to test this and update the Vagrant script in the next
> release.
>
> Did you see any issues in Puppet modules related to Puppet 4?
>
> Thanks
>
>>
>> [1] https://github.com/mitchellh/vagrant/issues/5615
>> [2] https://www.vagrantup.com/docs/provisioning/puppet_apply.html
>> --
>> With regards,
>> *Manu*ranga Perera.
>>
>> phone : 071 7 70 20 50
>> mail : m...@wso2.com
>>
>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.io TW: @imesh
> Lean . Enterprise . Middleware
>
>


-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] APIM 2.0.0-SNAPSHOT Nightly build - 01/06/2016

2016-06-01 Thread Bhathiya Jayasekara
Hi all,

Please find APIM 2.0.0 SNAPSHOT nightly build here[1].

[1]
https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/wso2am-2.0.0-SNAPSHOT-01-06-2016.zip

Thanks,


-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Jaguery app Deployment

2016-06-01 Thread First NameTangwe Caleb
Good day.
I succeded in getting wso2 emm running for me from source, step 2 would be 
modifications, I see a new javascript framework was adopted in it jagueryjs,  I 
did some modifications to modules\apps\jaggery\emm\src\emm 
, zipped the folder, and uploaded on Carbon but couldn't get to navigate to it 
on my browser. I reloaded the app, restarted it but still nothing. changed to 
https nothing likewise http with thier relative ports
Pls I need your help. ___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [BPS] Getting a list of user roles

2016-06-01 Thread Manuranga Perera
What are the ways to get a list of user roles in BPS to display in UI. What
I can think of are :
1. Use the user mgt web service
2. Use embedded LDAP. Do we ship embedded LDAP (like in IS) with BPS ?

Is there a better way? eg: a REST API ?

-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issues in loading shared dashboard with registry cache enabled

2016-06-01 Thread Sinthuja Ragendran
Hi,

I did some further testing, and it looks like we are replicating the super
tenant cache entries to tenant cache, when the tenant is loading at the
first time. Because if I first create the dashboard (a registry resource)
in super tenant and configured it to be shared by all nodes, and secondly
if I create the tenant and try to login, then I can see my shared
dashboards. But if I create the tenant first and secondly I configure the
share option in the dashboard, then I'm not seeing the dashboard. Therefore
I believe that there is simply a cache replication issue.

Can we get a fix for this issue?

Thanks,
Sinthuja.

On Wed, Jun 1, 2016 at 10:51 PM, Megala Uthayakumar  wrote:

> Hi,
>
> We are using super-tenant registry to load the dashboards in other
> tenants. We are using following code.
>
> superTenantRegistry = new carbon.registry.Registry(server, {
> system: true,
> tenantId: carbon.server.superTenant.tenantId
> });
>
> Thanks.
>
> Regards,
>
> Megala
>
>
> On Wed, Jun 1, 2016 at 10:47 PM, Chandana Napagoda 
> wrote:
>
>> Hi,
>>
>> How are you sharing the asset between all the tenants? Is it a public
>> visible asset?
>>
>> Regards,
>> Chandana
>> On Jun 1, 2016 10:08 PM, "Megala Uthayakumar"  wrote:
>>
>>> Hi All,
>>>
>>> We are developing a shared dashboard feature for Dashboard Server. This
>>> feature allows the dashboard created from super-tenant to be shared among
>>> all the tenants. We have observed following behavior when developing this
>>> feature.
>>>
>>> When we create a shareable dashboard in super-tenant mode and if we
>>> immediately login to portal as a different tenant-user. Shared database is
>>> not visible in the tenant mode. We were able to see the shared dashboard in
>>> other tenants after we restart the server.
>>>
>>> However after we disable registry caching, we were able to see the
>>> shared dashboard in tenant mode immediately after login without requiring
>>> to restart the server. Is it possible to get the same type of behavior
>>> without disabling registry cache?
>>>
>>> Thanks
>>>
>>> Regards,
>>> Megala
>>> --
>>> Megala Uthayakumar
>>>
>>> Software Engineer
>>> Mobile : 0779967122
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>
>
> --
> Megala Uthayakumar
>
> Software Engineer
> Mobile : 0779967122
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sinthuja Rajendran*
Associate Technical Lead
WSO2, Inc.:http://wso2.com

Blog: http://sinthu-rajan.blogspot.com/
Mobile: +94774273955
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC 2016]Proposal 03: [ML]Visual(Deep) Neural Network Builder -Project Progress

2016-06-01 Thread Lakini Senanayaka
Hi,

Thank you very much Upul. I will submit a demo soon.

I have drawn a sketch of NN builder front end[1]. Basically it will be like
this UI[2].(The content will be changed.)

[1]Sketch of NN Builder

[2]https://www.draw.io/  

In [1],under "layers" users can select the type of the layer-Input,Hidden
or Output layer.
Under "node" and "Connectors"-users can drag and drop nodes and connectors
to the working area and they can build their NN as they wish.

In the right hand side,there is a setting area.From that user can set
Optimization algorithms,iterations,learning rates,seed etc. of the neural
network.

Could you please give me comments and your thoughts regrading this?

Thank you.



On Wed, Jun 1, 2016 at 2:19 PM, Upul Bandara  wrote:

> Hi,
>
> Good progress.
>
> The key parts of the project are designing the front-end of NN builder,
> communicating between the front-end and the Deeplearning4J back-end.
> So at this stage of the project, it is better to put your effort on above
> the components. Later, we can integrate what you have built with WSO2
> Machine Learning server.
>
> Once you have completed a basic NN builder (ability to build a simple
> feedforward  is enough) we would like to have a quick demo.
>
> Let me know if you have further questions or clarifications.
>
> Thanks,
> Upul
>
> On Wed, Jun 1, 2016 at 10:42 AM, Lakini Senanayaka <
> lakinisenanayak...@gmail.com> wrote:
>
>> Hi,
>>
>> I'm sorry for the late response.Thank you very much for the last email.I
>> have gone through JQueryUI and I have implemented some samples using
>> JQueryUI.I have gone through the  WSO2 machine learner and I have
>> identified the place to insert this jaggery page(replace the
>> hyper-parameter page in the ML UI).
>> Currently I'm designing the sketch of the Deep Neural Network Builder-the
>> front end.
>> I'll send my sketch before tonight.Based on your comments I can start
>> implementations.
>>
>> Thank you.
>>
>>
>> On Wed, Jun 1, 2016 at 9:29 AM, Supun Sethunga  wrote:
>>
>>> Hi Lakini,
>>>
>>> Any update on the progress?
>>>
>>> Regards,
>>> Supun
>>>
>>> On Fri, May 27, 2016 at 5:34 PM, Supun Sethunga  wrote:
>>>
 Hi Lakini,

 Sorry for the delayed response. As the first part of the project, you
 can start the work on the UI/drag and drop feature, as the core of your
 project is based around that. Therefore, shall we try to get a basic
 version of drag and drop UI, by the mid-term evaluation? (No need to
 connect the UI with the dl4j, for the first phase)  So this would be
 include:

- A link/re-direct to go to Visual builder, upon selecting the
Neural Netowrks (as the algorithm)
- The drawing/dropping area and a panel to pick the objects to be
dragged (objects as in, nodes, layers, links, etc)

 This drag and drop page should replace the hyper-parameter page in the
 ML UI. More precisely, In the Machine Learner wizard, when a user picks the
 algorithm name as Neural Network, and proceed, this drag and drop page
 should be prompted instead of the hyper-parameters page. You can create the
 overall page as a jaggery page (.jag). It would be easier for you to get a
 copy of an existing page, and modifying the content. That will preserve the
 existing styles, session handling etc.

 Please feel free to raise any question you come across during
 implementing.

 Regards,
 Supun

 On Tue, May 24, 2016 at 8:09 PM, Lakini Senanayaka <
 lakinisenanayak...@gmail.com> wrote:

> Hi,
>
> Thank you very much for the suggestions.I will be using JQueryUI.
>
> As my coding period started yesterday according to the GSoC Schedule
>  I would like to know the workload that should be completed
> before the midterm evaluation. Please advise me accordingly.
>
> Thank you.
>
>
> On Tue, May 24, 2016 at 10:34 AM, Supun Sethunga 
> wrote:
>
>> Hi Lakini,
>>
>> Yes you can use any of them, with open source licence. But I would
>> prefer JQueryUI, as its a well known library, and is already been used by
>> some of the wso2 products.
>>
>> Regards,
>> Supun
>>
>> On Tue, May 24, 2016 at 9:29 AM, Lakini Senanayaka <
>> lakinisenanayak...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have found some libraries to build drag and drop UI for our front
>>> end .They are JQury UI[1],Dragula[2],Draggablily[3].
>>> I hope I can do the developments using these libraries.
>>>
>>> [1]jqueryui 
>>> [2]dragula 
>>> [3]draggabilly 
>>>
>>> Could you please tell me if you have any other 

Re: [Dev] Unexpected error occured when generating SAML2 bearer token using API manager- IS integrated setup.

2016-06-01 Thread Nuwan Dias
Tenant domain should not be a mandatory parameter for the token API. The
fix that required it to be so was reverted (or fixed differently) by
Johann. Could you please check and fix for the saml grant too? It now works
for the password and client credential grants.

On Wednesday, 1 June 2016, Pushpalanka Jayawardhana  wrote:

> Hi Sewmini,
>
> Please try sending the tenantDomain as a query param in the cURL command's
> token endpoint as below.
>
> https://localhost:9443/oauth2/token?tenantDomain=
>
>
> Thanks,
>
> On Wed, Jun 1, 2016 at 8:15 PM, Sewmini Jayaweera  > wrote:
>
>> Adding dev@wso2.org 
>>
>> Sewmini Jayaweera
>> *Software Engineer - QA Team*
>> Mobile: +94 (0) 773 381 250
>> sewm...@wso2.com 
>>
>> On Wed, Jun 1, 2016 at 8:13 PM, Sewmini Jayaweera > > wrote:
>>
>>> Hi APIM / IS teams,
>>>
>>> I am testing 'Exchanging SAML2 Bearer Tokens with OAuth2' (SAML
>>> Extension Grant Type) scenario for tenant user. I followed API manager
>>> documentation available [1] and scenario worked fine for the super tenant.
>>> When I try the tenant scenario I noticed when service provider and IDP
>>> created in IS tenant domain token generation fails. Reason is that even
>>> though SP is in the tenant domain system expects IDP in carbon.super
>>> tenant.
>>>
>>> Are there any specific configurations which should be done, in order to
>>> get the tenant scenario working ?
>>>
>>> I have also reported a Jira [2] on this explaining full scenario.
>>>
>>> [2]. https://wso2.org/jira/browse/APIMANAGER-4929
>>> [1].
>>> https://docs.wso2.com/display/AM1100/Exchanging+SAML2+Bearer+Tokens+with+OAuth2+-+SAML+Extension+Grant+Type
>>>
>>> Kind Regards,
>>> Sewmini.
>>>
>>> Sewmini Jayaweera
>>> *Software Engineer - QA Team*
>>> Mobile: +94 (0) 773 381 250
>>> sewm...@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
>
>

-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issues in loading shared dashboard with registry cache enabled

2016-06-01 Thread Megala Uthayakumar
Hi,

We are using super-tenant registry to load the dashboards in other tenants.
We are using following code.

superTenantRegistry = new carbon.registry.Registry(server, {
system: true,
tenantId: carbon.server.superTenant.tenantId
});

Thanks.

Regards,

Megala


On Wed, Jun 1, 2016 at 10:47 PM, Chandana Napagoda 
wrote:

> Hi,
>
> How are you sharing the asset between all the tenants? Is it a public
> visible asset?
>
> Regards,
> Chandana
> On Jun 1, 2016 10:08 PM, "Megala Uthayakumar"  wrote:
>
>> Hi All,
>>
>> We are developing a shared dashboard feature for Dashboard Server. This
>> feature allows the dashboard created from super-tenant to be shared among
>> all the tenants. We have observed following behavior when developing this
>> feature.
>>
>> When we create a shareable dashboard in super-tenant mode and if we
>> immediately login to portal as a different tenant-user. Shared database is
>> not visible in the tenant mode. We were able to see the shared dashboard in
>> other tenants after we restart the server.
>>
>> However after we disable registry caching, we were able to see the shared
>> dashboard in tenant mode immediately after login without requiring to
>> restart the server. Is it possible to get the same type of behavior without
>> disabling registry cache?
>>
>> Thanks
>>
>> Regards,
>> Megala
>> --
>> Megala Uthayakumar
>>
>> Software Engineer
>> Mobile : 0779967122
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>


-- 
Megala Uthayakumar

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


Re: [Dev] Issues in loading shared dashboard with registry cache enabled

2016-06-01 Thread Chandana Napagoda
Hi,

How are you sharing the asset between all the tenants? Is it a public
visible asset?

Regards,
Chandana
On Jun 1, 2016 10:08 PM, "Megala Uthayakumar"  wrote:

> Hi All,
>
> We are developing a shared dashboard feature for Dashboard Server. This
> feature allows the dashboard created from super-tenant to be shared among
> all the tenants. We have observed following behavior when developing this
> feature.
>
> When we create a shareable dashboard in super-tenant mode and if we
> immediately login to portal as a different tenant-user. Shared database is
> not visible in the tenant mode. We were able to see the shared dashboard in
> other tenants after we restart the server.
>
> However after we disable registry caching, we were able to see the shared
> dashboard in tenant mode immediately after login without requiring to
> restart the server. Is it possible to get the same type of behavior without
> disabling registry cache?
>
> Thanks
>
> Regards,
> Megala
> --
> Megala Uthayakumar
>
> Software Engineer
> Mobile : 0779967122
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Docker images layered composition

2016-06-01 Thread Isuru Haththotuwa
Hi Akila and Imesh,

Without creating a base image, if we package everything in a product
specific image, host it in a local registry, and provide instructions to
create a local Dockerfile extending from that image, the time taken to
build the local image would be lesser. This will speedup the
development/testing procedure even more. The developers can package any
apps/jars/configs via the local Dockerfile (using volume mounts, etc.), for
testing. I have seen this pattern used in some Docker images, for an
example in the haproxy Docker image [1].

One downside is, as you mentioned, we cannot push the image to Dockerhub
with Oracle JDK distribution included. Maybe we can create the product
Docker image with the relevant utilities (wget, zip, unzip, etc.) + the
product distribution, and push it to Docker hub. Then provide an option to
package the JDK via a local Dockerfile extending from the product
Dockerfile.

WDYT?

[1]. https://hub.docker.com/_/haproxy/

On Mon, May 30, 2016 at 12:48 PM, Akila Ravihansa Perera  wrote:

> Hi,
>
> Currently we don't have a base image for WSO2 Docker images due to image
> size issues we had with it. But later we found out that this was mainly due
> to multiple RUN commands, which caused Docker to add unnecessary layers.
>
> I think we should bring back the base image for couple of reasons;
>
> 1. wso2base image with minimum packages installed (wget, puppet etc) will
> eliminate the need for having to run apt-get commands (which are very
> expensive, time-wise) each and every time
>
> 2. wso2base image can be hosted publicly (without Oracle JDK of course) so
> that users don't have to build wso2base but rather pull it from DockerHub.
>
> 3. wso2base image provides a Docker layer which reduces the amount of
> traffic carried when pulling images from a Docker registry over a long
> period of time. This is because base image is very unlikely to be changed,
> but product images can change very rapidly (due to artifacts or
> configuration change, product version etc.). It is unnecessary to carry the
> information in the lower level layers each time a product image is changed.
>
> If you must use a single image, I found this cool Docker tool written in
> Python which can be used to squash Docker layers called docker-squash [1].
> Following is a comparison of Docker images built with/without wso2base and
> squashed images;
>
> [image: Inline image 3]
>
> In summary;
> wso2am-1.10.0 with base image: 1.079GB
> wso2am-1.10.0 with base image and *squashed*: 948MB
> wso2am-1.10.0 *without* base image: 969MB
>
> wso2esb-4.9.0 with base image: 794MB
> wso2esb-4.9.0 with base image and *squashed*: 664MB
> wso2esb-4.9.0 *without* base image: 685MB
>
> In conclusion, introducing a base image with minimum packages has a image
> size overhead of around 100+MB, but having individual images without a
> hierarchy can cause a significant amount of unnecessary information being
> transferred over the network when pull/push'ing to/from a registry.
>
> I've created a PR for this feature at [2]. Also used
> "--no-install-recommends" option to apt-get when installing packages to
> prevent unnecessary packages being installed. Please share your thoughts.
>
> [1] https://github.com/goldmann/docker-squash
> [2] https://github.com/wso2/dockerfiles/pull/46/files
>
> Thanks.
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issues in loading shared dashboard with registry cache enabled

2016-06-01 Thread Megala Uthayakumar
Yes. I tested with 4.5.4 carbon-registry version.

On Wed, Jun 1, 2016 at 10:16 PM, Sinthuja Ragendran 
wrote:

> Looping in registry team. Is this the known issue? Megala, I think you
> tested with 4.5.4 carbon-registry version.
>
>
>
> On Wed, Jun 1, 2016 at 10:08 PM, Megala Uthayakumar 
> wrote:
>
>> Hi All,
>>
>> We are developing a shared dashboard feature for Dashboard Server. This
>> feature allows the dashboard created from super-tenant to be shared among
>> all the tenants. We have observed following behavior when developing this
>> feature.
>>
>> When we create a shareable dashboard in super-tenant mode and if we
>> immediately login to portal as a different tenant-user. Shared database is
>> not visible in the tenant mode. We were able to see the shared dashboard in
>> other tenants after we restart the server.
>>
>> However after we disable registry caching, we were able to see the shared
>> dashboard in tenant mode immediately after login without requiring to
>> restart the server. Is it possible to get the same type of behavior without
>> disabling registry cache?
>>
>> Thanks
>>
>> Regards,
>> Megala
>> --
>> Megala Uthayakumar
>>
>> Software Engineer
>> Mobile : 0779967122
>>
>
>
>
> --
> *Sinthuja Rajendran*
> Associate Technical Lead
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>


-- 
Megala Uthayakumar

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


Re: [Dev] Issues in loading shared dashboard with registry cache enabled

2016-06-01 Thread Sinthuja Ragendran
Looping in registry team. Is this the known issue? Megala, I think you
tested with 4.5.4 carbon-registry version.



On Wed, Jun 1, 2016 at 10:08 PM, Megala Uthayakumar  wrote:

> Hi All,
>
> We are developing a shared dashboard feature for Dashboard Server. This
> feature allows the dashboard created from super-tenant to be shared among
> all the tenants. We have observed following behavior when developing this
> feature.
>
> When we create a shareable dashboard in super-tenant mode and if we
> immediately login to portal as a different tenant-user. Shared database is
> not visible in the tenant mode. We were able to see the shared dashboard in
> other tenants after we restart the server.
>
> However after we disable registry caching, we were able to see the shared
> dashboard in tenant mode immediately after login without requiring to
> restart the server. Is it possible to get the same type of behavior without
> disabling registry cache?
>
> Thanks
>
> Regards,
> Megala
> --
> Megala Uthayakumar
>
> Software Engineer
> Mobile : 0779967122
>



-- 
*Sinthuja Rajendran*
Associate Technical Lead
WSO2, Inc.:http://wso2.com

Blog: http://sinthu-rajan.blogspot.com/
Mobile: +94774273955
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2016: Proposal 7

2016-06-01 Thread Dinanjana Gunaratne
Hello all,

Progress of the tool so far

The tool can be deployed in a remote machine to monitor ESB instance. It
connects to MBanServer of the targeted machine through RMI. Currently it
monitors memory usage, CPU usage and Network traffic of the ESB. Network
traffic details are gathered through PassThruHttpSender/receiver mbeans.
These metrics values are queried periodically. Period can be defined on a
property file under the resources folder inside the working dir. There are
three threads running inside the tool.

Thread 1: Periodically query memory and operating system mbeans to find out
about heap memory usage & cpu load avearge
   Threshold values for max memory usage and max cpu load
average can be set on the property file. So is the period.
   If memory usage exceeds this max value heap dump will be
automatically generated on the remote ESB Home. User can
 specify any location. By default it will be created on ESB home. If the
average CPU load exceeds the max value the Threaddump will
be generated inside the tool. Location to thread dumps to be saved can be
specified by the user. Each time a heapdump requested a
seperate thread will be created to handle it.

Thread 2: Periodically monitors network traffic from
PassThruHTTPSender/receiver mbeans. As we discussed earlier network details
   are persisted to an embedded derby db. Period can be set.

Thread 3: This handles persistence services. Period can be set.

Name of the heap dumps are created as this "HeapDump "
+date.toString().replaceAll(":","")+".bin"
Name of the thread dumps are created as this  "ThreadDump"+new
Date().toString().replaceAll(":","")+".txt"

Let me know if I got it right :)


On Mon, May 30, 2016 at 7:30 PM, Dinanjana Gunaratne <
dinanjanagunara...@gmail.com> wrote:

> Thanks Viraj
> On May 30, 2016 7:23 PM, "Viraj Senevirathne"  wrote:
>
>> 
>> org.apache.synapse
>> synapse-nhttp-transport
>> 
>>
>> On Sun, May 29, 2016 at 9:19 AM, Dinanjana Gunaratne <
>> dinanjanagunara...@gmail.com> wrote:
>>
>>> Hello all,
>>> I am facing a problem when trying to create a proxy object. I couldn't
>>> find correct maven dependency to get class
>>> org.apache.synapse.transport.passthru.jmx.TransportView. Can you direct
>>> me to the correct dependency.
>>>
>>>
>>> On Sat, May 14, 2016 at 8:46 PM, Dinanjana Gunaratne <
>>> dinanjanagunara...@gmail.com> wrote:
>>>
 Dear all,
 I have added DynamicReports (which is an implementation based on Jasper
 reports) as the reporting framework for the Flight recorder. It would be
 great if I can have wso2 license headers for refactor. Direct me for
 IntelliJ headers. All changes can be seen here [1]
 

 [1 ]https://github.com/dinanjana/ESBMonitor

 On Fri, May 6, 2016 at 10:43 PM, Dinanjana Gunaratne <
 dinanjanagunara...@gmail.com> wrote:

> [1]https://github.com/dinanjana/ESBMonitor
>
> On Fri, May 6, 2016 at 10:42 PM, Dinanjana Gunaratne <
> dinanjanagunara...@gmail.com> wrote:
>
>> Hello all,
>> I have started working on the project. You can have a look on what I
>> am doing from this repo [1]. Currently I am implementing heap dump 
>> creator
>> for this project. Can you explain me how currently heap dump analyzing 
>> take
>> place with ESB OOM events ? In the current implementation of the flight
>> recorder this method creates a .bin file with a snapshot of heap memory.
>>
>> On Sun, May 1, 2016 at 10:01 PM, Dinanjana Gunaratne <
>> dinanjanagunara...@gmail.com> wrote:
>>
>>> Hello all,
>>> I have started working on the project. You can have a look on what i
>>> will be doing on this [1] 
>>> repo. Meanwhile let me know if there is any coding convention I must 
>>> adhere
>>> to. And I chose Jasper reports as the reporting frame work. Hope it is 
>>> okay.
>>> [1] https://github.com/dinanjana/ESBMonitor
>>>
>>> On Wed, Apr 27, 2016 at 8:07 AM, Dinanjana Gunaratne <
>>> dinanjanagunara...@gmail.com> wrote:
>>>
 Hi all,
 Thanks for accepting my project proposal. :) Thank you very much on
 helping me to prepare a good proposal. I am looking forward to get 
 started
 with the project ASAP

 On Sat, Mar 26, 2016 at 12:16 PM, Isuru Udana 
 wrote:

> Hi Dinanjana,
>
>
>
> On Sat, Mar 26, 2016 at 8:31 AM, Dinanjana Gunaratne <
> dinanjanagunara...@gmail.com> wrote:
>
>> Hi Kasun,
>> So shall I update the draft ? What do you think. I think the best
>> approach is to make this a separate application. Otherwise it will 
>> anyways
>> have an effect on the performance of ESB. Because this tool includes 

Re: [Dev] Error stacktrace printed during Carbon caching PAX logging tests

2016-06-01 Thread Afkham Azeez
That fixed it. Thanks.

On Wed, Jun 1, 2016 at 9:24 PM, Aruna Karunarathna  wrote:

> Please refer to mail @architecture [1], if we doesn't inject the service
> the container won't fully start.
>
> [1] [C5] Must Inject CarbonServerInfo when writing OSGi Test Cases
>
> On Wed, Jun 1, 2016 at 9:20 PM, KasunG Gajasinghe  wrote:
>
>> Yes, it's an osgi test. Any reason why we need to inject that service?
>>
>> On Wed, Jun 1, 2016 at 9:14 PM, Aruna Karunarathna 
>> wrote:
>>
>>> Is this an OSGi test?.. If so did you inject the CarbonServerInfo
>>> service?
>>>
>>> On Wed, Jun 1, 2016 at 9:05 PM, Afkham Azeez  wrote:
>>>
 What could be the reason for the following?


 21:03:36.298 [Timer-0] ERROR
 org.wso2.carbon.kernel.internal.runtime.RuntimeServiceListenerComponent -
 Error while starting runtime from Runtime manager

 java.lang.IllegalStateException: BundleContext is no longer valid

 at
 org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:983)
 ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]

 at
 org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:463)
 ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]

 at
 org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:482)
 ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]

 at
 org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:998)
 ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]

 at
 org.wso2.carbon.kernel.internal.runtime.RuntimeServiceListenerComponent.onAllRequiredCapabilitiesAvailable(RuntimeServiceListenerComponent.java:99)
 [bundleFile:?]

 at
 org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.lambda$notifySatisfiableComponents$27(StartupComponentManager.java:237)
 [bundleFile:?]

 at
 org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager$$Lambda$51/1247632978.accept(Unknown
 Source) [bundleFile:?]

 at java.util.ArrayList.forEach(ArrayList.java:1249) [?:1.8.0_51]

 at
 org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.notifySatisfiableComponents(StartupComponentManager.java:225)
 [bundleFile:?]

 at
 org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver$1.run(StartupOrderResolver.java:186)
 [bundleFile:?]

 at java.util.TimerThread.mainLoop(Timer.java:555) [?:1.8.0_51]

 at java.util.TimerThread.run(Timer.java:505) [?:1.8.0_51]

 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * *
 *email: **az...@wso2.com* 
 * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
 *http://blog.afkham.org* 
 *twitter: **http://twitter.com/afkham_azeez*
 
 *linked-in: **http://lk.linkedin.com/in/afkhamazeez
 *

 *Lean . Enterprise . Middleware*

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


>>>
>>>
>>> --
>>>
>>> *Aruna Sujith Karunarathna *
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>>
>
>
>
> --
>
> *Aruna Sujith Karunarathna *
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


[Dev] Issues in loading shared dashboard with registry cache enabled

2016-06-01 Thread Megala Uthayakumar
Hi All,

We are developing a shared dashboard feature for Dashboard Server. This
feature allows the dashboard created from super-tenant to be shared among
all the tenants. We have observed following behavior when developing this
feature.

When we create a shareable dashboard in super-tenant mode and if we
immediately login to portal as a different tenant-user. Shared database is
not visible in the tenant mode. We were able to see the shared dashboard in
other tenants after we restart the server.

However after we disable registry caching, we were able to see the shared
dashboard in tenant mode immediately after login without requiring to
restart the server. Is it possible to get the same type of behavior without
disabling registry cache?

Thanks

Regards,
Megala
-- 
Megala Uthayakumar

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


Re: [Dev] Best way to access an osgi service from an AdminService

2016-06-01 Thread Geesara Prathap
 getOSGiService(Class clazz)  method has been deprecated. You can verify it
by looking its implementation class:
org.wso2.carbon.context.PrivilegedCarbonContext. How about this way

  public static AnalyticsDataAPI getAnalyticsDataAPI() {
PrivilegedCarbonContext ctx =
PrivilegedCarbonContext.getThreadLocalCarbonContext();
AnalyticsDataAPI analyticsDataAPI =
(AnalyticsDataAPI)
ctx.getOSGiService(AnalyticsDataAPI.class, null);
if (analyticsDataAPI == null) {
String msg = "Analytics api service has not initialized.";
log.error(msg);
throw new IllegalStateException(msg);
}
return analyticsDataAPI;
  }



On Wed, Jun 1, 2016 at 12:19 PM, Fathima Dilhasha  wrote:

> Hi,
>
> I have an Admin Service which accesses a method in an already available
> osgi service.
> I am using the following code segment to achieve this.
>
> PrivilegedCarbonContext.startTenantFlow();
> Object service = 
> PrivilegedCarbonContext.getThreadLocalCarbonContext().getOSGiService(AnalyticsDataAPI.class);
> if(service instanceof AnalyticsDataAPI) {
> this.analyticsDataAPI = (AnalyticsDataAPI) service;
> }
>
> I need to know whether there is any better way of achieving this.
>
> Thanks.
> Regards,
> Dilhasha
> --
> Fathima Dilhasha
> *Software Engineer*
> Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
> <%2B94%20%280%29%20773%20451194>
> dilha...@wso2.com 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Geesara Prathap Kulathunga
Software Engineer
WSO2 Inc; http://wso2.com
Mobile : +940772684174
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Carbon Datasources 1.0.0 Released

2016-06-01 Thread KasunG Gajasinghe
WSO2 Carbon Datasources 1.0.0 Release

The Carbon team is pleased to announce the release of Carbon Datasources 1.0
.0. Listed below are the features introduced with this release.


Features

   - Create javax.sql.Datasource objects, and optionally bind it via JNDi
   - Exposing OSGi Services to fetch and manage data source objects.
   - Support for HikariCP jdbc connection pool implementation


Installing as a Carbon Feature

You may install carbon-datasource feature to your product with:


  org.wso2.carbon.datasources
  org.wso2.carbon.datasource.core.feature
  1.0.0
  zip


How to Contribute

   - WSO2 Carbon Datasources code is hosted in github.
   - The Git repository is https://github.com/wso2/carbon-datasources
   - Carbon Datasources 1.0.0 release tag is
   https://github.com/wso2/carbon-datasources/tree/v1.0.0


Contact Us

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

   -

   WSO2 Developers List: dev@wso2.org
   -

   WSO2 Architecture List: architect...@wso2.org


-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Carbon JNDI 1.0.0 Released

2016-06-01 Thread Nipuni Perera
WSO2 Carbon JNDI 1.0.0 Released

The Carbon team is pleased to announce the release of Carbon JNDI 1.0.0.
Listed below are the features introduced with this release.


Features

   - In-memory JNDI service provider implementation.
   - OSGi JNDI Service specification implementation.
   - Mechanism to plug in custom InitialContextFactory and ObjectFactories
   in an OSGi environment.
   - OSGi URL scheme support that allows JNDI based applications to access
   services in the OSGi service registry.


Installing as a Feature

You may install carbon-jndi feature to your product with:

org.wso2.carbon.jndi
org.wso2.carbon.jndi.feature
1.0.0

Known Issues

https://wso2.org/jira/browse/CJNDI-5?filter=13084

How to Contribute

   -

   WSO2 Carbon JNDI code is hosted in github.
   -

   The Git repository is https://github.com/wso2/carbon-jndi
   -

   Carbon JNDI 1.0.0 release tag is
   https://github.com/wso2/carbon-jndi/tree/v1.0.0
   -

   Please report issues at Carbon JNDI Jira,
   https://wso2.org/jira/browse/CJNDI


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 JNDI​.

Best Regards

Carbon Team​

-- 
Nipuni Perera
Software Engineer; WSO2 Inc.; http://wso2.com
Email: nip...@wso2.com
Git hub profile: https://github.com/nipuni
Blog : http://nipunipererablog.blogspot.com/
Mobile: +94 (71) 5626680

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


Re: [Dev] ESB 5 Beta - Shared subscriber doesn't connect

2016-06-01 Thread Dilshani Subasinghe
Hi Manuranga,

Sure, will do. I also identified similar scenarios while testing JMS
Transport service parameters.

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


[Dev] How to create a signed auth request using sso module within jaggery-extensions

2016-06-01 Thread Udara Rathnayake
Hi All,

We have buildAuthenticationRequest[1] wrapped within our sso client js
module. Noticed following error after enabling sso with signature
validation,

WARN
{org.wso2.carbon.identity.sso.saml.processors.SPInitSSOAuthnRequestProcessor}
-  Destination validation for Authentication Request failed. Received: [
*null*]. Expected one in the list: [https://localhost:9443/samlsso

]

Seems we have to set other properties like destination etc.. within SAML
request inorder to support signature validation. @Darshana please confirm.

Found buildSignedAuthRequest[2] within APIM SSO hostobject which supports
this. Have we encounted this problem during ES/UES testing previously?

[1]
https://github.com/wso2/jaggery-extensions/blob/master/sso/resources/org.jaggeryjs.modules.sso/src/main/java/org/jaggeryjs/modules/sso/common/builders/AuthReqBuilder.java#L38
[2]
https://github.com/wso2/carbon-apimgt/blob/8e5b065f3149d75e9eea3d63fe3f68b24503e6b4/components/sso-hostobject/org.wso2.carbon.hostobjects.sso/src/main/java/org/wso2/carbon/hostobjects/sso/internal/builder/AuthReqBuilder.java#L83

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


Re: [Dev] Error stacktrace printed during Carbon caching PAX logging tests

2016-06-01 Thread Aruna Karunarathna
Please refer to mail @architecture [1], if we doesn't inject the service
the container won't fully start.

[1] [C5] Must Inject CarbonServerInfo when writing OSGi Test Cases

On Wed, Jun 1, 2016 at 9:20 PM, KasunG Gajasinghe  wrote:

> Yes, it's an osgi test. Any reason why we need to inject that service?
>
> On Wed, Jun 1, 2016 at 9:14 PM, Aruna Karunarathna  wrote:
>
>> Is this an OSGi test?.. If so did you inject the CarbonServerInfo
>> service?
>>
>> On Wed, Jun 1, 2016 at 9:05 PM, Afkham Azeez  wrote:
>>
>>> What could be the reason for the following?
>>>
>>>
>>> 21:03:36.298 [Timer-0] ERROR
>>> org.wso2.carbon.kernel.internal.runtime.RuntimeServiceListenerComponent -
>>> Error while starting runtime from Runtime manager
>>>
>>> java.lang.IllegalStateException: BundleContext is no longer valid
>>>
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:983)
>>> ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]
>>>
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:463)
>>> ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]
>>>
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:482)
>>> ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]
>>>
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:998)
>>> ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]
>>>
>>> at
>>> org.wso2.carbon.kernel.internal.runtime.RuntimeServiceListenerComponent.onAllRequiredCapabilitiesAvailable(RuntimeServiceListenerComponent.java:99)
>>> [bundleFile:?]
>>>
>>> at
>>> org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.lambda$notifySatisfiableComponents$27(StartupComponentManager.java:237)
>>> [bundleFile:?]
>>>
>>> at
>>> org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager$$Lambda$51/1247632978.accept(Unknown
>>> Source) [bundleFile:?]
>>>
>>> at java.util.ArrayList.forEach(ArrayList.java:1249) [?:1.8.0_51]
>>>
>>> at
>>> org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.notifySatisfiableComponents(StartupComponentManager.java:225)
>>> [bundleFile:?]
>>>
>>> at
>>> org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver$1.run(StartupOrderResolver.java:186)
>>> [bundleFile:?]
>>>
>>> at java.util.TimerThread.mainLoop(Timer.java:555) [?:1.8.0_51]
>>>
>>> at java.util.TimerThread.run(Timer.java:505) [?:1.8.0_51]
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> 
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna *
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
>



-- 

*Aruna Sujith Karunarathna *
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error stacktrace printed during Carbon caching PAX logging tests

2016-06-01 Thread KasunG Gajasinghe
Yes, it's an osgi test. Any reason why we need to inject that service?

On Wed, Jun 1, 2016 at 9:14 PM, Aruna Karunarathna  wrote:

> Is this an OSGi test?.. If so did you inject the CarbonServerInfo service?
>
> On Wed, Jun 1, 2016 at 9:05 PM, Afkham Azeez  wrote:
>
>> What could be the reason for the following?
>>
>>
>> 21:03:36.298 [Timer-0] ERROR
>> org.wso2.carbon.kernel.internal.runtime.RuntimeServiceListenerComponent -
>> Error while starting runtime from Runtime manager
>>
>> java.lang.IllegalStateException: BundleContext is no longer valid
>>
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:983)
>> ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]
>>
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:463)
>> ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]
>>
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:482)
>> ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]
>>
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:998)
>> ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]
>>
>> at
>> org.wso2.carbon.kernel.internal.runtime.RuntimeServiceListenerComponent.onAllRequiredCapabilitiesAvailable(RuntimeServiceListenerComponent.java:99)
>> [bundleFile:?]
>>
>> at
>> org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.lambda$notifySatisfiableComponents$27(StartupComponentManager.java:237)
>> [bundleFile:?]
>>
>> at
>> org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager$$Lambda$51/1247632978.accept(Unknown
>> Source) [bundleFile:?]
>>
>> at java.util.ArrayList.forEach(ArrayList.java:1249) [?:1.8.0_51]
>>
>> at
>> org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.notifySatisfiableComponents(StartupComponentManager.java:225)
>> [bundleFile:?]
>>
>> at
>> org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver$1.run(StartupOrderResolver.java:186)
>> [bundleFile:?]
>>
>> at java.util.TimerThread.mainLoop(Timer.java:555) [?:1.8.0_51]
>>
>> at java.util.TimerThread.run(Timer.java:505) [?:1.8.0_51]
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Aruna Sujith Karunarathna *
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Carbon Deployment 5.0.0 Released

2016-06-01 Thread KasunG Gajasinghe
WSO2 Carbon Deployment 5.0.0 Release

The Carbon team is pleased to announce the release of Carbon Deployment
5.0.0. Listed below are the features introduced with this release. The
Carbon deployment framework that was previously part of carbon-kernel is
now maintained separately with this release.

New Features

   - Carbon Deployment Framework to deploy artifacts
   - SDK to write artifact deployers and deployment lifecycle listeners
   - Artifact deployment notifier via JMS


Installing as a Carbon Feature

You may install carbon-deployment feature to your product by using the
following two dependencies. First one provides the core deployment framework,
while the second one provides the deployment notifier.


  org.wso2.carbon.deployment
  org.wso2.carbon.deployment.engine.feature
  5.0.0
  zip



  org.wso2.carbon.deployment
  org.wso2.carbon.deployment.notifier.feature
  5.0.0
  zip


How to Contribute

   - WSO2 Carbon Deployment code is hosted in github.
   - The Git repository is https://github.com/wso2/carbon-deployment
   - Carbon Deployment 5.0.0 release tag is
   https://github.com/wso2/carbon-deployment/tree/v5.0.0
   - Please report issues at Carbon Deployment Jira,
   https://wso2.org/jira/browse/CDEPLOY


Contact Us

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

   -

   WSO2 Developers List: dev@wso2.org
   -

   WSO2 Architecture List: architect...@wso2.org


-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error stacktrace printed during Carbon caching PAX logging tests

2016-06-01 Thread Aruna Karunarathna
Is this an OSGi test?.. If so did you inject the CarbonServerInfo service?

On Wed, Jun 1, 2016 at 9:05 PM, Afkham Azeez  wrote:

> What could be the reason for the following?
>
>
> 21:03:36.298 [Timer-0] ERROR
> org.wso2.carbon.kernel.internal.runtime.RuntimeServiceListenerComponent -
> Error while starting runtime from Runtime manager
>
> java.lang.IllegalStateException: BundleContext is no longer valid
>
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:983)
> ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]
>
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:463)
> ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]
>
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:482)
> ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]
>
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:998)
> ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]
>
> at
> org.wso2.carbon.kernel.internal.runtime.RuntimeServiceListenerComponent.onAllRequiredCapabilitiesAvailable(RuntimeServiceListenerComponent.java:99)
> [bundleFile:?]
>
> at
> org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.lambda$notifySatisfiableComponents$27(StartupComponentManager.java:237)
> [bundleFile:?]
>
> at
> org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager$$Lambda$51/1247632978.accept(Unknown
> Source) [bundleFile:?]
>
> at java.util.ArrayList.forEach(ArrayList.java:1249) [?:1.8.0_51]
>
> at
> org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.notifySatisfiableComponents(StartupComponentManager.java:225)
> [bundleFile:?]
>
> at
> org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver$1.run(StartupOrderResolver.java:186)
> [bundleFile:?]
>
> at java.util.TimerThread.mainLoop(Timer.java:555) [?:1.8.0_51]
>
> at java.util.TimerThread.run(Timer.java:505) [?:1.8.0_51]
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Aruna Sujith Karunarathna *
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error stacktrace printed during Carbon caching PAX logging tests

2016-06-01 Thread Afkham Azeez
What could be the reason for the following?


21:03:36.298 [Timer-0] ERROR
org.wso2.carbon.kernel.internal.runtime.RuntimeServiceListenerComponent -
Error while starting runtime from Runtime manager

java.lang.IllegalStateException: BundleContext is no longer valid

at
org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:983)
~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]

at
org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:463)
~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]

at
org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:482)
~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]

at
org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:998)
~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]

at
org.wso2.carbon.kernel.internal.runtime.RuntimeServiceListenerComponent.onAllRequiredCapabilitiesAvailable(RuntimeServiceListenerComponent.java:99)
[bundleFile:?]

at
org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.lambda$notifySatisfiableComponents$27(StartupComponentManager.java:237)
[bundleFile:?]

at
org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager$$Lambda$51/1247632978.accept(Unknown
Source) [bundleFile:?]

at java.util.ArrayList.forEach(ArrayList.java:1249) [?:1.8.0_51]

at
org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.notifySatisfiableComponents(StartupComponentManager.java:225)
[bundleFile:?]

at
org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver$1.run(StartupOrderResolver.java:186)
[bundleFile:?]

at java.util.TimerThread.mainLoop(Timer.java:555) [?:1.8.0_51]

at java.util.TimerThread.run(Timer.java:505) [?:1.8.0_51]

-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


Re: [Dev] ESB 5 Beta - Shared subscriber doesn't connect

2016-06-01 Thread Manuranga Perera
Hi Ravindra,
I was setting up using axis2.xml, when I switched to inbound endpoint it
worked. But I believe we need to fix this for axis2 xml as well.

Hi Dilshani,
Shall we add a test case for testing shared subscription configured via
axis2 as well.

On Fri, May 27, 2016 at 11:51 PM, Ravindra Ranwala 
wrote:

> Hi Manuranga,
>
> The shared subscription feature works fine and we used to test it with HornetQ
> broker. This could be due to some missing configuration. Could you please
> follow the blog post [1], and check the correctness in your configuration.
>
>
> [1] http://ravindraranwala.blogspot.com/
>
>
> Thanks & Regards,
>
> On Fri, May 27, 2016 at 8:51 PM, Manuranga Perera  wrote:
>
>> I am trying to connect to IBM MQ using JMS 2
>>
>> http://ws.apache.org/ns/synapse; name="TReaderPxy2"
>> startOnLoad="true">
>>
>>   
>>  
>>  
>>  
>>   
>>
>>topic
>>mySub
>>TestQ49
>>true
>>1
>>> name="transport.jms.ConnectionFactory">myTopicParams
>>2.0
>>true
>> 
>>
>> First ESB instance can connect successfully and I can publish messages.
>> But when I start another identical instance I see following error.
>> It connects if subscriber names are distinct, but then messages are
>> cloned, not shared.
>>
>> Please help me identify the issue.
>>
>> TID: [-1234] [] [2016-05-27 11:11:07,719]  INFO
>> {org.apache.axis2.transport.jms.JMSListener} -  JMS listener started
>> {org.apache.axis2.transport.jms.JMSListener}
>> TID: [-1234] [] [2016-05-27 11:11:07,720] DEBUG
>> {org.apache.axis2.transport.jms.JMSEndpoint} -  JMS reply destination type
>> not given. default queue {org.apache.axis2.transport.jms.JMSEndpoint}
>> TID: [-1234] [] [2016-05-27 11:11:07,738] DEBUG
>> {org.apache.axis2.transport.jms.JMSUtils} -  Creating a GenericConnection
>> using credentials : (null/null) {org.apache.axis2.transport.jms.JMSUtils}
>> TID: [-1234] [] [2016-05-27 11:11:08,011]  INFO
>> {org.apache.axis2.transport.jms.JMSListener} -  Connection attempt: 1 for
>> JMS Provider for service: TReaderPxy2 was successful!
>> {org.apache.axis2.transport.jms.JMSListener}
>> TID: [-1234] [] [2016-05-27 11:11:08,011] DEBUG
>> {org.apache.axis2.transport.jms.ServiceTaskManager} -  The JMS Connection,
>> Session and MessageConsumer will be cached and shared between successive
>> poller task invocations {org.apache.axis2.transport.jms.ServiceTaskManager}
>> TID: [-1234] [] [2016-05-27 11:11:08,017]  INFO
>> {org.apache.axis2.transport.jms.ServiceTaskManager} -  Task manager for
>> service : TReaderPxy2 [re-]initialized
>> {org.apache.axis2.transport.jms.ServiceTaskManager}
>> TID: [-1] [] [2016-05-27 11:11:08,020] DEBUG
>> {org.apache.axis2.transport.jms.ServiceTaskManager} -  New poll task
>> starting : thread id = 82
>> {org.apache.axis2.transport.jms.ServiceTaskManager}
>> TID: [-1] [] [2016-05-27 11:11:08,026] DEBUG
>> {org.apache.axis2.transport.jms.ServiceTaskManager} -  Connected to the JMS
>> connection factory : USAPP2D.TCF
>> {org.apache.axis2.transport.jms.ServiceTaskManager}
>> TID: [-1] [] [2016-05-27 11:11:08,027] DEBUG
>> {org.apache.axis2.transport.jms.JMSUtils} -  Creating a TopicConnection
>> using credentials : (null/null) {org.apache.axis2.transport.jms.JMSUtils}
>> TID: [-1] [] [2016-05-27 11:11:08,055] DEBUG
>> {org.apache.axis2.transport.jms.ServiceTaskManager} -  JMS Connection for
>> service : TReaderPxy2 created and started
>> {org.apache.axis2.transport.jms.ServiceTaskManager}
>> TID: [-1] [] [2016-05-27 11:11:08,056] DEBUG
>> {org.apache.axis2.transport.jms.ServiceTaskManager} -  Creating a new JMS
>> Session for service : TReaderPxy2
>> {org.apache.axis2.transport.jms.ServiceTaskManager}
>> TID: [-1] [] [2016-05-27 11:11:08,113] DEBUG
>> {org.apache.axis2.transport.jms.ServiceTaskManager} -  Creating a new JMS
>> MessageConsumer for service : TReaderPxy2
>> {org.apache.axis2.transport.jms.ServiceTaskManager}
>> TID: [-1] [] [2016-05-27 11:11:08,143] DEBUG
>> {org.apache.axis2.transport.jms.ServiceTaskManager} -  JMS Destination with
>> JNDI name : TestQ49 found for service TReaderPxy2
>> {org.apache.axis2.transport.jms.ServiceTaskManager}
>> TID: [-1] [] [2016-05-27 11:11:08,198] ERROR
>> {org.apache.axis2.transport.jms.ServiceTaskManager} -  Error creating JMS
>> consumer for service : TReaderPxy2. JMSWMQ0026: Failed to subscribe to
>> topic 'TestQ49' with selector 'none' using MQSUB.
>> {org.apache.axis2.transport.jms.ServiceTaskManager}
>> com.ibm.msg.client.jms.DetailedIllegalStateException: JMSWMQ0026: Failed
>> to subscribe to topic 'TestQ49' with selector 'none' using MQSUB.
>> There may have been a problem creating the subscription due to it being
>> used by another message consumer.
>> Make sure any message consumers using this subscription are closed before
>> trying to create a new subscription under the same name. Please see the
>> linked exception for more information.
>> at
>> 

Re: [Dev] Retrieving OAuth2 app details during DCR request

2016-06-01 Thread Harsha Thirimanna
Hi Kaveesha,
It is not clear in [2] point you mentioned. Basically, you want to update
Service Provider using new request data, right ?

In [1] point, you meant to get *InboundAuthenticationConfig* object from
ServiceProvider ? Yes you can just pass client id, request type and tenant
domain to this and get the SP.


*Harsha Thirimanna*
Associate Tech Lead; WSO2, Inc.; http://wso2.com
* *
*email: **hars...@wso2.com* * cell: +94 71 5186770 *
*twitter: **http://twitter.com/ *
*harshathirimannlinked-in: **http:
**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
*

*Lean . Enterprise . Middleware*


On Wed, Jun 1, 2016 at 4:04 PM, Kaveesha Perera  wrote:

> Hi,
>
> I'm working on a bug in APIM of Dynamic client registration as explained
> in [1]. There I'm going to retrieve the relevant  OAuth2 app  details when
> a user trying to send a DCR request for an already existing Application.
> For that I need to get the OAuth application information present in the
> Inbound authentication configuration of the created service Provider.
>
> I have used below two methods to get the oauth2 app details.
>
>  1.getInboundAuthenticationConfig()  -Derive the client id from the
> service provider
>
> 2.updateApplication(OAuthAppRequest appInfoDTO)-Derive other additional oauth2
> information of the service porivder
>
>
> Is the above approach correct or is there a better way of doing it?
>
> [1] [Architecture] Behavior of OAuth 2.0 Dynamic Client Registration
>
>
> --
> Kaveesha Perera
> Intern - Software Engineering
>
> mobile: 0716130471
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unexpected error occured when generating SAML2 bearer token using API manager- IS integrated setup.

2016-06-01 Thread Pushpalanka Jayawardhana
Hi Sewmini,

Please try sending the tenantDomain as a query param in the cURL command's
token endpoint as below.

https://localhost:9443/oauth2/token?tenantDomain=


Thanks,

On Wed, Jun 1, 2016 at 8:15 PM, Sewmini Jayaweera  wrote:

> Adding dev@wso2.org
>
> Sewmini Jayaweera
> *Software Engineer - QA Team*
> Mobile: +94 (0) 773 381 250
> sewm...@wso2.com
>
> On Wed, Jun 1, 2016 at 8:13 PM, Sewmini Jayaweera 
> wrote:
>
>> Hi APIM / IS teams,
>>
>> I am testing 'Exchanging SAML2 Bearer Tokens with OAuth2' (SAML Extension
>> Grant Type) scenario for tenant user. I followed API manager documentation
>> available [1] and scenario worked fine for the super tenant. When I try the
>> tenant scenario I noticed when service provider and IDP created in IS
>> tenant domain token generation fails. Reason is that even though SP is in
>> the tenant domain system expects IDP in carbon.super tenant.
>>
>> Are there any specific configurations which should be done, in order to
>> get the tenant scenario working ?
>>
>> I have also reported a Jira [2] on this explaining full scenario.
>>
>> [2]. https://wso2.org/jira/browse/APIMANAGER-4929
>> [1].
>> https://docs.wso2.com/display/AM1100/Exchanging+SAML2+Bearer+Tokens+with+OAuth2+-+SAML+Extension+Grant+Type
>>
>> Kind Regards,
>> Sewmini.
>>
>> Sewmini Jayaweera
>> *Software Engineer - QA Team*
>> Mobile: +94 (0) 773 381 250
>> sewm...@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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unexpected error occured when generating SAML2 bearer token using API manager- IS integrated setup.

2016-06-01 Thread Sewmini Jayaweera
Adding dev@wso2.org

Sewmini Jayaweera
*Software Engineer - QA Team*
Mobile: +94 (0) 773 381 250
sewm...@wso2.com

On Wed, Jun 1, 2016 at 8:13 PM, Sewmini Jayaweera  wrote:

> Hi APIM / IS teams,
>
> I am testing 'Exchanging SAML2 Bearer Tokens with OAuth2' (SAML Extension
> Grant Type) scenario for tenant user. I followed API manager documentation
> available [1] and scenario worked fine for the super tenant. When I try the
> tenant scenario I noticed when service provider and IDP created in IS
> tenant domain token generation fails. Reason is that even though SP is in
> the tenant domain system expects IDP in carbon.super tenant.
>
> Are there any specific configurations which should be done, in order to
> get the tenant scenario working ?
>
> I have also reported a Jira [2] on this explaining full scenario.
>
> [2]. https://wso2.org/jira/browse/APIMANAGER-4929
> [1].
> https://docs.wso2.com/display/AM1100/Exchanging+SAML2+Bearer+Tokens+with+OAuth2+-+SAML+Extension+Grant+Type
>
> Kind Regards,
> Sewmini.
>
> Sewmini Jayaweera
> *Software Engineer - QA Team*
> Mobile: +94 (0) 773 381 250
> sewm...@wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Retrieving OAuth2 app details during DCR request

2016-06-01 Thread Gayan Gunawardana
Hi Kaveesha,

You can go through the previously done implementation of DCR in [1]. Have a
look at "DynamicClientRegistrationServiceImpl".

[1] https://github.com/wso2/carbon-identity/pull/1712

On Wed, Jun 1, 2016 at 4:38 PM, Gayan Gunawardana  wrote:

> Adding Harsha.
>
> On Wed, Jun 1, 2016 at 4:04 PM, Kaveesha Perera  wrote:
>
>> Hi,
>>
>> I'm working on a bug in APIM of Dynamic client registration as explained
>> in [1]. There I'm going to retrieve the relevant  OAuth2 app  details when
>> a user trying to send a DCR request for an already existing Application.
>> For that I need to get the OAuth application information present in the
>> Inbound authentication configuration of the created service Provider.
>>
>> I have used below two methods to get the oauth2 app details.
>>
>>  1.getInboundAuthenticationConfig()  -Derive the client id from the
>> service provider
>>
>> 2.updateApplication(OAuthAppRequest appInfoDTO)-Derive other additional 
>> oauth2
>> information of the service porivder
>>
>>
>> Is the above approach correct or is there a better way of doing it?
>>
>> [1] [Architecture] Behavior of OAuth 2.0 Dynamic Client Registration
>>
>>
>> --
>> Kaveesha Perera
>> Intern - Software Engineering
>>
>> mobile: 0716130471
>>
>
>
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shindig error on DS portal startup, due to connectivity errors to google

2016-06-01 Thread Megala Uthayakumar
Hi,

We have done the carbon-dashboards 1.0.18 release with the fix for the
remaining online feature.

Thanks.

On Mon, May 30, 2016 at 2:03 PM, Fazlan Nazeem  wrote:

> Hi Megala,
>
> Please let us know once the new release is done. For now we will go with
> 1.0.17.
>
> On Mon, May 30, 2016 at 1:52 PM, Ruwan Abeykoon  wrote:
>
>> Hi Megala, Sinthuja,
>> Thank you for the fix.
>> Yes, I am ok if things can be fixed in DS side.
>>
>> Have we checked any other JS which is loaded form external servers, which
>> might cause similar issues in future? We need to fix them too if there are
>> any.
>>
>> Cheers,
>> Ruwan
>>
>>
>> On Mon, May 30, 2016 at 1:21 PM, Sinthuja Ragendran 
>> wrote:
>>
>>> Hi Ruwan,
>>>
>>> As mentioned by megala folking shindig is not an option, it's simply
>>> calling for more trouble! Anyhow the fix done by megala fixes the issues in
>>> startup.
>>>
>>> Thanks,
>>> Sinthuja.
>>>
>>> On Mon, May 30, 2016 at 1:19 PM, Megala Uthayakumar 
>>> wrote:
>>>
 Hi All,

 Reason for error in new log[1] is that we did not remove the jquery
 feature which also requires the internet connection as we thought that
 feature is used by the shindig. But after a throughout testing we found
 that it can be removed. We have removed that feature in master branch
 now[2]. We can do a release for this.

 @Ruwan
 Why do we need to fork the shindig app? Since removing the feature from
 carbon-dashboard side is enough to avoid this error.

 [1] http://pastebin.com/raw/0EbCqN8v
 [2]
 https://github.com/wso2/carbon-dashboards/blob/e86f60e95b6206eb466bca5981799bb061098dd4/components/shindig-server/src/main/resources/features.txt

 On Mon, May 30, 2016 at 12:48 PM, Ruwan Abeykoon 
 wrote:

> Hi All,
> Can we fork the Shindig app and fix these issues in short term?
>
> It seems that shinding is not maintained any more[1]. So can we look
> for an alternative since the Gadgets is going to be a central component in
> our UIs within the platform?
>
> [1] https://shindig.apache.org/about_shindig_overview.html
>
> Cheers,
> Ruwan
>
>
>
> On Mon, May 30, 2016 at 12:36 PM, Fazlan Nazeem 
> wrote:
>
>> Hi,
>>
>> in APIM-analytics I have upgraded the carbon.dashboards.version and
>> shindig.version to fix the issue. The git diff of the changes is 
>> attached.
>>
>> log after the fix[1]
>> log prior to the fix[2]
>>
>> log[1] was verified to be fine by Megala. Please let me know if there
>> are any concerns.
>>
>> [1] http://pastebin.com/raw/0EbCqN8v
>> [2] http://pastebin.com/raw/w8sGjpM0
>>
>> On Sat, May 28, 2016 at 8:43 PM, Fazlan Nazeem 
>> wrote:
>>
>>> Sure will check.
>>>
>>> On Sat, May 28, 2016 at 8:37 PM, Nirmal Fernando 
>>> wrote:
>>>
 Thanks Deep. @Fazlan please check.

 On Sat, May 28, 2016 at 1:22 AM, Deependra Ariyadewa  wrote:

> This issue also exists in the  WSO2 API Manager Analytics
>  SNAPSHOT pack [1]
>
> [1] Build WSO2 API Manager Analytics - Distribution (May 27, 2016
> 3:24:17 PM)
>
> On Fri, May 27, 2016 at 1:08 AM, Bhathiya Jayasekara <
> bhath...@wso2.com> wrote:
>
>> Thanks.
>>
>> On Fri, May 27, 2016 at 10:37 AM, Megala Uthayakumar <
>> meg...@wso2.com> wrote:
>>
>>> We will do a release tonight.
>>>
>>> Thanks
>>>
>>> On Fri, May 27, 2016 at 10:33 AM, Bhathiya Jayasekara <
>>> bhath...@wso2.com> wrote:
>>>
 We still have carbon dashboard 1.0.15 in APIM. Will upgrade.
 When are you planning to release this?

 Thanks,
 Bhathiya

 On Fri, May 27, 2016 at 10:31 AM, Bhathiya Jayasekara <
 bhath...@wso2.com> wrote:

> +Ruwan
>
> On Fri, May 27, 2016 at 10:20 AM, Megala Uthayakumar <
> meg...@wso2.com> wrote:
>
>> Hi,
>> This fix is available in carbon-dashboards 1.0.17-SNAPSHOT.
>> Is APIM 2.0.0 SNAPSHOT uses the same version?
>>
>> Thanks.
>>
>> On Fri, May 27, 2016 at 10:02 AM, Deependra Ariyadewa <
>> d...@wso2.com> wrote:
>>
>>> This error still exists in the APIM 2.0.0 SNAPSHOT pack
>>> built on 26th May 2016.
>>>
>>> On Thu, May 19, 2016 at 11:54 PM, Megala Uthayakumar <
>>> meg...@wso2.com> wrote:
>>>
 Hi,

 We have 

Re: [Dev] [DEV][IS] User Store error while doing GREG performance testing in clustered setup

2016-06-01 Thread Kasun Bandara
Hi Thushara,

Seems like the root cause of the issue originates from the below
stack-trace.

*JDBCAuthorizationManager.java:1378)*
* at
org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isUserAuthorized(JDBCAuthorizationManager.java:168)*

As you said in the offline discussion this occurs when the number of
concurrent users increase from 80 to 100 right?. I think if you can debug
the *isUserAuthorized() *method in *JDBCAuthorizationManager *class*, *you
can the trace out the exact reason behind this concurrency issue*.* (debug
it in both the occasions : 80 Users and 100 Users)

Thanks,
Kasun.

On Wed, Jun 1, 2016 at 11:18 AM, Thushara Ranawaka 
wrote:

> Hi Everyone,
>
> This is continuously reproducible for 100 concurrent users in a single
> node G-Reg setup.
> Any idea of why this is happen.
>
> TID: [-1234] [] [2016-05-30 13:12:07,771] ERROR
> {org.wso2.carbon.user.core.common.AbstractUserStoreManager} -  Error
> occurred while accessing Java Security Manager Privilege Block
> {org.wso2.carbon.user.core.common.AbstractUserStoreManager}
> TID: [-1234] [] [2016-05-30 13:13:00,324] ERROR
> {org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager} -  Error
> occurred while accessing Java Security Manager Privilege Block
> {org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager}
> TID: [-1234] [] [2016-05-30 13:13:03,183] ERROR {rxt-permissions} -
>  org.mozilla.javascript.WrappedException: Wrapped
> org.wso2.carbon.user.core.UserStoreException: Error occurred while
> accessing Java Security Manager Privilege Block (eval code#1(eval)#86)
> at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
> at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
> at
> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_52(/scripts/permissions/permissions.js:594)
> at
> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
> at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
> at
> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_53(/scripts/permissions/permissions.js:637)
> at
> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
> at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
> at
> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_54(/scripts/permissions/permissions.js:658)
> at
> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
> at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
> at
> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_60(/scripts/permissions/permissions.js:751)
> at
> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
> at
> org.jaggeryjs.rhino.store.modules.c5._c_anonymous_8(/store/modules/page-decorators.js:200)
> at
> org.jaggeryjs.rhino.store.modules.c5.call(/store/modules/page-decorators.js)
> at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
>
>
>
>
> Caused by: org.wso2.carbon.user.core.UserStoreException: Error occurred
> while accessing Java Security Manager Privilege Block
> at
> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.callSecure(JDBCAuthorizationManager.java:1378)
> at
> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isUserAuthorized(JDBCAuthorizationManager.java:168)
> at sun.reflect.GeneratedMethodAccessor195.invoke(Unknown Source)
>
> Thanks,
> Thushara.
>
> On Thu, Mar 31, 2016 at 9:27 AM, Danesh Kuruppu  wrote:
>
>> Hi all,
>>
>> I am currently doing GREG performance testing in clustered setup. It is a
>> two nodes cluster fronted with nginx and we have enabled sticky sessions.
>> We have JDBC user store (mysql DB) shared with both nodes.
>>
>> User store exception[1][2] occurred while performing asset crud operation
>> in publisher for 20+ concurrent users.
>>
>> Any idea of why this is happen.
>> Thanks
>> Danesh
>>
>> [1]
>> Caused by: org.wso2.carbon.user.core.UserStoreException: Error occurred
>> while accessing Java Security Manager Privilege Block
>> at
>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.callSecure(JDBCAuthorizationManager.java:1378)
>> at
>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isUserAuthorized(JDBCAuthorizationManager.java:168)
>> at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>> ... 99 more
>> Caused by: 

Re: [Dev] Retrieving OAuth2 app details during DCR request

2016-06-01 Thread Gayan Gunawardana
Adding Harsha.

On Wed, Jun 1, 2016 at 4:04 PM, Kaveesha Perera  wrote:

> Hi,
>
> I'm working on a bug in APIM of Dynamic client registration as explained
> in [1]. There I'm going to retrieve the relevant  OAuth2 app  details when
> a user trying to send a DCR request for an already existing Application.
> For that I need to get the OAuth application information present in the
> Inbound authentication configuration of the created service Provider.
>
> I have used below two methods to get the oauth2 app details.
>
>  1.getInboundAuthenticationConfig()  -Derive the client id from the
> service provider
>
> 2.updateApplication(OAuthAppRequest appInfoDTO)-Derive other additional oauth2
> information of the service porivder
>
>
> Is the above approach correct or is there a better way of doing it?
>
> [1] [Architecture] Behavior of OAuth 2.0 Dynamic Client Registration
>
>
> --
> Kaveesha Perera
> Intern - Software Engineering
>
> mobile: 0716130471
>



-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Help setup SSO in APIM

2016-06-01 Thread Thilini Cooray
Hi,

As per the discussion in [1], this issue can arise due to a certificate
mismatch of portal and your IdP.
Can you please check whether you can follow suggested solutions?

[1] http://mail.wso2.org/mailarchive/dev/2015-January/042262.html

Thanks.

On Wed, Jun 1, 2016 at 2:08 PM, Megala Uthayakumar  wrote:

> Hi Farasath,
>
> I have used only response signing on. But still I have the same issue.
>
> Thanks.
>
> On Wed, Jun 1, 2016 at 12:46 PM, Farasath Ahamed 
> wrote:
>
>> Hi Megala,
>>
>> Have you enabled Signature validation for Authentication requests?  If so
>> can you try the scenario with only Response signing on and see if it works
>> for tenants as well.
>>
>>
>> Thanks,
>>
>> Farasath Ahamed
>> Software Engineer,
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>>
>> Email: farasa...@wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 
>>
>> On Wed, Jun 1, 2016 at 12:04 PM, Ruwan Abeykoon  wrote:
>>
>>> Hi All,
>>> We embedded the dashboard not using SSO, but with custom Jaggery page
>>> inside "admin-dashboard" app. So the authentication session with
>>> "admin-dashboard" is sufficient for all auth/authz purpose. Hence the above
>>> problem does not arise.
>>>
>>> Therefore that work is not technically related to this thread.
>>>
>>> Cheers,
>>> Ruwan
>>>
>>> On Wed, Jun 1, 2016 at 11:55 AM, Megala Uthayakumar 
>>> wrote:
>>>
 ok. I will check with him. Thanks

 On Wed, Jun 1, 2016 at 11:46 AM, Nuwan Dias  wrote:

> Ruwan worked on embedding the portal within the admin-dashboard. Can
> you please talk to him and see what this means in that context?
>
> On Wed, Jun 1, 2016 at 11:43 AM, Megala Uthayakumar 
> wrote:
>
>> No. This is the portal coming from carbon-dashboard feature. It is
>> different from admin-dashboard. Please see the screen-shot thanks.
>>
>> On Wed, Jun 1, 2016 at 11:36 AM, Nuwan Dias  wrote:
>>
>>> Portal in the sense admin-dashboard right?
>>>
>>> On Wed, Jun 1, 2016 at 11:33 AM, Megala Uthayakumar >> > wrote:
>>>
 I have already mounted the registry and publisher app is working
 fine in tenant mode as well. This issue only exists in the portal app.

 Thanks.

 Regards,
 Megala

 On Wed, Jun 1, 2016 at 11:26 AM, Nuwan Dias 
 wrote:

> You need to share the same registry (mount registries) between IS
> and APIM to make this work for tenants.
>
> Its because tenants have their key stores in the registry and the
> SAML response is signed using the key in this key store. If they don't
> share the registry signing will be done by one key and verification 
> will be
> done by a non-matching public key. Hence, signature validation will 
> fail.
>
> Disabling signature validation poses a security threat. Therefore
> its not recommended to do that.
>
> Thanks,
> NuwanD.
>
> On Wed, Jun 1, 2016 at 11:16 AM, Megala Uthayakumar <
> meg...@wso2.com> wrote:
>
>> It is working when I remove that signature validation part from
>> acs.jag
>>
>> On Wed, Jun 1, 2016 at 9:35 AM, Udara Rathnayake > > wrote:
>>
>>>
>>>
>>> On Wed, Jun 1, 2016 at 8:53 AM, Megala Uthayakumar <
>>> meg...@wso2.com> wrote:
>>>
 Hi All,

 I am trying to configure SSO in APIM 2.0.x by following [1].
 Publisher and Store jaggery apps work as expected but when I try 
 to login
 to portal app(Portal of Dashboard Server) using SSO, it works fine 
 when I
 am logging in as super-tenant user but whenever I try to login in 
 as a user
 from other tenants, it throws following error,

 org.opensaml.xml.validation.ValidationException: Signature did
 not validate against the credential's key

>>> ​For the moment, shall we disable the signature validation and
>>> try?​
>>>
>>>
 at
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:79)
 at
 org.jaggeryjs.modules.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

[Dev] Retrieving OAuth2 app details during DCR request

2016-06-01 Thread Kaveesha Perera
Hi,

I'm working on a bug in APIM of Dynamic client registration as explained in
[1]. There I'm going to retrieve the relevant  OAuth2 app  details when a
user trying to send a DCR request for an already existing Application. For
that I need to get the OAuth application information present in the Inbound
authentication configuration of the created service Provider.

I have used below two methods to get the oauth2 app details.

 1.getInboundAuthenticationConfig()  -Derive the client id from the service
provider

2.updateApplication(OAuthAppRequest appInfoDTO)-Derive other additional oauth2
information of the service porivder


Is the above approach correct or is there a better way of doing it?

[1] [Architecture] Behavior of OAuth 2.0 Dynamic Client Registration


-- 
Kaveesha Perera
Intern - Software Engineering

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


Re: [Dev] [MSF4J] Swagger documentation not working when using OSGi components.

2016-06-01 Thread Hemika Kodikara
Hi Azeez/Samiyuru,

Please review the following PR[1] and merge for the mentioned issue[2] :

[1] - https://github.com/wso2/msf4j/pull/172
[2] - https://wso2.org/jira/browse/WMS-68

Regards,
Hemika

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

Mobile : +9477762

On Mon, May 23, 2016 at 1:58 PM, Afkham Azeez  wrote:

> Yes, we have an issue with getting the libraries working in OSGi. I will
> look into it.
>
> On Mon, May 23, 2016 at 12:26 PM, Hemika Kodikara  wrote:
>
>> Hi All,
>>
>> I have added the swagger documentation to my microservice. But I am
>> unable to get the documentation generated through the browser.
>>
>> It seems the swagger definition service is only being added through the
>> MicroserviceRunner class[1].
>>
>> [1] -
>> https://github.com/wso2/msf4j/blob/master/core/src/main/java/org/wso2/msf4j/MicroservicesRunner.java#L151
>>
>> Regards,
>> Hemika
>>
>> Hemika Kodikara
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middleware
>> http://wso2.com
>>
>> Mobile : +9477762
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM 2.0.0-SNAPSHOT Nightly build - 27/05/2016

2016-06-01 Thread Ushani Balasooriya
Thanks Bhathiya.

On Wed, Jun 1, 2016 at 2:53 PM, Bhathiya Jayasekara 
wrote:

> Hi Ushani,
>
> Please find p2-repo here[1].
>
> [1]
> https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/p2-repos/pre-beta/p2-repo.zip
>
> Thanks,
> Bhathiya
>
> On Mon, May 30, 2016 at 10:54 AM, Bhathiya Jayasekara 
> wrote:
>
>> Hi Ushani,
>>
>> The blocker from IS side is resolved now. So I can provide it within the
>> week.
>>
>> Thanks,
>> Bhathiya
>>
>> On Mon, May 30, 2016 at 8:45 AM, Ushani Balasooriya 
>> wrote:
>>
>>> Hi Bhathiya,
>>>
>>> Any update on P2 repo? It would be great if we can have it early this
>>> week since we are almost done with our setup and would be great to point it
>>> to IS as Key Manager.
>>>
>>> Thanks,
>>>
>>> On Fri, May 27, 2016 at 10:07 PM, Bhathiya Jayasekara >> > wrote:
>>>
 Hi all,

 Please find APIM 2.0.0 SNAPSHOT nightly build here[1].

 [1]
 https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/wso2am-2.0.0-SNAPSHOT-27-05-2016.zip

 Thanks,

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

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


>>>
>>>
>>> --
>>> *Ushani Balasooriya*
>>> Senior Software Engineer - QA;
>>> WSO2 Inc; http://www.wso2.com/.
>>> Mobile; +94772636796
>>>
>>>
>>
>>
>> --
>> *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
>> *
>>
>
>
>
> --
> *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
> *
>



-- 
*Ushani Balasooriya*
Senior Software Engineer - QA;
WSO2 Inc; http://www.wso2.com/.
Mobile; +94772636796
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM 2.0.0-SNAPSHOT Nightly build - 27/05/2016

2016-06-01 Thread Bhathiya Jayasekara
Hi Ushani,

Please find p2-repo here[1].

[1]
https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/p2-repos/pre-beta/p2-repo.zip

Thanks,
Bhathiya

On Mon, May 30, 2016 at 10:54 AM, Bhathiya Jayasekara 
wrote:

> Hi Ushani,
>
> The blocker from IS side is resolved now. So I can provide it within the
> week.
>
> Thanks,
> Bhathiya
>
> On Mon, May 30, 2016 at 8:45 AM, Ushani Balasooriya 
> wrote:
>
>> Hi Bhathiya,
>>
>> Any update on P2 repo? It would be great if we can have it early this
>> week since we are almost done with our setup and would be great to point it
>> to IS as Key Manager.
>>
>> Thanks,
>>
>> On Fri, May 27, 2016 at 10:07 PM, Bhathiya Jayasekara 
>> wrote:
>>
>>> Hi all,
>>>
>>> Please find APIM 2.0.0 SNAPSHOT nightly build here[1].
>>>
>>> [1]
>>> https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/wso2am-2.0.0-SNAPSHOT-27-05-2016.zip
>>>
>>> Thanks,
>>>
>>> --
>>> *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
>>> *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Ushani Balasooriya*
>> Senior Software Engineer - QA;
>> WSO2 Inc; http://www.wso2.com/.
>> Mobile; +94772636796
>>
>>
>
>
> --
> *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
> *
>



-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DS] UI Design - Multiple views support for page based on roles (Designer View)

2016-06-01 Thread Udara Rathnayake
On Wed, Jun 1, 2016 at 11:51 AM, Tanya Madurapperuma  wrote:

> Hi,
>
> On Wed, Jun 1, 2016 at 11:09 AM, Udara Rathnayake  wrote:
>
>> Hi Tanya,
>>
>> On Wed, Jun 1, 2016 at 10:56 AM, Tanya Madurapperuma 
>> wrote:
>>
>>> Hi Udara,
>>>
>>> From where can we select the layout for the view? Or do we enforce using
>>> the same layout for all the views of a single page?
>>>
>> ​We should open the layout selection panel and move to the newly created
>> tab (role based view) once user select the role(s) and create the view​
>> ​.​
>>
>> ​I think we should not restrict and enforce the same layout.
>>
> My question was because I assume a user has to click on (+) to create a
> new view. If so I believe we have to have the UI design for getting layout
> selection pane as well, because it is not same as getting it for creating a
> new page.
>
​Ya I missed the layout selection part in above design.​

​Hope above explanation clarifies your doubts.​

>
>>> On Tue, May 31, 2016 at 9:09 PM, Udara Rathnayake 
>>> wrote:
>>>
 Thanks Dakshika & Sinthuja.

 On Tue, May 31, 2016 at 7:10 PM, Sinthuja Ragendran 
 wrote:

> Hi Udara,
>
> As discussed offline we need to have following as well.
>
> - A name for each view so that if a user could see both views he/she
> should be able switch.
> - A default view should not be existing, and that should be associated
> with roles selection option when the 'role based view' option is selected
> in the left pane.
>
 ​We have to revisit this a bit. Assume a scenario, where dashboard
 designer already have a default view.​

 ​At that point we should not just disable the default view and provide
 role selection option.

>>> Even if they have a default view, they should have set a viewers role in
>>> the dashboard settings page. So can't we use that role as the roles for
>>> that page and get rid of default view.
>>>
>> Since we are bringing gadget level roles now, we might have to remove
>> some gadgets from the default view in that case. This might confuse the
>> designer. ​
>>
>>
> We need to have a verdict on this. Say based on the gadget level roles
> dashboard designer can see gadget A, B and C. And he is going to design a
> dashboard for a viewer and that viewer is authorized to see gadget A, B and
> D. But the gadget D will not be in the gadget listing for designer as he is
> not authorized to see that gadget. But gadget C will be in the designers
> listing even though viewer is not authorized to see the gadget C. How does
> having a default view solve this problem?
>
​We had an offline chat yesterday regarding this. Megala is going to setup
a meeting this friday and let's include this discussion also.  ​


> Thanks,
>>> Tanya
>>>

 - As Dakshika mentioned, the view tab settings will be required to
> edit/update as well.
> - During the personalization of dashboard mode, we shouldn't show the
> options of editing the roles, etc for a view table, and only show the view
> names in the tabs. Hence the user can't actually do any changes to the 
> view
> or anything, but he/she can add or delete gadgets, change layout, etc
> according to their personal interest.
>
> Thanks,
> Sinthuja.
>
>
> On Tue, May 31, 2016 at 2:33 PM, Udara Rathnayake 
> wrote:
>
>> Hi,
>>
>> Came up with following modifications to the existing dashboard
>> designer UI to cater the $Subject.
>>
>> Designer can select and enable page view based on role(s) from the
>> settings.
>>
>>
>> ​
>> ​Once this is enabled, we can update the dashboard designer with a
>> drop down where dashboard designer can select a role and create the
>> particular view. When the dashboard designer browse gadgets/widgets 
>> section
>> from this particular view(role based), we should only list down gadgets
>> enabled for the selected role(have to come up with a gadget level config
>> for this).
>>
>>
>>
>> ​ ​
>> This role list can be a simple drop down (if we support one role per
>> page) or can be a list with check-boxes, so we can support multiple roles
>> per page view. (gadget listing for particular view should be the union of
>> selected roles)
>>
>>
>> ​
>>  Designer UI after adding a role based page view,
>>
>>
>> ​
>>
>> ​Appreciate your feedback on this.
>> ​
>>
>> --
>> Regards,
>> UdaraR
>>
>
>
>
> --
> *Sinthuja Rajendran*
> Associate Technical Lead
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>


 --
 Regards,
 UdaraR

>>>
>>>
>>>
>>> --
>>> Tanya Madurapperuma
>>>
>>> Senior Software Engineer,

Re: [Dev] [GSoC 2016]Proposal 03: [ML]Visual(Deep) Neural Network Builder -Project Progress

2016-06-01 Thread Upul Bandara
Hi,

Good progress.

The key parts of the project are designing the front-end of NN builder,
communicating between the front-end and the Deeplearning4J back-end.
So at this stage of the project, it is better to put your effort on above
the components. Later, we can integrate what you have built with WSO2
Machine Learning server.

Once you have completed a basic NN builder (ability to build a simple
feedforward  is enough) we would like to have a quick demo.

Let me know if you have further questions or clarifications.

Thanks,
Upul

On Wed, Jun 1, 2016 at 10:42 AM, Lakini Senanayaka <
lakinisenanayak...@gmail.com> wrote:

> Hi,
>
> I'm sorry for the late response.Thank you very much for the last email.I
> have gone through JQueryUI and I have implemented some samples using
> JQueryUI.I have gone through the  WSO2 machine learner and I have
> identified the place to insert this jaggery page(replace the
> hyper-parameter page in the ML UI).
> Currently I'm designing the sketch of the Deep Neural Network Builder-the
> front end.
> I'll send my sketch before tonight.Based on your comments I can start
> implementations.
>
> Thank you.
>
>
> On Wed, Jun 1, 2016 at 9:29 AM, Supun Sethunga  wrote:
>
>> Hi Lakini,
>>
>> Any update on the progress?
>>
>> Regards,
>> Supun
>>
>> On Fri, May 27, 2016 at 5:34 PM, Supun Sethunga  wrote:
>>
>>> Hi Lakini,
>>>
>>> Sorry for the delayed response. As the first part of the project, you
>>> can start the work on the UI/drag and drop feature, as the core of your
>>> project is based around that. Therefore, shall we try to get a basic
>>> version of drag and drop UI, by the mid-term evaluation? (No need to
>>> connect the UI with the dl4j, for the first phase)  So this would be
>>> include:
>>>
>>>- A link/re-direct to go to Visual builder, upon selecting the
>>>Neural Netowrks (as the algorithm)
>>>- The drawing/dropping area and a panel to pick the objects to be
>>>dragged (objects as in, nodes, layers, links, etc)
>>>
>>> This drag and drop page should replace the hyper-parameter page in the
>>> ML UI. More precisely, In the Machine Learner wizard, when a user picks the
>>> algorithm name as Neural Network, and proceed, this drag and drop page
>>> should be prompted instead of the hyper-parameters page. You can create the
>>> overall page as a jaggery page (.jag). It would be easier for you to get a
>>> copy of an existing page, and modifying the content. That will preserve the
>>> existing styles, session handling etc.
>>>
>>> Please feel free to raise any question you come across during
>>> implementing.
>>>
>>> Regards,
>>> Supun
>>>
>>> On Tue, May 24, 2016 at 8:09 PM, Lakini Senanayaka <
>>> lakinisenanayak...@gmail.com> wrote:
>>>
 Hi,

 Thank you very much for the suggestions.I will be using JQueryUI.

 As my coding period started yesterday according to the GSoC Schedule  I
 would like to know the workload that should be completed
 before the midterm evaluation. Please advise me accordingly.

 Thank you.


 On Tue, May 24, 2016 at 10:34 AM, Supun Sethunga 
 wrote:

> Hi Lakini,
>
> Yes you can use any of them, with open source licence. But I would
> prefer JQueryUI, as its a well known library, and is already been used by
> some of the wso2 products.
>
> Regards,
> Supun
>
> On Tue, May 24, 2016 at 9:29 AM, Lakini Senanayaka <
> lakinisenanayak...@gmail.com> wrote:
>
>> Hi,
>>
>> I have found some libraries to build drag and drop UI for our front
>> end .They are JQury UI[1],Dragula[2],Draggablily[3].
>> I hope I can do the developments using these libraries.
>>
>> [1]jqueryui 
>> [2]dragula 
>> [3]draggabilly 
>>
>> Could you please tell me if you have any other suggestions?
>>
>> On Sat, May 21, 2016 at 11:05 PM, Lakini Senanayaka <
>> lakinisenanayak...@gmail.com> wrote:
>>
>>> Hi ,
>>>
>>> This is my weekly progress update of my project.
>>>
>>> I have solved all the problems I have mentioned  in the last email.I
>>> could find a class BaseDatasetIterator which is in DL4J where we can 
>>> find
>>> inbuilt iterators for CurvesDataSetIterator, IrisDataSetIterator,
>>> MnistDataSetIterator, MovingWindowBaseDataSetIterator,
>>> RawMnistDataSetIterator .There is no iterator for CIFAR dataset yet.
>>>
>>> I have gone through the whole documentation except Deeplearning4j on
>>> Spark.The latest documentation is very understandable than the earlier
>>> one.I have studied neural networks-  Restricted Boltzmann Machines,
>>> Convolutional Nets (ConvNets),
>>> Long Short-Term Memory Units (LSTMs),
>>> Denoising Autoencoders,
>>>  

Re: [Dev] Help setup SSO in APIM

2016-06-01 Thread Megala Uthayakumar
Hi Farasath,

I have used only response signing on. But still I have the same issue.

Thanks.

On Wed, Jun 1, 2016 at 12:46 PM, Farasath Ahamed  wrote:

> Hi Megala,
>
> Have you enabled Signature validation for Authentication requests?  If so
> can you try the scenario with only Response signing on and see if it works
> for tenants as well.
>
>
> Thanks,
>
> Farasath Ahamed
> Software Engineer,
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
> Email: farasa...@wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
>
> On Wed, Jun 1, 2016 at 12:04 PM, Ruwan Abeykoon  wrote:
>
>> Hi All,
>> We embedded the dashboard not using SSO, but with custom Jaggery page
>> inside "admin-dashboard" app. So the authentication session with
>> "admin-dashboard" is sufficient for all auth/authz purpose. Hence the above
>> problem does not arise.
>>
>> Therefore that work is not technically related to this thread.
>>
>> Cheers,
>> Ruwan
>>
>> On Wed, Jun 1, 2016 at 11:55 AM, Megala Uthayakumar 
>> wrote:
>>
>>> ok. I will check with him. Thanks
>>>
>>> On Wed, Jun 1, 2016 at 11:46 AM, Nuwan Dias  wrote:
>>>
 Ruwan worked on embedding the portal within the admin-dashboard. Can
 you please talk to him and see what this means in that context?

 On Wed, Jun 1, 2016 at 11:43 AM, Megala Uthayakumar 
 wrote:

> No. This is the portal coming from carbon-dashboard feature. It is
> different from admin-dashboard. Please see the screen-shot thanks.
>
> On Wed, Jun 1, 2016 at 11:36 AM, Nuwan Dias  wrote:
>
>> Portal in the sense admin-dashboard right?
>>
>> On Wed, Jun 1, 2016 at 11:33 AM, Megala Uthayakumar 
>> wrote:
>>
>>> I have already mounted the registry and publisher app is working
>>> fine in tenant mode as well. This issue only exists in the portal app.
>>>
>>> Thanks.
>>>
>>> Regards,
>>> Megala
>>>
>>> On Wed, Jun 1, 2016 at 11:26 AM, Nuwan Dias  wrote:
>>>
 You need to share the same registry (mount registries) between IS
 and APIM to make this work for tenants.

 Its because tenants have their key stores in the registry and the
 SAML response is signed using the key in this key store. If they don't
 share the registry signing will be done by one key and verification 
 will be
 done by a non-matching public key. Hence, signature validation will 
 fail.

 Disabling signature validation poses a security threat. Therefore
 its not recommended to do that.

 Thanks,
 NuwanD.

 On Wed, Jun 1, 2016 at 11:16 AM, Megala Uthayakumar <
 meg...@wso2.com> wrote:

> It is working when I remove that signature validation part from
> acs.jag
>
> On Wed, Jun 1, 2016 at 9:35 AM, Udara Rathnayake 
> wrote:
>
>>
>>
>> On Wed, Jun 1, 2016 at 8:53 AM, Megala Uthayakumar <
>> meg...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I am trying to configure SSO in APIM 2.0.x by following [1].
>>> Publisher and Store jaggery apps work as expected but when I try to 
>>> login
>>> to portal app(Portal of Dashboard Server) using SSO, it works fine 
>>> when I
>>> am logging in as super-tenant user but whenever I try to login in 
>>> as a user
>>> from other tenants, it throws following error,
>>>
>>> org.opensaml.xml.validation.ValidationException: Signature did
>>> not validate against the credential's key
>>>
>> ​For the moment, shall we disable the signature validation and
>> try?​
>>
>>
>>> at
>>> org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:79)
>>> at
>>> org.jaggeryjs.modules.sso.common.util.Util.validateSignature(Util.java:290)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>>> at
>>> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
>>> at
>>> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>>> at
>>> org.jaggeryjs.rhino..scripts.c0._c_anonymous_3(/scripts/sso.client.js:57)
>>> at
>>> 

Re: [Dev] [ESB] Twitter Connector and Inbound

2016-06-01 Thread Anoukh Jayawardena
Hi Kathees,

Understood. I will try it out.

Thanks,
Anoukh

On Wed, Jun 1, 2016 at 1:03 PM, Kathees Rajendram  wrote:

> Hi Anoukh,
>
> Before sending the stream data to CEP, you can filter the stream data in
> ESB. In twitter inbound endpoint, use the track operation. From the output,
> you can filter the stream for the particular ID using Xpath expression.
>
> Thanks,
> Kathees
>
> On Wed, Jun 1, 2016 at 12:37 PM, Anoukh Jayawardena 
> wrote:
>
>> Hi Kathees,
>>
>> Yes, since twitter API doesn't have AND operation what we can do is a
>> "filter" process. As you said, we are using the track operation only and
>> from this stream we read the user ID and filter the ones we need. We do
>> this manual filtering in CEP currently. If we pass the follower ID to
>> another inbound endpoint, wouldn't we get all the tweets that this person
>> sent?
>>
>> Regards,
>> Anoukh
>>
>> On Tue, May 31, 2016 at 6:45 PM, Kathees Rajendram 
>> wrote:
>>
>>> Hi Anoukh,
>>>
>>> The twitter streaming API [1] provides the filter operation with the
>>> track follow, and locations fields are combined with an OR operator.
>>> Twitter streaming API doesn’t have AND operation.
>>>
>>> Can you try with two twitter inbound endpoints and twitter connector, In
>>> a inbound endpoint, use the track operation to get the public stream with
>>> the keyword. In ESB, the streaming output data are injected to a sequence.
>>> From the output you can read user or follower ID. If there are
>>> no follower ID, use the twitter connector method to retrieve the follower
>>> ID. In second twitter Inbound endpoint, pass the follower ID with comma
>>> separator to retrieve follower's streaming data.
>>>
>>> [1] - https://dev.twitter.com/streaming/reference/post/statuses/filter
>>>
>>> [2] -
>>> https://docs.wso2.com/display/ESBCONNECTORS/Configuring+Twitter+Inbound+Operations
>>>
>>> Thanks,
>>> Kathees
>>>
>>> On Tue, May 31, 2016 at 5:51 PM, Anoukh Jayawardena 
>>> wrote:
>>>
 Hi

 There is a use case in the US Election analytic app (refer
 https://wso2.com/election2016/) to use twitter.track and
 twitter.follow parameters together.
 This is to pull the tweets of certain accounts (hence the
 twitter.follow) that include certain words (hence the twitter.track). So
 requirement is twitter.follow AND twitter.track.
 These two operations are combined using an "OR" operation from twitter
 API itself (refer
 https://dev.twitter.com/streaming/reference/post/statuses/filter).
 Is there a way we can support "AND" operation within ESB?

 Currently we only do the twitter.follow operation from ESB and filter
 the words manually from the stream.


 Regards
 Anoukh Jayawardena
 --
 Anoukh Jayawardena
 *Software Engineer - Intern*
 Mobile : +94779928932
 ano...@wso2.com

>>>
>>>
>>>
>>> --
>>> Kathees
>>> Software Engineer,
>>> email: kath...@wso2.com
>>> mobile: +94772596173
>>>
>>
>>
>>
>> --
>> Anoukh Jayawardena
>> *Software Engineer - Intern*
>> Mobile : +94779928932
>> ano...@wso2.com
>>
>
>
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173
>



-- 
Anoukh Jayawardena
*Software Engineer - Intern*
Mobile : +94779928932
ano...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][IS] User Store error while doing GREG performance testing in clustered setup

2016-06-01 Thread Thushara Ranawaka
Hi Chaminda,

Yes, I agree with Chandana. I didn't see any hazelcast[1] related errors in
the stack-trace.

[1] - HazelcastException

Thanks,
Thushara.

On Wed, Jun 1, 2016 at 1:20 PM, Chandana Napagoda  wrote:

> Hi Chaminda,
>
> I don't think REGISTRY-3430 [1]
> and above issue are sameone.
>
> @Thushara, Is the complete stack traces same as  in REGISTRY-3430?
>
> [1]. https://wso2.org/jira/browse/WSAS-2019
>
> On Wed, Jun 1, 2016 at 12:11 PM, Chaminda Jayawardena 
> wrote:
>
>> I noticed same during GREG5.2.0 Release testing, reported in [1] and also
>> couldn't find the exact cause for the issue.
>>
>> [1] https://wso2.org/jira/browse/REGISTRY-3430
>>
>> On Wed, Jun 1, 2016 at 11:18 AM, Thushara Ranawaka 
>> wrote:
>>
>>> Hi Everyone,
>>>
>>> This is continuously reproducible for 100 concurrent users in a single
>>> node G-Reg setup.
>>> Any idea of why this is happen.
>>>
>>> TID: [-1234] [] [2016-05-30 13:12:07,771] ERROR
>>> {org.wso2.carbon.user.core.common.AbstractUserStoreManager} -  Error
>>> occurred while accessing Java Security Manager Privilege Block
>>> {org.wso2.carbon.user.core.common.AbstractUserStoreManager}
>>> TID: [-1234] [] [2016-05-30 13:13:00,324] ERROR
>>> {org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager} -  Error
>>> occurred while accessing Java Security Manager Privilege Block
>>> {org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager}
>>> TID: [-1234] [] [2016-05-30 13:13:03,183] ERROR {rxt-permissions} -
>>>  org.mozilla.javascript.WrappedException: Wrapped
>>> org.wso2.carbon.user.core.UserStoreException: Error occurred while
>>> accessing Java Security Manager Privilege Block (eval code#1(eval)#86)
>>> at
>>> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
>>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
>>> at
>>> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
>>> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>>> at
>>> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_52(/scripts/permissions/permissions.js:594)
>>> at
>>> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
>>> at
>>> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>>> at
>>> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_53(/scripts/permissions/permissions.js:637)
>>> at
>>> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
>>> at
>>> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>>> at
>>> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_54(/scripts/permissions/permissions.js:658)
>>> at
>>> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
>>> at
>>> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>>> at
>>> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_60(/scripts/permissions/permissions.js:751)
>>> at
>>> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
>>> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>>> at
>>> org.jaggeryjs.rhino.store.modules.c5._c_anonymous_8(/store/modules/page-decorators.js:200)
>>> at
>>> org.jaggeryjs.rhino.store.modules.c5.call(/store/modules/page-decorators.js)
>>> at
>>> org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
>>>
>>>
>>>
>>>
>>> Caused by: org.wso2.carbon.user.core.UserStoreException: Error occurred
>>> while accessing Java Security Manager Privilege Block
>>> at
>>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.callSecure(JDBCAuthorizationManager.java:1378)
>>> at
>>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isUserAuthorized(JDBCAuthorizationManager.java:168)
>>> at sun.reflect.GeneratedMethodAccessor195.invoke(Unknown Source)
>>>
>>> Thanks,
>>> Thushara.
>>>
>>> On Thu, Mar 31, 2016 at 9:27 AM, Danesh Kuruppu  wrote:
>>>
 Hi all,

 I am currently doing GREG performance testing in clustered setup. It is
 a two nodes cluster fronted with nginx and we have enabled sticky sessions.
 We have JDBC user store (mysql DB) shared with both nodes.

 User store exception[1][2] occurred while performing asset crud
 operation in publisher for 20+ concurrent users.

 Any idea of why this is happen.
 Thanks
 Danesh

 [1]
 Caused by: org.wso2.carbon.user.core.UserStoreException: Error occurred
 while accessing Java Security Manager Privilege Block
 at
 org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.callSecure(JDBCAuthorizationManager.java:1378)
 at
 org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isUserAuthorized(JDBCAuthorizationManager.java:168)
 at 

Re: [Dev] [DEV][IS] User Store error while doing GREG performance testing in clustered setup

2016-06-01 Thread Chandana Napagoda
Hi Chaminda,

I don't think REGISTRY-3430 [1]
and above issue are sameone.

@Thushara, Is the complete stack traces same as  in REGISTRY-3430?

[1]. https://wso2.org/jira/browse/WSAS-2019

On Wed, Jun 1, 2016 at 12:11 PM, Chaminda Jayawardena 
wrote:

> I noticed same during GREG5.2.0 Release testing, reported in [1] and also
> couldn't find the exact cause for the issue.
>
> [1] https://wso2.org/jira/browse/REGISTRY-3430
>
> On Wed, Jun 1, 2016 at 11:18 AM, Thushara Ranawaka 
> wrote:
>
>> Hi Everyone,
>>
>> This is continuously reproducible for 100 concurrent users in a single
>> node G-Reg setup.
>> Any idea of why this is happen.
>>
>> TID: [-1234] [] [2016-05-30 13:12:07,771] ERROR
>> {org.wso2.carbon.user.core.common.AbstractUserStoreManager} -  Error
>> occurred while accessing Java Security Manager Privilege Block
>> {org.wso2.carbon.user.core.common.AbstractUserStoreManager}
>> TID: [-1234] [] [2016-05-30 13:13:00,324] ERROR
>> {org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager} -  Error
>> occurred while accessing Java Security Manager Privilege Block
>> {org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager}
>> TID: [-1234] [] [2016-05-30 13:13:03,183] ERROR {rxt-permissions} -
>>  org.mozilla.javascript.WrappedException: Wrapped
>> org.wso2.carbon.user.core.UserStoreException: Error occurred while
>> accessing Java Security Manager Privilege Block (eval code#1(eval)#86)
>> at
>> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
>> at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
>> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>> at
>> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_52(/scripts/permissions/permissions.js:594)
>> at
>> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
>> at
>> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>> at
>> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_53(/scripts/permissions/permissions.js:637)
>> at
>> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
>> at
>> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>> at
>> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_54(/scripts/permissions/permissions.js:658)
>> at
>> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
>> at
>> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>> at
>> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_60(/scripts/permissions/permissions.js:751)
>> at
>> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
>> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>> at
>> org.jaggeryjs.rhino.store.modules.c5._c_anonymous_8(/store/modules/page-decorators.js:200)
>> at
>> org.jaggeryjs.rhino.store.modules.c5.call(/store/modules/page-decorators.js)
>> at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
>>
>>
>>
>>
>> Caused by: org.wso2.carbon.user.core.UserStoreException: Error occurred
>> while accessing Java Security Manager Privilege Block
>> at
>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.callSecure(JDBCAuthorizationManager.java:1378)
>> at
>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isUserAuthorized(JDBCAuthorizationManager.java:168)
>> at sun.reflect.GeneratedMethodAccessor195.invoke(Unknown Source)
>>
>> Thanks,
>> Thushara.
>>
>> On Thu, Mar 31, 2016 at 9:27 AM, Danesh Kuruppu  wrote:
>>
>>> Hi all,
>>>
>>> I am currently doing GREG performance testing in clustered setup. It is
>>> a two nodes cluster fronted with nginx and we have enabled sticky sessions.
>>> We have JDBC user store (mysql DB) shared with both nodes.
>>>
>>> User store exception[1][2] occurred while performing asset crud
>>> operation in publisher for 20+ concurrent users.
>>>
>>> Any idea of why this is happen.
>>> Thanks
>>> Danesh
>>>
>>> [1]
>>> Caused by: org.wso2.carbon.user.core.UserStoreException: Error occurred
>>> while accessing Java Security Manager Privilege Block
>>> at
>>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.callSecure(JDBCAuthorizationManager.java:1378)
>>> at
>>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isUserAuthorized(JDBCAuthorizationManager.java:168)
>>> at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>>> ... 99 more
>>> Caused by: java.security.PrivilegedActionException:

Re: [Dev] [ESB] Twitter Connector and Inbound

2016-06-01 Thread Kathees Rajendram
Hi Anoukh,

Before sending the stream data to CEP, you can filter the stream data in
ESB. In twitter inbound endpoint, use the track operation. From the output,
you can filter the stream for the particular ID using Xpath expression.

Thanks,
Kathees

On Wed, Jun 1, 2016 at 12:37 PM, Anoukh Jayawardena  wrote:

> Hi Kathees,
>
> Yes, since twitter API doesn't have AND operation what we can do is a
> "filter" process. As you said, we are using the track operation only and
> from this stream we read the user ID and filter the ones we need. We do
> this manual filtering in CEP currently. If we pass the follower ID to
> another inbound endpoint, wouldn't we get all the tweets that this person
> sent?
>
> Regards,
> Anoukh
>
> On Tue, May 31, 2016 at 6:45 PM, Kathees Rajendram 
> wrote:
>
>> Hi Anoukh,
>>
>> The twitter streaming API [1] provides the filter operation with the
>> track follow, and locations fields are combined with an OR operator.
>> Twitter streaming API doesn’t have AND operation.
>>
>> Can you try with two twitter inbound endpoints and twitter connector, In
>> a inbound endpoint, use the track operation to get the public stream with
>> the keyword. In ESB, the streaming output data are injected to a sequence.
>> From the output you can read user or follower ID. If there are
>> no follower ID, use the twitter connector method to retrieve the follower
>> ID. In second twitter Inbound endpoint, pass the follower ID with comma
>> separator to retrieve follower's streaming data.
>>
>> [1] - https://dev.twitter.com/streaming/reference/post/statuses/filter
>>
>> [2] -
>> https://docs.wso2.com/display/ESBCONNECTORS/Configuring+Twitter+Inbound+Operations
>>
>> Thanks,
>> Kathees
>>
>> On Tue, May 31, 2016 at 5:51 PM, Anoukh Jayawardena 
>> wrote:
>>
>>> Hi
>>>
>>> There is a use case in the US Election analytic app (refer
>>> https://wso2.com/election2016/) to use twitter.track and twitter.follow
>>> parameters together.
>>> This is to pull the tweets of certain accounts (hence the
>>> twitter.follow) that include certain words (hence the twitter.track). So
>>> requirement is twitter.follow AND twitter.track.
>>> These two operations are combined using an "OR" operation from twitter
>>> API itself (refer
>>> https://dev.twitter.com/streaming/reference/post/statuses/filter).
>>> Is there a way we can support "AND" operation within ESB?
>>>
>>> Currently we only do the twitter.follow operation from ESB and filter
>>> the words manually from the stream.
>>>
>>>
>>> Regards
>>> Anoukh Jayawardena
>>> --
>>> Anoukh Jayawardena
>>> *Software Engineer - Intern*
>>> Mobile : +94779928932
>>> ano...@wso2.com
>>>
>>
>>
>>
>> --
>> Kathees
>> Software Engineer,
>> email: kath...@wso2.com
>> mobile: +94772596173
>>
>
>
>
> --
> Anoukh Jayawardena
> *Software Engineer - Intern*
> Mobile : +94779928932
> ano...@wso2.com
>



-- 
Kathees
Software Engineer,
email: kath...@wso2.com
mobile: +94772596173
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Help setup SSO in APIM

2016-06-01 Thread Farasath Ahamed
Hi Megala,

Have you enabled Signature validation for Authentication requests?  If so
can you try the scenario with only Response signing on and see if it works
for tenants as well.


Thanks,

Farasath Ahamed
Software Engineer,
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware


Email: farasa...@wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 

On Wed, Jun 1, 2016 at 12:04 PM, Ruwan Abeykoon  wrote:

> Hi All,
> We embedded the dashboard not using SSO, but with custom Jaggery page
> inside "admin-dashboard" app. So the authentication session with
> "admin-dashboard" is sufficient for all auth/authz purpose. Hence the above
> problem does not arise.
>
> Therefore that work is not technically related to this thread.
>
> Cheers,
> Ruwan
>
> On Wed, Jun 1, 2016 at 11:55 AM, Megala Uthayakumar 
> wrote:
>
>> ok. I will check with him. Thanks
>>
>> On Wed, Jun 1, 2016 at 11:46 AM, Nuwan Dias  wrote:
>>
>>> Ruwan worked on embedding the portal within the admin-dashboard. Can you
>>> please talk to him and see what this means in that context?
>>>
>>> On Wed, Jun 1, 2016 at 11:43 AM, Megala Uthayakumar 
>>> wrote:
>>>
 No. This is the portal coming from carbon-dashboard feature. It is
 different from admin-dashboard. Please see the screen-shot thanks.

 On Wed, Jun 1, 2016 at 11:36 AM, Nuwan Dias  wrote:

> Portal in the sense admin-dashboard right?
>
> On Wed, Jun 1, 2016 at 11:33 AM, Megala Uthayakumar 
> wrote:
>
>> I have already mounted the registry and publisher app is working fine
>> in tenant mode as well. This issue only exists in the portal app.
>>
>> Thanks.
>>
>> Regards,
>> Megala
>>
>> On Wed, Jun 1, 2016 at 11:26 AM, Nuwan Dias  wrote:
>>
>>> You need to share the same registry (mount registries) between IS
>>> and APIM to make this work for tenants.
>>>
>>> Its because tenants have their key stores in the registry and the
>>> SAML response is signed using the key in this key store. If they don't
>>> share the registry signing will be done by one key and verification 
>>> will be
>>> done by a non-matching public key. Hence, signature validation will 
>>> fail.
>>>
>>> Disabling signature validation poses a security threat. Therefore
>>> its not recommended to do that.
>>>
>>> Thanks,
>>> NuwanD.
>>>
>>> On Wed, Jun 1, 2016 at 11:16 AM, Megala Uthayakumar >> > wrote:
>>>
 It is working when I remove that signature validation part from
 acs.jag

 On Wed, Jun 1, 2016 at 9:35 AM, Udara Rathnayake 
 wrote:

>
>
> On Wed, Jun 1, 2016 at 8:53 AM, Megala Uthayakumar <
> meg...@wso2.com> wrote:
>
>> Hi All,
>>
>> I am trying to configure SSO in APIM 2.0.x by following [1].
>> Publisher and Store jaggery apps work as expected but when I try to 
>> login
>> to portal app(Portal of Dashboard Server) using SSO, it works fine 
>> when I
>> am logging in as super-tenant user but whenever I try to login in as 
>> a user
>> from other tenants, it throws following error,
>>
>> org.opensaml.xml.validation.ValidationException: Signature did
>> not validate against the credential's key
>>
> ​For the moment, shall we disable the signature validation and
> try?​
>
>
>> at
>> org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:79)
>> at
>> org.jaggeryjs.modules.sso.common.util.Util.validateSignature(Util.java:290)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>> at
>> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
>> at
>> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>> at
>> org.jaggeryjs.rhino..scripts.c0._c_anonymous_3(/scripts/sso.client.js:57)
>> at
>> org.jaggeryjs.rhino..scripts.c0.call(/scripts/sso.client.js)
>> at
>> org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
>> at
>> org.jaggeryjs.rhino.portal.controllers.c3._c_anonymous_1(/portal/controllers/acs.jag:77)
>> at
>> 

Re: [Dev] [ESB] Twitter Connector and Inbound

2016-06-01 Thread Anoukh Jayawardena
Hi Kathees,

Yes, since twitter API doesn't have AND operation what we can do is a
"filter" process. As you said, we are using the track operation only and
from this stream we read the user ID and filter the ones we need. We do
this manual filtering in CEP currently. If we pass the follower ID to
another inbound endpoint, wouldn't we get all the tweets that this person
sent?

Regards,
Anoukh

On Tue, May 31, 2016 at 6:45 PM, Kathees Rajendram  wrote:

> Hi Anoukh,
>
> The twitter streaming API [1] provides the filter operation with the track
> follow, and locations fields are combined with an OR operator. Twitter
> streaming API doesn’t have AND operation.
>
> Can you try with two twitter inbound endpoints and twitter connector, In a
> inbound endpoint, use the track operation to get the public stream with the
> keyword. In ESB, the streaming output data are injected to a sequence. From
> the output you can read user or follower ID. If there are no follower ID,
> use the twitter connector method to retrieve the follower ID. In second
> twitter Inbound endpoint, pass the follower ID with comma separator to
> retrieve follower's streaming data.
>
> [1] - https://dev.twitter.com/streaming/reference/post/statuses/filter
>
> [2] -
> https://docs.wso2.com/display/ESBCONNECTORS/Configuring+Twitter+Inbound+Operations
>
> Thanks,
> Kathees
>
> On Tue, May 31, 2016 at 5:51 PM, Anoukh Jayawardena 
> wrote:
>
>> Hi
>>
>> There is a use case in the US Election analytic app (refer
>> https://wso2.com/election2016/) to use twitter.track and twitter.follow
>> parameters together.
>> This is to pull the tweets of certain accounts (hence the twitter.follow)
>> that include certain words (hence the twitter.track). So requirement is
>> twitter.follow AND twitter.track.
>> These two operations are combined using an "OR" operation from twitter
>> API itself (refer
>> https://dev.twitter.com/streaming/reference/post/statuses/filter).
>> Is there a way we can support "AND" operation within ESB?
>>
>> Currently we only do the twitter.follow operation from ESB and filter the
>> words manually from the stream.
>>
>>
>> Regards
>> Anoukh Jayawardena
>> --
>> Anoukh Jayawardena
>> *Software Engineer - Intern*
>> Mobile : +94779928932
>> ano...@wso2.com
>>
>
>
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173
>



-- 
Anoukh Jayawardena
*Software Engineer - Intern*
Mobile : +94779928932
ano...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-06-01 Thread Asantha Thilina
-- Forwarded message --
From: Asantha Thilina 
Date: Wed, Jun 1, 2016 at 2:51 AM
Subject: Re: GSOC 2016 - Project 21 : MongoDB Userstore Development
To: Tharindu Edirisinghe 
Cc: WSO2 Developers' List , Lakmal Rupasinghe <
lakma...@sliit.lk>


Hi Tharindu,

I fixed the most of the errors i got now my user store working it is
successfully registered and can add users and roles to user store as well
still there are some issues in other functions those are query errors i
still fixing those as well ,i having some issues  about database
transaction point of view and i need some advice from you, in mongodb there
is no option to rollback transaction if error occurred how can i manage it?
can we arrange a hangout meeting today or any comfortable day for you ? i'm
ok with any time
all the updates up to now i pushed to my repository[1]

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

Thanks,
Asantha

On Fri, May 27, 2016 at 1:56 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> sure i'll be look forward for that
>
> Thanks,
> Asantha
>
> On Thu, May 26, 2016 at 9:37 PM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Asantha,
>>
>> Glad to hear the progress... Sure I'll review over the weekend and
>> provide feedback. By next week we'll have a hangout to discuss on how to
>> move forward and the difficulties you have faced.  Keep the momentum going !
>>
>> Regards,
>> TharinduE
>>
>> On Fri, May 27, 2016 at 12:17 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> i been able to fix the mongodb user store intitalizing error now it
>>> working successfully it will be registered as a secondary user store in IS
>>> and when going to add a new users and roles it will show the domain of
>>> mongodb userstore still i having small issues in my json query formats for
>>> mongodb i fixing those issues at the moment all the progress so far i made
>>> updated to my github repository[1] and i recently updated my blog[2] as
>>> well,can you review my code and give me a feedback?
>>>
>>> [1]https://github.com/asanthamax/mongodbuserstore
>>> [2]http://asanthamax.blogspot.com/
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Sun, May 22, 2016 at 3:38 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Tharindu,

 I have override all the methods in AbstractUserStoreManager in my
 MongoDBUserStoreManager class after that when i try to add new secondary
 user store in management console i got following error i attached the
 screen shot of the error with this mail
 i have pushed all the progress upto now to my github repository[1]
 can you give me some tips to solve this issue?
 any suggestion would be grateful
 [1] https://github.com/asanthamax/mongodbuserstore
 Thanks,
 Asantha

 On Thu, May 19, 2016 at 11:47 PM, Asantha Thilina <
 asanthathil...@gmail.com> wrote:

> Hi Tharindu,
>
> sorry for the late reply ,as you advised i remove the scr reference
> and its corresponding methods from user store now it's works fine but i
> having another small issue if i wanted to run my mongodb user store as as
> my primary user store how would i do that?
> i added my user store configurations to user-mgt.xml file and comented
> the ldap userstore properties and i added MongoDBUserStore to
> tenant-mgt.xml as well but then i get error as datasource cannot be casted
> to MongoDB db source while deploying thats mean its still referring to
> Default Activator inside carbon core module how would i set it to my
> activator to reffer?
> any suggestion or help would be grateful
> Thanks,
> Asantha
>
> On Wed, May 18, 2016 at 10:29 PM, Tharindu Edirisinghe <
> tharin...@wso2.com> wrote:
>
>> Hi Asantha,
>>
>> Great progress so far !
>>
>> Since the reference is given to realm service in the bundle
>> activator, you should be facing the issue. Can you remove the service
>> reference from the bundle activator class. (You can delete the following
>> from the class).
>>
>> * @scr.reference name="user.realmservice.default"
>>  * interface="org.wso2.carbon.user.core.service.RealmService"
>> cardinality="1..1"
>>  * policy="dynamic" bind="setRealmService"
>>  * unbind="unsetRealmService"
>>
>> Also delete the following methods where realm service is used.
>>
>> getRealmService()
>> setRealmService(RealmService rlmService)
>> unsetRealmService(RealmService rlmService)
>>
>> After that can you try if the userstore manager is working as
>> expected. If you face any issues, please get back.
>>
>> Thank you,
>> TharinduE
>>
>>
>>
>>
>>
>>
>> On Sun, May 15, 2016 at 7:48 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi 

Re: [Dev] Removing only a jar file inside a patch directory will not reflected on patch applying process

2016-06-01 Thread Nuwan Wimalasekara
Hi Manoj,

Yes. Even if the jar is removed, plugin directory has the same md5 value of
removed jar. means It is not reverted.

To revert the jar, we have to remove the patch directory and restart the
server.

Thanks,
Nuwanw

On Wed, Jun 1, 2016 at 12:03 PM, Manoj Kumara  wrote:

> During patch application it validate the md5sum's of the jars as well. Can
> you please verify the removed jar has a different md5 value from what's
> there in the server ?
>
> *Manoj Kumara*
> WSO2 Inc. *| **lean. enterprise. middleware.*
> *Mobile:* +94 713 448188
>
> On Wed, Jun 1, 2016 at 11:53 AM, Nuwan Wimalasekara 
> wrote:
>
>> Hi Carbon Team,
>>
>> I have observed $subject when I try to remove a jar file from patch
>> directory. I know removing a jar file from patch directory is not a good
>> practise when applying patches. But it may happen and then the behaviour is
>> confusing. However if we update the a jar file inside a patch , it will
>> reflect and update the plugins directory and works as expected.
>>
>> To reproduce the issue, we can apply a patch having two jar file and
>> restart the server. Then it will apply the patch. after that, remove one of
>> jar file in the patch directory and restart the server. The it will not
>> detect as a patch change and will not revert the removed jar from patch.
>>
>> Is this a limitation in patch applying process or bug?
>>
>> Thanks,
>> Nuwanw
>>
>> --
>> Nuwan Wimalasekara
>> Senior Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> phone: +94 71 668 4620
>>
>>
>>
>>
>


-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Best way to access an osgi service from an AdminService

2016-06-01 Thread Fathima Dilhasha
Hi,

I have an Admin Service which accesses a method in an already available
osgi service.
I am using the following code segment to achieve this.

PrivilegedCarbonContext.startTenantFlow();
Object service =
PrivilegedCarbonContext.getThreadLocalCarbonContext().getOSGiService(AnalyticsDataAPI.class);
if(service instanceof AnalyticsDataAPI) {
this.analyticsDataAPI = (AnalyticsDataAPI) service;
}

I need to know whether there is any better way of achieving this.

Thanks.
Regards,
Dilhasha
-- 
Fathima Dilhasha
*Software Engineer*
Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
<%2B94%20%280%29%20773%20451194>
dilha...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][IS] User Store error while doing GREG performance testing in clustered setup

2016-06-01 Thread Chaminda Jayawardena
I noticed same during GREG5.2.0 Release testing, reported in [1] and also
couldn't find the exact cause for the issue.

[1] https://wso2.org/jira/browse/REGISTRY-3430

On Wed, Jun 1, 2016 at 11:18 AM, Thushara Ranawaka 
wrote:

> Hi Everyone,
>
> This is continuously reproducible for 100 concurrent users in a single
> node G-Reg setup.
> Any idea of why this is happen.
>
> TID: [-1234] [] [2016-05-30 13:12:07,771] ERROR
> {org.wso2.carbon.user.core.common.AbstractUserStoreManager} -  Error
> occurred while accessing Java Security Manager Privilege Block
> {org.wso2.carbon.user.core.common.AbstractUserStoreManager}
> TID: [-1234] [] [2016-05-30 13:13:00,324] ERROR
> {org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager} -  Error
> occurred while accessing Java Security Manager Privilege Block
> {org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager}
> TID: [-1234] [] [2016-05-30 13:13:03,183] ERROR {rxt-permissions} -
>  org.mozilla.javascript.WrappedException: Wrapped
> org.wso2.carbon.user.core.UserStoreException: Error occurred while
> accessing Java Security Manager Privilege Block (eval code#1(eval)#86)
> at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
> at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
> at
> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_52(/scripts/permissions/permissions.js:594)
> at
> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
> at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
> at
> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_53(/scripts/permissions/permissions.js:637)
> at
> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
> at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
> at
> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_54(/scripts/permissions/permissions.js:658)
> at
> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
> at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
> at
> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_60(/scripts/permissions/permissions.js:751)
> at
> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
> at
> org.jaggeryjs.rhino.store.modules.c5._c_anonymous_8(/store/modules/page-decorators.js:200)
> at
> org.jaggeryjs.rhino.store.modules.c5.call(/store/modules/page-decorators.js)
> at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
>
>
>
>
> Caused by: org.wso2.carbon.user.core.UserStoreException: Error occurred
> while accessing Java Security Manager Privilege Block
> at
> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.callSecure(JDBCAuthorizationManager.java:1378)
> at
> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isUserAuthorized(JDBCAuthorizationManager.java:168)
> at sun.reflect.GeneratedMethodAccessor195.invoke(Unknown Source)
>
> Thanks,
> Thushara.
>
> On Thu, Mar 31, 2016 at 9:27 AM, Danesh Kuruppu  wrote:
>
>> Hi all,
>>
>> I am currently doing GREG performance testing in clustered setup. It is a
>> two nodes cluster fronted with nginx and we have enabled sticky sessions.
>> We have JDBC user store (mysql DB) shared with both nodes.
>>
>> User store exception[1][2] occurred while performing asset crud operation
>> in publisher for 20+ concurrent users.
>>
>> Any idea of why this is happen.
>> Thanks
>> Danesh
>>
>> [1]
>> Caused by: org.wso2.carbon.user.core.UserStoreException: Error occurred
>> while accessing Java Security Manager Privilege Block
>> at
>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.callSecure(JDBCAuthorizationManager.java:1378)
>> at
>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isUserAuthorized(JDBCAuthorizationManager.java:168)
>> at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>> ... 99 more
>> Caused by: java.security.PrivilegedActionException:
>> java.lang.reflect.InvocationTargetException
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.callSecure(JDBCAuthorizationManager.java:1363)
>> ... 104 more
>> Caused by: java.lang.reflect.InvocationTargetException
>> at sun.reflect.GeneratedMethodAccessor247.invoke(Unknown Source)
>> at
>> 

Re: [Dev] Help setup SSO in APIM

2016-06-01 Thread Ruwan Abeykoon
Hi All,
We embedded the dashboard not using SSO, but with custom Jaggery page
inside "admin-dashboard" app. So the authentication session with
"admin-dashboard" is sufficient for all auth/authz purpose. Hence the above
problem does not arise.

Therefore that work is not technically related to this thread.

Cheers,
Ruwan

On Wed, Jun 1, 2016 at 11:55 AM, Megala Uthayakumar  wrote:

> ok. I will check with him. Thanks
>
> On Wed, Jun 1, 2016 at 11:46 AM, Nuwan Dias  wrote:
>
>> Ruwan worked on embedding the portal within the admin-dashboard. Can you
>> please talk to him and see what this means in that context?
>>
>> On Wed, Jun 1, 2016 at 11:43 AM, Megala Uthayakumar 
>> wrote:
>>
>>> No. This is the portal coming from carbon-dashboard feature. It is
>>> different from admin-dashboard. Please see the screen-shot thanks.
>>>
>>> On Wed, Jun 1, 2016 at 11:36 AM, Nuwan Dias  wrote:
>>>
 Portal in the sense admin-dashboard right?

 On Wed, Jun 1, 2016 at 11:33 AM, Megala Uthayakumar 
 wrote:

> I have already mounted the registry and publisher app is working fine
> in tenant mode as well. This issue only exists in the portal app.
>
> Thanks.
>
> Regards,
> Megala
>
> On Wed, Jun 1, 2016 at 11:26 AM, Nuwan Dias  wrote:
>
>> You need to share the same registry (mount registries) between IS and
>> APIM to make this work for tenants.
>>
>> Its because tenants have their key stores in the registry and the
>> SAML response is signed using the key in this key store. If they don't
>> share the registry signing will be done by one key and verification will 
>> be
>> done by a non-matching public key. Hence, signature validation will fail.
>>
>> Disabling signature validation poses a security threat. Therefore its
>> not recommended to do that.
>>
>> Thanks,
>> NuwanD.
>>
>> On Wed, Jun 1, 2016 at 11:16 AM, Megala Uthayakumar 
>> wrote:
>>
>>> It is working when I remove that signature validation part from
>>> acs.jag
>>>
>>> On Wed, Jun 1, 2016 at 9:35 AM, Udara Rathnayake 
>>> wrote:
>>>


 On Wed, Jun 1, 2016 at 8:53 AM, Megala Uthayakumar  wrote:

> Hi All,
>
> I am trying to configure SSO in APIM 2.0.x by following [1].
> Publisher and Store jaggery apps work as expected but when I try to 
> login
> to portal app(Portal of Dashboard Server) using SSO, it works fine 
> when I
> am logging in as super-tenant user but whenever I try to login in as 
> a user
> from other tenants, it throws following error,
>
> org.opensaml.xml.validation.ValidationException: Signature did not
> validate against the credential's key
>
 ​For the moment, shall we disable the signature validation and try?​


> at
> org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:79)
> at
> org.jaggeryjs.modules.sso.common.util.Util.validateSignature(Util.java:290)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
> at
> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
> at
> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
> at
> org.jaggeryjs.rhino..scripts.c0._c_anonymous_3(/scripts/sso.client.js:57)
> at
> org.jaggeryjs.rhino..scripts.c0.call(/scripts/sso.client.js)
> at
> org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
> at
> org.jaggeryjs.rhino.portal.controllers.c3._c_anonymous_1(/portal/controllers/acs.jag:77)
> at
> org.jaggeryjs.rhino.portal.controllers.c3.call(/portal/controllers/acs.jag)
> at
> org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
> at
> org.jaggeryjs.rhino.portal.controllers.c3._c_script_0(/portal/controllers/acs.jag:20)
> at
> org.jaggeryjs.rhino.portal.controllers.c3.call(/portal/controllers/acs.jag)
> at
> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
> at
> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
> at
> org.jaggeryjs.rhino.portal.controllers.c3.call(/portal/controllers/acs.jag)

Re: [Dev] Removing only a jar file inside a patch directory will not reflected on patch applying process

2016-06-01 Thread Manoj Kumara
During patch application it validate the md5sum's of the jars as well. Can
you please verify the removed jar has a different md5 value from what's
there in the server ?

*Manoj Kumara*
WSO2 Inc. *| **lean. enterprise. middleware.*
*Mobile:* +94 713 448188

On Wed, Jun 1, 2016 at 11:53 AM, Nuwan Wimalasekara  wrote:

> Hi Carbon Team,
>
> I have observed $subject when I try to remove a jar file from patch
> directory. I know removing a jar file from patch directory is not a good
> practise when applying patches. But it may happen and then the behaviour is
> confusing. However if we update the a jar file inside a patch , it will
> reflect and update the plugins directory and works as expected.
>
> To reproduce the issue, we can apply a patch having two jar file and
> restart the server. Then it will apply the patch. after that, remove one of
> jar file in the patch directory and restart the server. The it will not
> detect as a patch change and will not revert the removed jar from patch.
>
> Is this a limitation in patch applying process or bug?
>
> Thanks,
> Nuwanw
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [ESB] [SMPP Transport] Unable to send message

2016-06-01 Thread Rajjaz Mohammed
Hi Biruntha,

AFAIK your correct. Your testing Sending SMS Alerts for failures. In
blog[1] Step 6 you stop the service so it will produce error according to
blog it's need to send as sms.

[1]
http://mytecheye.blogspot.com/2013/01/wso2-esb-sending-sms-alerts-for-failures.html

On Wed, Jun 1, 2016 at 11:45 AM, Biruntha Gnaneswaran 
wrote:

> Hi Malaka,
>
> I will try to debug. but i already tried with some information from [1]
> and [2]. but the same error is coming.
>
> [1] http://stackoverflow.com/questions/18721246/smpp-using-wso2
> [2]
> http://mytecheye.blogspot.com/2013/01/wso2-esb-sending-sms-alerts-for-failures.html
>
> Biruntha
>
> Associate Software Engineer
> WSO2
> Email : birun...@wso2.com
>
> On Wed, Jun 1, 2016 at 11:19 AM, Malaka Silva  wrote:
>
>> Hi Biruntha,
>>
>> Try debugging [1] and you may also find some info in [2]
>>
>> [1]
>> http://svn.apache.org/repos/asf/axis/axis2/java/transports/branches/transport/1.0.0/modules/sms/
>>
>> [2]
>> http://mytecheye.blogspot.com/2013/01/wso2-esb-sending-sms-alerts-for-failures.html
>>
>> On Tue, May 31, 2016 at 7:18 PM, Biruntha Gnaneswaran 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> I follow [1] to send a message from SMSC simulator to ESB using SMPP
>>> Transport. When I try to send, in ESB logs I got the following error.
>>>
>>> ERROR - AxisEngine The service cannot be found for the endpoint
>>> reference (EPR)
>>>
>>> org.apache.axis2.AxisFault: The service cannot be found for the endpoint
>>> reference (EPR)
>>>
>>> at
>>> org.apache.axis2.engine.DispatchPhase.validateTransport(DispatchPhase.java:251)
>>>
>>> at
>>> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:109)
>>>
>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
>>>
>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>>>
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
>>>
>>> at
>>> org.apache.axis2.transport.sms.SMSManager.dispatchToAxis2(SMSManager.java:162)
>>>
>>> at
>>> org.apache.axis2.transport.sms.smpp.SMPPDispatcher.dispatch(SMPPDispatcher.java:46)
>>>
>>> at
>>> org.apache.axis2.transport.sms.smpp.SMPPListener.onAcceptDeliverSm(SMPPListener.java:85)
>>>
>>> at
>>> org.jsmpp.session.SMPPSession.fireAcceptDeliverSm(SMPPSession.java:445)
>>>
>>> at org.jsmpp.session.SMPPSession.access$0(SMPPSession.java:443)
>>>
>>> at
>>> org.jsmpp.session.SMPPSession$ResponseHandlerImpl.processDeliverSm(SMPPSession.java:462)
>>>
>>> at
>>> org.jsmpp.session.state.SMPPSessionBoundRX.processDeliverSm0(SMPPSessionBoundRX.java:109)
>>>
>>> at
>>> org.jsmpp.session.state.SMPPSessionBoundRX.processDeliverSm(SMPPSessionBoundRX.java:51)
>>>
>>> at org.jsmpp.session.PDUProcessTask.run(PDUProcessTask.java:81)
>>>
>>> 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)
>>>
>>>
>>> [1] -
>>> https://gayanlggd.wordpress.com/2014/12/19/sending-a-message-from-smsc-simulator-to-wso2-esb-using-smpp-transport/
>>>
>>>
>>> Biruntha
>>>
>>> Associate Software Engineer
>>> WSO2
>>> Email : birun...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech 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
>
>


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


Re: [Dev] Help setup SSO in APIM

2016-06-01 Thread Megala Uthayakumar
ok. I will check with him. Thanks

On Wed, Jun 1, 2016 at 11:46 AM, Nuwan Dias  wrote:

> Ruwan worked on embedding the portal within the admin-dashboard. Can you
> please talk to him and see what this means in that context?
>
> On Wed, Jun 1, 2016 at 11:43 AM, Megala Uthayakumar 
> wrote:
>
>> No. This is the portal coming from carbon-dashboard feature. It is
>> different from admin-dashboard. Please see the screen-shot thanks.
>>
>> On Wed, Jun 1, 2016 at 11:36 AM, Nuwan Dias  wrote:
>>
>>> Portal in the sense admin-dashboard right?
>>>
>>> On Wed, Jun 1, 2016 at 11:33 AM, Megala Uthayakumar 
>>> wrote:
>>>
 I have already mounted the registry and publisher app is working fine
 in tenant mode as well. This issue only exists in the portal app.

 Thanks.

 Regards,
 Megala

 On Wed, Jun 1, 2016 at 11:26 AM, Nuwan Dias  wrote:

> You need to share the same registry (mount registries) between IS and
> APIM to make this work for tenants.
>
> Its because tenants have their key stores in the registry and the SAML
> response is signed using the key in this key store. If they don't share 
> the
> registry signing will be done by one key and verification will be done by 
> a
> non-matching public key. Hence, signature validation will fail.
>
> Disabling signature validation poses a security threat. Therefore its
> not recommended to do that.
>
> Thanks,
> NuwanD.
>
> On Wed, Jun 1, 2016 at 11:16 AM, Megala Uthayakumar 
> wrote:
>
>> It is working when I remove that signature validation part from
>> acs.jag
>>
>> On Wed, Jun 1, 2016 at 9:35 AM, Udara Rathnayake 
>> wrote:
>>
>>>
>>>
>>> On Wed, Jun 1, 2016 at 8:53 AM, Megala Uthayakumar 
>>> wrote:
>>>
 Hi All,

 I am trying to configure SSO in APIM 2.0.x by following [1].
 Publisher and Store jaggery apps work as expected but when I try to 
 login
 to portal app(Portal of Dashboard Server) using SSO, it works fine 
 when I
 am logging in as super-tenant user but whenever I try to login in as a 
 user
 from other tenants, it throws following error,

 org.opensaml.xml.validation.ValidationException: Signature did not
 validate against the credential's key

>>> ​For the moment, shall we disable the signature validation and try?​
>>>
>>>
 at
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:79)
 at
 org.jaggeryjs.modules.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
 at
 org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
 at
 org.jaggeryjs.rhino..scripts.c0._c_anonymous_3(/scripts/sso.client.js:57)
 at
 org.jaggeryjs.rhino..scripts.c0.call(/scripts/sso.client.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at
 org.jaggeryjs.rhino.portal.controllers.c3._c_anonymous_1(/portal/controllers/acs.jag:77)
 at
 org.jaggeryjs.rhino.portal.controllers.c3.call(/portal/controllers/acs.jag)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
 at
 org.jaggeryjs.rhino.portal.controllers.c3._c_script_0(/portal/controllers/acs.jag:20)
 at
 org.jaggeryjs.rhino.portal.controllers.c3.call(/portal/controllers/acs.jag)
 at
 org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
 at
 org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
 at
 org.jaggeryjs.rhino.portal.controllers.c3.call(/portal/controllers/acs.jag)
 at
 org.jaggeryjs.rhino.portal.controllers.c3.exec(/portal/controllers/acs.jag)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
 at
 

[Dev] Removing only a jar file inside a patch directory will not reflected on patch applying process

2016-06-01 Thread Nuwan Wimalasekara
Hi Carbon Team,

I have observed $subject when I try to remove a jar file from patch
directory. I know removing a jar file from patch directory is not a good
practise when applying patches. But it may happen and then the behaviour is
confusing. However if we update the a jar file inside a patch , it will
reflect and update the plugins directory and works as expected.

To reproduce the issue, we can apply a patch having two jar file and
restart the server. Then it will apply the patch. after that, remove one of
jar file in the patch directory and restart the server. The it will not
detect as a patch change and will not revert the removed jar from patch.

Is this a limitation in patch applying process or bug?

Thanks,
Nuwanw

-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DS] UI Design - Multiple views support for page based on roles (Designer View)

2016-06-01 Thread Tanya Madurapperuma
Hi,

On Wed, Jun 1, 2016 at 11:09 AM, Udara Rathnayake  wrote:

> Hi Tanya,
>
> On Wed, Jun 1, 2016 at 10:56 AM, Tanya Madurapperuma 
> wrote:
>
>> Hi Udara,
>>
>> From where can we select the layout for the view? Or do we enforce using
>> the same layout for all the views of a single page?
>>
> ​We should open the layout selection panel and move to the newly created
> tab (role based view) once user select the role(s) and create the view​
> ​.​
>
> ​I think we should not restrict and enforce the same layout.
>
My question was because I assume a user has to click on (+) to create a new
view. If so I believe we have to have the UI design for getting layout
selection pane as well, because it is not same as getting it for creating a
new page.

>
>> On Tue, May 31, 2016 at 9:09 PM, Udara Rathnayake 
>> wrote:
>>
>>> Thanks Dakshika & Sinthuja.
>>>
>>> On Tue, May 31, 2016 at 7:10 PM, Sinthuja Ragendran 
>>> wrote:
>>>
 Hi Udara,

 As discussed offline we need to have following as well.

 - A name for each view so that if a user could see both views he/she
 should be able switch.
 - A default view should not be existing, and that should be associated
 with roles selection option when the 'role based view' option is selected
 in the left pane.

>>> ​We have to revisit this a bit. Assume a scenario, where dashboard
>>> designer already have a default view.​
>>>
>>> ​At that point we should not just disable the default view and provide
>>> role selection option.
>>>
>> Even if they have a default view, they should have set a viewers role in
>> the dashboard settings page. So can't we use that role as the roles for
>> that page and get rid of default view.
>>
> Since we are bringing gadget level roles now, we might have to remove some
> gadgets from the default view in that case. This might confuse the
> designer. ​
>
>
We need to have a verdict on this. Say based on the gadget level roles
dashboard designer can see gadget A, B and C. And he is going to design a
dashboard for a viewer and that viewer is authorized to see gadget A, B and
D. But the gadget D will not be in the gadget listing for designer as he is
not authorized to see that gadget. But gadget C will be in the designers
listing even though viewer is not authorized to see the gadget C. How does
having a default view solve this problem?

> Thanks,
>> Tanya
>>
>>>
>>> - As Dakshika mentioned, the view tab settings will be required to
 edit/update as well.
 - During the personalization of dashboard mode, we shouldn't show the
 options of editing the roles, etc for a view table, and only show the view
 names in the tabs. Hence the user can't actually do any changes to the view
 or anything, but he/she can add or delete gadgets, change layout, etc
 according to their personal interest.

 Thanks,
 Sinthuja.


 On Tue, May 31, 2016 at 2:33 PM, Udara Rathnayake 
 wrote:

> Hi,
>
> Came up with following modifications to the existing dashboard
> designer UI to cater the $Subject.
>
> Designer can select and enable page view based on role(s) from the
> settings.
>
>
> ​
> ​Once this is enabled, we can update the dashboard designer with a
> drop down where dashboard designer can select a role and create the
> particular view. When the dashboard designer browse gadgets/widgets 
> section
> from this particular view(role based), we should only list down gadgets
> enabled for the selected role(have to come up with a gadget level config
> for this).
>
>
>
> ​ ​
> This role list can be a simple drop down (if we support one role per
> page) or can be a list with check-boxes, so we can support multiple roles
> per page view. (gadget listing for particular view should be the union of
> selected roles)
>
>
> ​
>  Designer UI after adding a role based page view,
>
>
> ​
>
> ​Appreciate your feedback on this.
> ​
>
> --
> Regards,
> UdaraR
>



 --
 *Sinthuja Rajendran*
 Associate Technical Lead
 WSO2, Inc.:http://wso2.com

 Blog: http://sinthu-rajan.blogspot.com/
 Mobile: +94774273955



>>>
>>>
>>> --
>>> Regards,
>>> UdaraR
>>>
>>
>>
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>
>
> --
> Regards,
> UdaraR
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Help setup SSO in APIM

2016-06-01 Thread Nuwan Dias
Ruwan worked on embedding the portal within the admin-dashboard. Can you
please talk to him and see what this means in that context?

On Wed, Jun 1, 2016 at 11:43 AM, Megala Uthayakumar  wrote:

> No. This is the portal coming from carbon-dashboard feature. It is
> different from admin-dashboard. Please see the screen-shot thanks.
>
> On Wed, Jun 1, 2016 at 11:36 AM, Nuwan Dias  wrote:
>
>> Portal in the sense admin-dashboard right?
>>
>> On Wed, Jun 1, 2016 at 11:33 AM, Megala Uthayakumar 
>> wrote:
>>
>>> I have already mounted the registry and publisher app is working fine in
>>> tenant mode as well. This issue only exists in the portal app.
>>>
>>> Thanks.
>>>
>>> Regards,
>>> Megala
>>>
>>> On Wed, Jun 1, 2016 at 11:26 AM, Nuwan Dias  wrote:
>>>
 You need to share the same registry (mount registries) between IS and
 APIM to make this work for tenants.

 Its because tenants have their key stores in the registry and the SAML
 response is signed using the key in this key store. If they don't share the
 registry signing will be done by one key and verification will be done by a
 non-matching public key. Hence, signature validation will fail.

 Disabling signature validation poses a security threat. Therefore its
 not recommended to do that.

 Thanks,
 NuwanD.

 On Wed, Jun 1, 2016 at 11:16 AM, Megala Uthayakumar 
 wrote:

> It is working when I remove that signature validation part from acs.jag
>
> On Wed, Jun 1, 2016 at 9:35 AM, Udara Rathnayake 
> wrote:
>
>>
>>
>> On Wed, Jun 1, 2016 at 8:53 AM, Megala Uthayakumar 
>> wrote:
>>
>>> Hi All,
>>>
>>> I am trying to configure SSO in APIM 2.0.x by following [1].
>>> Publisher and Store jaggery apps work as expected but when I try to 
>>> login
>>> to portal app(Portal of Dashboard Server) using SSO, it works fine when 
>>> I
>>> am logging in as super-tenant user but whenever I try to login in as a 
>>> user
>>> from other tenants, it throws following error,
>>>
>>> org.opensaml.xml.validation.ValidationException: Signature did not
>>> validate against the credential's key
>>>
>> ​For the moment, shall we disable the signature validation and try?​
>>
>>
>>> at
>>> org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:79)
>>> at
>>> org.jaggeryjs.modules.sso.common.util.Util.validateSignature(Util.java:290)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>>> at
>>> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
>>> at
>>> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>>> at
>>> org.jaggeryjs.rhino..scripts.c0._c_anonymous_3(/scripts/sso.client.js:57)
>>> at
>>> org.jaggeryjs.rhino..scripts.c0.call(/scripts/sso.client.js)
>>> at
>>> org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
>>> at
>>> org.jaggeryjs.rhino.portal.controllers.c3._c_anonymous_1(/portal/controllers/acs.jag:77)
>>> at
>>> org.jaggeryjs.rhino.portal.controllers.c3.call(/portal/controllers/acs.jag)
>>> at
>>> org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
>>> at
>>> org.jaggeryjs.rhino.portal.controllers.c3._c_script_0(/portal/controllers/acs.jag:20)
>>> at
>>> org.jaggeryjs.rhino.portal.controllers.c3.call(/portal/controllers/acs.jag)
>>> at
>>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
>>> at
>>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
>>> at
>>> org.jaggeryjs.rhino.portal.controllers.c3.call(/portal/controllers/acs.jag)
>>> at
>>> org.jaggeryjs.rhino.portal.controllers.c3.exec(/portal/controllers/acs.jag)
>>> at
>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
>>> at
>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
>>> at
>>> org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
>>> at
>>> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
>>> at
>>> org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>>> at
>>> 

Re: [Dev] [DEV] [ESB] [SMPP Transport] Unable to send message

2016-06-01 Thread Biruntha Gnaneswaran
Hi Malaka,

I will try to debug. but i already tried with some information from [1] and
[2]. but the same error is coming.

[1] http://stackoverflow.com/questions/18721246/smpp-using-wso2
[2]
http://mytecheye.blogspot.com/2013/01/wso2-esb-sending-sms-alerts-for-failures.html

Biruntha

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

On Wed, Jun 1, 2016 at 11:19 AM, Malaka Silva  wrote:

> Hi Biruntha,
>
> Try debugging [1] and you may also find some info in [2]
>
> [1]
> http://svn.apache.org/repos/asf/axis/axis2/java/transports/branches/transport/1.0.0/modules/sms/
>
> [2]
> http://mytecheye.blogspot.com/2013/01/wso2-esb-sending-sms-alerts-for-failures.html
>
> On Tue, May 31, 2016 at 7:18 PM, Biruntha Gnaneswaran 
> wrote:
>
>> Hi Devs,
>>
>> I follow [1] to send a message from SMSC simulator to ESB using SMPP
>> Transport. When I try to send, in ESB logs I got the following error.
>>
>> ERROR - AxisEngine The service cannot be found for the endpoint reference
>> (EPR)
>>
>> org.apache.axis2.AxisFault: The service cannot be found for the endpoint
>> reference (EPR)
>>
>> at
>> org.apache.axis2.engine.DispatchPhase.validateTransport(DispatchPhase.java:251)
>>
>> at
>> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:109)
>>
>> at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
>>
>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>>
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
>>
>> at
>> org.apache.axis2.transport.sms.SMSManager.dispatchToAxis2(SMSManager.java:162)
>>
>> at
>> org.apache.axis2.transport.sms.smpp.SMPPDispatcher.dispatch(SMPPDispatcher.java:46)
>>
>> at
>> org.apache.axis2.transport.sms.smpp.SMPPListener.onAcceptDeliverSm(SMPPListener.java:85)
>>
>> at org.jsmpp.session.SMPPSession.fireAcceptDeliverSm(SMPPSession.java:445)
>>
>> at org.jsmpp.session.SMPPSession.access$0(SMPPSession.java:443)
>>
>> at
>> org.jsmpp.session.SMPPSession$ResponseHandlerImpl.processDeliverSm(SMPPSession.java:462)
>>
>> at
>> org.jsmpp.session.state.SMPPSessionBoundRX.processDeliverSm0(SMPPSessionBoundRX.java:109)
>>
>> at
>> org.jsmpp.session.state.SMPPSessionBoundRX.processDeliverSm(SMPPSessionBoundRX.java:51)
>>
>> at org.jsmpp.session.PDUProcessTask.run(PDUProcessTask.java:81)
>>
>> 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)
>>
>>
>> [1] -
>> https://gayanlggd.wordpress.com/2014/12/19/sending-a-message-from-smsc-simulator-to-wso2-esb-using-smpp-transport/
>>
>>
>> Biruntha
>>
>> Associate Software Engineer
>> WSO2
>> Email : birun...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech 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] Help setup SSO in APIM

2016-06-01 Thread Nuwan Dias
Portal in the sense admin-dashboard right?

On Wed, Jun 1, 2016 at 11:33 AM, Megala Uthayakumar  wrote:

> I have already mounted the registry and publisher app is working fine in
> tenant mode as well. This issue only exists in the portal app.
>
> Thanks.
>
> Regards,
> Megala
>
> On Wed, Jun 1, 2016 at 11:26 AM, Nuwan Dias  wrote:
>
>> You need to share the same registry (mount registries) between IS and
>> APIM to make this work for tenants.
>>
>> Its because tenants have their key stores in the registry and the SAML
>> response is signed using the key in this key store. If they don't share the
>> registry signing will be done by one key and verification will be done by a
>> non-matching public key. Hence, signature validation will fail.
>>
>> Disabling signature validation poses a security threat. Therefore its not
>> recommended to do that.
>>
>> Thanks,
>> NuwanD.
>>
>> On Wed, Jun 1, 2016 at 11:16 AM, Megala Uthayakumar 
>> wrote:
>>
>>> It is working when I remove that signature validation part from acs.jag
>>>
>>> On Wed, Jun 1, 2016 at 9:35 AM, Udara Rathnayake 
>>> wrote:
>>>


 On Wed, Jun 1, 2016 at 8:53 AM, Megala Uthayakumar 
 wrote:

> Hi All,
>
> I am trying to configure SSO in APIM 2.0.x by following [1]. Publisher
> and Store jaggery apps work as expected but when I try to login to portal
> app(Portal of Dashboard Server) using SSO, it works fine when I am logging
> in as super-tenant user but whenever I try to login in as a user from 
> other
> tenants, it throws following error,
>
> org.opensaml.xml.validation.ValidationException: Signature did not
> validate against the credential's key
>
 ​For the moment, shall we disable the signature validation and try?​


> at
> org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:79)
> at
> org.jaggeryjs.modules.sso.common.util.Util.validateSignature(Util.java:290)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
> at
> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
> at
> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
> at
> org.jaggeryjs.rhino..scripts.c0._c_anonymous_3(/scripts/sso.client.js:57)
> at
> org.jaggeryjs.rhino..scripts.c0.call(/scripts/sso.client.js)
> at
> org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
> at
> org.jaggeryjs.rhino.portal.controllers.c3._c_anonymous_1(/portal/controllers/acs.jag:77)
> at
> org.jaggeryjs.rhino.portal.controllers.c3.call(/portal/controllers/acs.jag)
> at
> org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
> at
> org.jaggeryjs.rhino.portal.controllers.c3._c_script_0(/portal/controllers/acs.jag:20)
> at
> org.jaggeryjs.rhino.portal.controllers.c3.call(/portal/controllers/acs.jag)
> at
> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
> at
> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
> at
> org.jaggeryjs.rhino.portal.controllers.c3.call(/portal/controllers/acs.jag)
> at
> org.jaggeryjs.rhino.portal.controllers.c3.exec(/portal/controllers/acs.jag)
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
> at
> org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:377)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
> at
> 

Re: [Dev] [DEV] [VOTE] WSO2 Developer Studio Tooling for Platform RC3

2016-06-01 Thread Jasintha Dasanayake
On Wed, Jun 1, 2016 at 10:25 AM, Susinda Perera  wrote:

> when i'm installing It asks for me to trust on 2 certificates, one is
> DeveloperStudio and other is Developer Studio kernel team. But from users
> POV i think it's good to have only one cert to trust WDYT?
>
These because DevStudio kernel and  the platform build using Jenkins, but
ESB has been build manually ,  by end of this week we will provide Jenkins
jobs for all product so there won't be two certificate in the future
releases

Thanks and Regards
/Jasintha




>
> On Tue, May 31, 2016 at 11:45 AM, Awanthika Senarath 
> wrote:
>
>> Hello all,
>>
>> I have tested the Server Additions and removals with ESB product tool.
>>
>>
>> here is my vote : +1
>>
>>
>>
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> On Tue, May 31, 2016 at 11:33 AM, Jasintha Dasanayake 
>> wrote:
>>
>>> Hello Devs,
>>>
>>> We are pleased to announce the vote for RC-3 of *WSO2 Developer Studio 
>>> Tooling
>>> for Platform 4.1.0.*
>>>
>>> P2 repository of WSO2 developer Studio  Tooling for Platform 4.1.0 is
>>> available here
>>> .
>>>  Source
>>> and Tag Location to be voted upon is available here
>>> 
>>> .
>>>
>>> Developer Studio 4.1.0  Tooling for Platform is released on Developer
>>> Studio kernel 4.1.0.
>>> Developer Studio Kernel contains a single feature which has the bundles
>>> that are required to implement WSO2 specific product tooling on Eclipse.
>>>
>>> This release contains;
>>>
>>>- Developer Studio migration to Eclipse mars
>>>- Support Devs kernel 4.1.0
>>>- Improvements in the Developer Studio Updater tool for automatic
>>>updates
>>>- List down severs in product wise (previously it was carbon version)
>>>- Introduced new extension point to add product natures dynamically
>>>- Adding support for carbon 4.4.5 based server
>>>
>>>
>>>
>>>1. [+] Stable - go ahead and release
>>>2. [-]  Broken - do not release (please explain why)
>>>
>>>
>>> The platform could to be tested on top of Developer Studio Kernel with
>>> compatible tooling SNAPSHOT versions available at [1].
>>>
>>> Thanks go everyone who made this checkpoint possible.
>>>
>>>
>>> [1]
>>> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/
>>>
>>>
>>> --
>>>
>>> *Jasintha Dasanayake*
>>>
>>> *Senior Software EngineerWSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware*
>>>
>>>
>>> *mobile :- 0711368118 <0711368118>*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Susinda Perera*
> Software Engineer
> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
> Mobile:(+94)716049075
> Blog: susinda.blogspot.com
> WSO2 Inc. http://wso2.com/
> Tel : 94 11 214 5345 Fax :94 11 2145300
>
>


-- 

*Jasintha Dasanayake*

*Senior Software EngineerWSO2 Inc. | http://wso2.com lean
. enterprise . middleware*


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


Re: [Dev] Help setup SSO in APIM

2016-06-01 Thread Megala Uthayakumar
I have already mounted the registry and publisher app is working fine in
tenant mode as well. This issue only exists in the portal app.

Thanks.

Regards,
Megala

On Wed, Jun 1, 2016 at 11:26 AM, Nuwan Dias  wrote:

> You need to share the same registry (mount registries) between IS and APIM
> to make this work for tenants.
>
> Its because tenants have their key stores in the registry and the SAML
> response is signed using the key in this key store. If they don't share the
> registry signing will be done by one key and verification will be done by a
> non-matching public key. Hence, signature validation will fail.
>
> Disabling signature validation poses a security threat. Therefore its not
> recommended to do that.
>
> Thanks,
> NuwanD.
>
> On Wed, Jun 1, 2016 at 11:16 AM, Megala Uthayakumar 
> wrote:
>
>> It is working when I remove that signature validation part from acs.jag
>>
>> On Wed, Jun 1, 2016 at 9:35 AM, Udara Rathnayake  wrote:
>>
>>>
>>>
>>> On Wed, Jun 1, 2016 at 8:53 AM, Megala Uthayakumar 
>>> wrote:
>>>
 Hi All,

 I am trying to configure SSO in APIM 2.0.x by following [1]. Publisher
 and Store jaggery apps work as expected but when I try to login to portal
 app(Portal of Dashboard Server) using SSO, it works fine when I am logging
 in as super-tenant user but whenever I try to login in as a user from other
 tenants, it throws following error,

 org.opensaml.xml.validation.ValidationException: Signature did not
 validate against the credential's key

>>> ​For the moment, shall we disable the signature validation and try?​
>>>
>>>
 at
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:79)
 at
 org.jaggeryjs.modules.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
 at
 org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
 at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
 at
 org.jaggeryjs.rhino..scripts.c0._c_anonymous_3(/scripts/sso.client.js:57)
 at
 org.jaggeryjs.rhino..scripts.c0.call(/scripts/sso.client.js)
 at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at
 org.jaggeryjs.rhino.portal.controllers.c3._c_anonymous_1(/portal/controllers/acs.jag:77)
 at
 org.jaggeryjs.rhino.portal.controllers.c3.call(/portal/controllers/acs.jag)
 at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
 at
 org.jaggeryjs.rhino.portal.controllers.c3._c_script_0(/portal/controllers/acs.jag:20)
 at
 org.jaggeryjs.rhino.portal.controllers.c3.call(/portal/controllers/acs.jag)
 at
 org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
 at
 org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
 at
 org.jaggeryjs.rhino.portal.controllers.c3.call(/portal/controllers/acs.jag)
 at
 org.jaggeryjs.rhino.portal.controllers.c3.exec(/portal/controllers/acs.jag)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
 at
 org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)
 at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:377)
 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
 at
 org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at