Re: [Dev] [VOTE] Release WSO2 Identity Server 5.11.0 RC1

2020-11-18 Thread Ayesha Dissanayaka
Hi,

Tested the following without any blockers,

   - Application management from the Console app
   - IDP metadata management API
   - OIDC Authorization Code flow

+1 to go ahead and release.

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


Re: [Dev] [Iam-dev] [VOTE] Release WSO2 Identity Server 5.10.0 RC2

2020-03-11 Thread Ayesha Dissanayaka
Hi all,

I have tested below cases in RC2.

   1. User Self-registration with email confirmation
   2. MFA with Email OTP
   3. MFA with TOTP
   4. Email-based password recovery
   5. Challenge question-based password recovery
   6. Username recovery
   7. Edit user profile from user-portal
   8. Enable MFA for User Portal
   9. Risk-based adaptive authentication with Stream Processor
   10. Force answering challenges during authentication
   11. SSO between 2 SAML Apps
   12. SSO between 2 Oauth/OIDC apps
   13. SSO between Oauth/OIDC and SAML apps

+1 to release based on the above tests.

Thanks!
-Ayesha


On Wed, Mar 11, 2020 at 1:02 PM Theviyanthan Krishnamohan <
theviyant...@wso2.com> wrote:

> Hi,
>
> The following flows were tested on the user portal:
>
> 1. Scanning and regenerating TOTP QR code
> 2. Adding, editing and deleting a FIDO key
> 3. Adding and editing security questions
> 4. Updating the user profile
> 5. Adding and editing recovery email
> 6. Adding and editing user profile picture
>
> [+] Stable - go ahead and release
>
> On Sun, Mar 8, 2020 at 11:26 PM Janak Amarasena  wrote:
>
>> Hi all,
>>
>> We are pleased to announce the second release candidate of WSO2 Identity
>> Server 5.10.0.
>>
>>
>> *New Features:*
>>
>>1. Passwordless authentication support
>>2. An improved User Portal
>>3. New RESTful APIs for user self-services and server management
>>4. Scope based authorization for internal REST APIs
>>5. Unique User ID support
>>6. Tenant wise email-sender configuration
>>
>>
>>
>> *Fixes:*
>> This release includes the following issue fixes and improvements:
>>
>>- 5.10.0-M1 <https://github.com/wso2/product-is/milestone/95?closed=1>
>>- 5.10.0-M2 <https://github.com/wso2/product-is/milestone/96?closed=1>
>>- 5.10.0-M3 <https://github.com/wso2/product-is/milestone/97?closed=1>
>>- 5.10.0-M4 <https://github.com/wso2/product-is/milestone/98?closed=1>
>>- 5.10.0-M5 <https://github.com/wso2/product-is/milestone/99?closed=1>
>>- 5.10.0-M6
>><https://github.com/wso2/product-is/milestone/100?closed=1>
>>- 5.10.0-M7
>><https://github.com/wso2/product-is/milestone/101?closed=1>
>>- 5.10.0-M8
>><https://github.com/wso2/product-is/milestone/102?closed=1>
>>- 5.10.0-M9
>><https://github.com/wso2/product-is/milestone/103?closed=1>
>>- 5.10.0-Alpha
>><https://github.com/wso2/product-is/milestone/104?closed=1>
>>- 5.10.0-Alpha2
>><https://github.com/wso2/product-is/milestone/105?closed=1>
>>- 5.10.0-Alpha3
>><https://github.com/wso2/product-is/milestone/106?closed=1>
>>- 5.10.0-Beta
>><https://github.com/wso2/product-is/milestone/107?closed=1>
>>- 5.10.0-Beta2
>><https://github.com/wso2/product-is/milestone/108?closed=1>
>>- 5.10.0-Beta3
>><https://github.com/wso2/product-is/milestone/109?closed=1>
>>- 5.10.0-GA <https://github.com/wso2/product-is/milestone/92?closed=1>
>>
>>
>> *Source and Distribution*
>> The source and distribution
>> <https://github.com/wso2/product-is/releases/download/v5.10.0-rc2/wso2is-5.10.0-rc2.zip>
>>  are
>> available at https://github.com/wso2/product-is/releases/tag/v5.10.0-rc2
>>
>>
>> Please download the product, test it, and vote using the following
>> convention.
>> [+] Stable - go ahead and release
>> [-] Broken - do not release (explain why)
>>
>>
>> Thank you,
>> WSO2 Identity and Access Management Team
>>
>> --
>> *Janak Amarasena* | Senior Software Engineer | WSO2 Inc.
>> (m) +9464144 | (w) +94112145345 | (e) ja...@wso2.com
>>
>>
>> <https://wso2.com/signature>
>> ___
>> Iam-dev mailing list
>> iam-...@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/iam-dev
>>
>
>
> --
> *Theviyanthan Krishnamohan (Thivi)*
> Software Engineer | WSO2 Inc.
> Mobile: 94 76 967
> Email: theviyant...@wso2.com
>
> ___
> Iam-dev mailing list
> iam-...@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/iam-dev
>


-- 
*Ayesha Dissanayaka*
Technical Lead
WSO2, Inc: http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm Grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
Mobile: +94713580922
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Found bug in WSO2 IS 5.9.0

2019-10-16 Thread Ayesha Dissanayaka
urrentContextHolder.set(carbonContextDataHolders.pop());
>> }
>> }
>
> This code is taken from jar org.wso2.carbon.utils-4.5.1.jar
> So I focused my attention on the
> org.wso2.carbon.identity.application.authenticator.samlsso project and I
> found a possibile bug in the class
>
>
>> org.wso2.carbon.identity.application.authenticator.samlsso.manager.X509CredentialImpl
>
>
> Basically in the constructor there is this piece of code:
>
> try {
>> /**
>>  * Get the private key and the cert for the respective tenant domain.
>>  */
>> if
>> (!tenantDomain.equals(MultitenantConstants.SUPER_TENANT_DOMAIN_NAME)) {
>> FrameworkUtils.startTenantFlow(tenantDomain);
>> //Do some stuffs
>> } else {
>> //Do other stuffs
>> }
>> } catch (Exception e) {
>> //Handle exception
>> } finally {
>> FrameworkUtils.endTenantFlow();
>> }
>
> As you can see the FrameworkUtils.startTenantFlow(tenantDomain); is called
> only if the first if is true. This means that in the finally we have to
> handle the endTenantFlow() properly. I modified the code in this way:
>
> try {
>> /**
>>  * Get the private key and the cert for the respective tenant domain.
>>  */
>> if
>> (!tenantDomain.equals(MultitenantConstants.SUPER_TENANT_DOMAIN_NAME)) {
>> FrameworkUtils.startTenantFlow(tenantDomain);
>> //Do some stuffs
>> } else {
>> //Do other stuffs
>> }
>> } catch (Exception e) {
>> //Handle exception
>> } finally {
>> if
>> (!tenantDomain.equals(MultitenantConstants.SUPER_TENANT_DOMAIN_NAME)) {
>> if (log.isDebugEnabled()) {
>> log.debug("finalizzo il tenant flow per tenant domain " +
>> tenantDomain);
>> }
>> FrameworkUtils.endTenantFlow();
>> } else {
>> if (log.isDebugEnabled()) {
>> log.debug("Tenant domain " + tenantDomain + " nessun flow da
>> finalizzare");
>> }
>> }
>> }
>
>
> It seems to work now but I don't know if my modification is correct...
>
> I hope this can be useful
> Angelo
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Ayesha Dissanayaka*
Associate Technical Lead
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
Mobile: +94713580922
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Identity Server 5.9.0 RC2

2019-10-03 Thread Ayesha Dissanayaka
onfiguring Claims for a Service Provider
>>>>>>>- Consent Management for Self Sign Up
>>>>>>>- Single Sign-On / Federated authentication for a web
>>>>>>>application with SAML - SP-Init, IDP-Init
>>>>>>>- SAML2 IdP Initiated Single Logout
>>>>>>>
>>>>>>> Front channel post binding
>>>>>>> Front channel redirect binding
>>>>>>> Backchannel
>>>>>>>
>>>>>>>- SAML SSO with end-user consent and claim mapping
>>>>>>>-  Add a custom claim to OIDC
>>>>>>>- Adding Multiple Federated authenticators
>>>>>>>- By-parsing the IS authenticator selection page
>>>>>>>- Identity Analytics-SSO analyzed via WSO2 IS Analytics.
>>>>>>>- QSG- Self signup, workflow management
>>>>>>>- JIT provision
>>>>>>>- Ask Password
>>>>>>>- Add Email template
>>>>>>>- Connectors- GITHUB, LinkedIn, Google
>>>>>>>- Installing as a Windows Service (Java version- 1.8.0_171)
>>>>>>>- REST APIs for the user portal
>>>>>>>
>>>>>>>Account Recovery - Update challenge questions answers
>>>>>>>
>>>>>>>Authorized OAuth Apps - List and revoke
>>>>>>>
>>>>>>>User session management
>>>>>>>
>>>>>>>Pending Approvals
>>>>>>>
>>>>>>>
>>>>>>> +1 to proceed.
>>>>>>>
>>>>>>> On Wed, Oct 2, 2019 at 4:26 PM Buddhima Udaranga 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> We have tested the Configuration Management REST API with the WSO2
>>>>>>>> IS 5.9.0-RC2 with the MySQL database. No blocker issues found. +1 to
>>>>>>>> proceed.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> *Buddhima Udaranga*|Software Engineer| WSO2 Inc. <http://wso2.com/>
>>>>>>>> (M)+94 714742094 | (E) buddhi...@wso2.com
>>>>>>>> <https://wso2.com/signature>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Oct 2, 2019 at 10:59 AM Piraveena Paralogarajah <
>>>>>>>> pirave...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi all,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> We are pleased to announce the second release candidate of WSO2
>>>>>>>>> Identity Server 5.9.0.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> New Features
>>>>>>>>>
>>>>>>>>>-
>>>>>>>>>
>>>>>>>>>An improved, simpler configuration model
>>>>>>>>>-
>>>>>>>>>
>>>>>>>>>RESTful APIs for user self-services
>>>>>>>>>-
>>>>>>>>>
>>>>>>>>>Passwordless authentication with WebAuthn
>>>>>>>>>-
>>>>>>>>>
>>>>>>>>>Reusable script library for adaptive authentication
>>>>>>>>>-
>>>>>>>>>
>>>>>>>>>Cross-protocol single logout capability
>>>>>>>>>-
>>>>>>>>>
>>>>>>>>>Inbuilt support to view and revoke user sessions
>>>>>>>>>-
>>>>>>>>>
>>>>>>>>>Azure AD/Office365 multi-domain federation support
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Fixes
>>>>>>>>>
>>>>>>>>> This release includes the following issue fixes and improvements:
>>>>>>>>>
>>>>>>>>>-
>>>>>>>>>
>>>>>>>>>5.9.0-m1
>>>>>>>>><https://github.com/wso2/product-is/milestone/85?closed=1>
>>>>>>>>>-
>>>>>>>>>
>>>>>>>>>5.9.0-m2
>>>>>>>>><https://github.com/wso2/product-is/milestone/86?closed=1>
>>>>>>>>>-
>>>>>>>>>
>>>>>>>>>5.9.0-m3
>>>>>>>>><https://github.com/wso2/product-is/milestone/87?closed=1>
>>>>>>>>>-
>>>>>>>>>
>>>>>>>>>5.9.0-m4
>>>>>>>>><https://github.com/wso2/product-is/milestone/88?closed=1>
>>>>>>>>>-
>>>>>>>>>
>>>>>>>>>5.9.0-m5
>>>>>>>>><https://github.com/wso2/product-is/milestone/90?closed=1>
>>>>>>>>>-
>>>>>>>>>
>>>>>>>>>5.9.0-m6
>>>>>>>>><https://github.com/wso2/product-is/milestone/91?closed=1>
>>>>>>>>>-
>>>>>>>>>
>>>>>>>>>5.9.0-alpha
>>>>>>>>><https://github.com/wso2/product-is/milestone/89?closed=1>
>>>>>>>>>-
>>>>>>>>>
>>>>>>>>>5.9.0-beta
>>>>>>>>><https://github.com/wso2/product-is/milestone/93?closed=1>
>>>>>>>>>-
>>>>>>>>>
>>>>>>>>>5.9.0-GA
>>>>>>>>><https://github.com/wso2/product-is/milestone/83?closed=1>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Source and Distribution
>>>>>>>>>
>>>>>>>>> The source and distribution
>>>>>>>>> <https://github.com/wso2/product-is/releases/download/v5.9.0-rc2/wso2is-5.9.0-rc2.zip>
>>>>>>>>> are available at
>>>>>>>>> https://github.com/wso2/product-is/releases/tag/v5.9.0-rc2
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Please download the product, test it, and vote using the following
>>>>>>>>> convention.
>>>>>>>>>
>>>>>>>>> [+] Stable - go ahead and release
>>>>>>>>>
>>>>>>>>> [-] Broken - do not release (explain why)
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>>
>>>>>>>>> WSO2 Identity and Access Management Team
>>>>>>>>>
>>>>>>>>> *Piraveena Paralogarajah*
>>>>>>>>> Software Engineer | WSO2 Inc.
>>>>>>>>> *(m)* +94776099594 | *(e)* pirave...@wso2.com
>>>>>>>>>
>>>>>>>>> ___
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Niluka Sripali Monnankulama
>>>>>>> Software Engineer - WSO2 Sri Lanka
>>>>>>>
>>>>>>> Mobile : +94 76 76 52843
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> *Mathuriga Thavarajah*
>>>>>> Software Engineer
>>>>>> WSO2 Inc. - http ://wso2.com
>>>>>>
>>>>>> Email : mathur...@wso2.com
>>>>>> Mobile  : +94778191300
>>>>>>
>>>>>>
>>>>>>
>>>>>> *[image: http://wso2.com/signature] <http://wso2.com/signature>*
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>
>>>>
>>>> --
>>>> *Shanika Wickramasinghe*
>>>> Software Engineer - QA Team
>>>>
>>>> Email: shani...@wso2.com
>>>> Mobile  : +94713503563
>>>> Web : http://wso2.com
>>>>
>>>> <http://wso2.com/signature>
>>>>
>>>
>>>
>>> --
>>> Ashen Weerathunga | Senior Software Engineer | WSO2 Inc.
>>> (m) +94716042995 | (w) +94112145345 | Email: as...@wso2.com
>>> <http://wso2.com/signature>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>> --
>>
>> Vihanga Liyanage
>>
>> Software Engineer | WS*O₂* Inc.
>>
>> M : +*94710124103* | http://wso2.com
>>
>> [image: http://wso2.com/signature] <http://wso2.com/signature>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> *Gayashan Bombuwala*
> Software Engineer | WSO2
>
> Email: gayash...@wso2.com
> Phone: +94770548334
>
> [image: https://wso2.com/signature] <https://wso2.com/signature>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Ayesha Dissanayaka*
Associate Technical Lead
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
Mobile: +94713580922
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue with configuring Identity Server is a OIDC provider

2019-09-29 Thread Ayesha Dissanayaka
>>>>>>>>>>>>>>>> Setup would be APIM 3.0.0 and IS-5.9.0-Alpha4-SNAPSHOT. I
>>>>>>>>>>>>>>>>>> got below error during the authorization code exchange.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> [2019-09-20 15:33:38,428] ERROR - DefaultStepHandler
>>>>>>>>>>>>>>>>>> Authentication failed exception!
>>>>>>>>>>>>>>>>>> org.wso2.carbon.identity.application.authentication.framework.exception.AuthenticationFailedException:
>>>>>>>>>>>>>>>>>> invalid_request, The client MUST NOT use more than one 
>>>>>>>>>>>>>>>>>> authentication
>>>>>>>>>>>>>>>>>> method in each
>>>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>>>> org.wso2.carbon.identity.application.authenticator.oidc.OpenIDConnectAuthenticator.getOauthResponse(OpenIDConnectAuthenticator.java:615)
>>>>>>>>>>>>>>>>>> ~[org.wso2.carbon.identity.application.authenticator.oidc-5.3.2.jar:?]
>>>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> This error occurred due to engaging the
>>>>>>>>>>>>>>>>>> MutualTLSAuthenticator in the token exchange flow. Below 
>>>>>>>>>>>>>>>>>> check returns list
>>>>>>>>>>>>>>>>>> of authenticators greater than one due to engaging this 
>>>>>>>>>>>>>>>>>> authenticator. It
>>>>>>>>>>>>>>>>>> seems during the token exchange flow, we send the 
>>>>>>>>>>>>>>>>>> certificate in the header
>>>>>>>>>>>>>>>>>> which lead to trigger the MutualTLSAuthenticator enable 
>>>>>>>>>>>>>>>>>> checks and add to
>>>>>>>>>>>>>>>>>> the authenticator list. If I removed the mutual 
>>>>>>>>>>>>>>>>>> authenticator jar, this
>>>>>>>>>>>>>>>>>> started to work.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> // Will return an invalid request response if multiple 
>>>>>>>>>>>>>>>>>> authentication mechanisms are engaged irrespective of
>>>>>>>>>>>>>>>>>> // whether the grant type is confidential or not.
>>>>>>>>>>>>>>>>>> if 
>>>>>>>>>>>>>>>>>> (oAuthClientAuthnContext.isMultipleAuthenticatorsEngaged()) {
>>>>>>>>>>>>>>>>>> tokenRespDTO = 
>>>>>>>>>>>>>>>>>> handleError(OAuth2ErrorCodes.INVALID_REQUEST, "The client 
>>>>>>>>>>>>>>>>>> MUST NOT use more than one " +
>>>>>>>>>>>>>>>>>> "authentication method in each", tokenReqDTO);
>>>>>>>>>>>>>>>>>> setResponseHeaders(tokReqMsgCtx, tokenRespDTO);
>>>>>>>>>>>>>>>>>> triggerPostListeners(tokenReqDTO, tokenRespDTO, 
>>>>>>>>>>>>>>>>>> tokReqMsgCtx, isRefreshRequest);
>>>>>>>>>>>>>>>>>> return tokenRespDTO;
>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Generally people will configure ODIC with external
>>>>>>>>>>>>>>>>>> provider and won't encounter this kind of problem. For 
>>>>>>>>>>>>>>>>>> testing if tried
>>>>>>>>>>>>>>>>>> with our IS as OIDC provider, this will leads to trigger the 
>>>>>>>>>>>>>>>>>> above error.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Is it required to engage mutual tls authenticator when
>>>>>>>>>>>>>>>>>> certificate present? Can't we ship it by default setting to 
>>>>>>>>>>>>>>>>>> false?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> [1]
>>>>>>>>>>>>>>>>>> https://docs.wso2.com/display/AM260/Configuring+Single+Sign-on+with+OpenID+Connect
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>>>>>> Harsha
>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> *Harsha Kumara*
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Technical Lead, WSO2 Inc.
>>>>>>>>>>>>>>>>>> Mobile: +94775505618
>>>>>>>>>>>>>>>>>> Email: hars...@wso2.coim
>>>>>>>>>>>>>>>>>> Blog: harshcreationz.blogspot.com
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> GET INTEGRATION AGILE
>>>>>>>>>>>>>>>>>> Integration Agility for Digitally Driven Business
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> *Harsha Kumara*
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Technical Lead, WSO2 Inc.
>>>>>>>>>>>>>>>>> Mobile: +94775505618
>>>>>>>>>>>>>>>>> Email: hars...@wso2.coim
>>>>>>>>>>>>>>>>> Blog: harshcreationz.blogspot.com
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> GET INTEGRATION AGILE
>>>>>>>>>>>>>>>>> Integration Agility for Digitally Driven Business
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> *Harsha Kumara*
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Technical Lead, WSO2 Inc.
>>>>>>>>>>>>>>>> Mobile: +94775505618
>>>>>>>>>>>>>>>> Email: hars...@wso2.coim
>>>>>>>>>>>>>>>> Blog: harshcreationz.blogspot.com
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> GET INTEGRATION AGILE
>>>>>>>>>>>>>>>> Integration Agility for Digitally Driven Business
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>> Sathya Bandara
>>>>>>>>>>>>>>> Senior Software Engineer
>>>>>>>>>>>>>>> Blog: https://medium.com/@technospace
>>>>>>>>>>>>>>> WSO2 Inc. http://wso2.com
>>>>>>>>>>>>>>> Mobile: (+94) 715 360 421 <+94%2071%20411%205032>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> <+94%2071%20411%205032>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> *Harsha Kumara*
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Technical Lead, WSO2 Inc.
>>>>>>>>>>>>>> Mobile: +94775505618
>>>>>>>>>>>>>> Email: hars...@wso2.coim
>>>>>>>>>>>>>> Blog: harshcreationz.blogspot.com
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> GET INTEGRATION AGILE
>>>>>>>>>>>>>> Integration Agility for Digitally Driven Business
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Sathya Bandara
>>>>>>>>>>>>> Senior Software Engineer
>>>>>>>>>>>>> Blog: https://medium.com/@technospace
>>>>>>>>>>>>> WSO2 Inc. http://wso2.com
>>>>>>>>>>>>> Mobile: (+94) 715 360 421 <+94%2071%20411%205032>
>>>>>>>>>>>>>
>>>>>>>>>>>>> <+94%2071%20411%205032>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>>
>>>>>>>>>>>> *Harsha Kumara*
>>>>>>>>>>>>
>>>>>>>>>>>> Technical Lead, WSO2 Inc.
>>>>>>>>>>>> Mobile: +94775505618
>>>>>>>>>>>> Email: hars...@wso2.coim
>>>>>>>>>>>> Blog: harshcreationz.blogspot.com
>>>>>>>>>>>>
>>>>>>>>>>>> GET INTEGRATION AGILE
>>>>>>>>>>>> Integration Agility for Digitally Driven Business
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Sathya Bandara
>>>>>>>>>>> Senior Software Engineer
>>>>>>>>>>> Blog: https://medium.com/@technospace
>>>>>>>>>>> WSO2 Inc. http://wso2.com
>>>>>>>>>>> Mobile: (+94) 715 360 421 <+94%2071%20411%205032>
>>>>>>>>>>>
>>>>>>>>>>> <+94%2071%20411%205032>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>>
>>>>>>>>>> *Harsha Kumara*
>>>>>>>>>>
>>>>>>>>>> Technical Lead, WSO2 Inc.
>>>>>>>>>> Mobile: +94775505618
>>>>>>>>>> Email: hars...@wso2.coim
>>>>>>>>>> Blog: harshcreationz.blogspot.com
>>>>>>>>>>
>>>>>>>>>> GET INTEGRATION AGILE
>>>>>>>>>> Integration Agility for Digitally Driven Business
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> *Harsha Kumara*
>>>>>>>>>
>>>>>>>>> Technical Lead, WSO2 Inc.
>>>>>>>>> Mobile: +94775505618
>>>>>>>>> Email: hars...@wso2.coim
>>>>>>>>> Blog: harshcreationz.blogspot.com
>>>>>>>>>
>>>>>>>>> GET INTEGRATION AGILE
>>>>>>>>> Integration Agility for Digitally Driven Business
>>>>>>>>>
>>>>>>>> --
>>>>>>>> Sathya Bandara
>>>>>>>> Senior Software Engineer
>>>>>>>> Blog: https://medium.com/@technospace
>>>>>>>> WSO2 Inc. http://wso2.com
>>>>>>>> Mobile: (+94) 715 360 421 <+94%2071%20411%205032>
>>>>>>>>
>>>>>>>> <+94%2071%20411%205032>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> *Harsha Kumara*
>>>>>>>
>>>>>>> Technical Lead, WSO2 Inc.
>>>>>>> Mobile: +94775505618
>>>>>>> Email: hars...@wso2.coim
>>>>>>> Blog: harshcreationz.blogspot.com
>>>>>>>
>>>>>>> GET INTEGRATION AGILE
>>>>>>> Integration Agility for Digitally Driven Business
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> *Harsha Kumara*
>>>>>>
>>>>>> Technical Lead, WSO2 Inc.
>>>>>> Mobile: +94775505618
>>>>>> Email: hars...@wso2.coim
>>>>>> Blog: harshcreationz.blogspot.com
>>>>>>
>>>>>> GET INTEGRATION AGILE
>>>>>> Integration Agility for Digitally Driven Business
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Hasintha Indrajee
>>>>> WSO2, Inc.
>>>>> Mobile:+94 771892453
>>>>>
>>>>>
>>>>
>>>> --
>>>>
>>>> *Harsha Kumara*
>>>>
>>>> Technical Lead, WSO2 Inc.
>>>> Mobile: +94775505618
>>>> Email: hars...@wso2.coim
>>>> Blog: harshcreationz.blogspot.com
>>>>
>>>> GET INTEGRATION AGILE
>>>> Integration Agility for Digitally Driven Business
>>>>
>>>
>>
>> --
>>
>> *Harsha Kumara*
>>
>> Technical Lead, WSO2 Inc.
>> Mobile: +94775505618
>> Email: hars...@wso2.coim
>> Blog: harshcreationz.blogspot.com
>>
>> GET INTEGRATION AGILE
>> Integration Agility for Digitally Driven Business
>>
>
>
> --
>
> *Harsha Kumara*
>
> Technical Lead, WSO2 Inc.
> Mobile: +94775505618
> Email: hars...@wso2.coim
> Blog: harshcreationz.blogspot.com
>
> GET INTEGRATION AGILE
> Integration Agility for Digitally Driven Business
>


-- 
*Ayesha Dissanayaka*
Associate Technical Lead
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
Mobile: +94713580922
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IAM][Analytics] IAM 5.9.0 Analytics capabilities

2019-09-19 Thread Ayesha Dissanayaka
Hi all,

Please kindly regard that IAM team will not be releasing a GA version of
IS-Analytics distribution parallel to IS-5.9.0 product release, as there
are no any changes introduced to IS-Analytics distribution compared to the
latest released IS-Analytics (5.8.0).

Analytics capabilities of IS-5.9.0 will be fully compatible with
IS-Analytics-5.8.0 distribution. We will be updating the documentation with
all the steps required to set up IS-5.9.0 to align with IS-Analytics-5.8.0.

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Associate Technical Lead
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
Mobile: +94713580922
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IAM] JIRA Not Resolved?

2019-09-05 Thread Ayesha Dissanayaka
Hi Johann,

This has been fixed under the jira[3]. Issue[1] is a migrated entry from
the Jira
<https://wso2.org/jira/projects/IDENTITY/issues/?filter=allopenissues> to
git <https://github.com/wso2/product-is/issues> and has missed resolving at
the time migration.
Current dashboard doesn't provide internationalization capability and we do
not plan to provide the capability in the existing dashboard. However, we
have prioritized this for the newly onboarding portal in place of the
dashboard.

[3] https://github.com/wso2/product-is/issues/3101

Thanks!
-Ayesha

On Fri, Sep 6, 2019 at 10:57 AM Johann Nallathamby  wrote:

> As far as I know we do support internationalization of
> /accountrecoveryendpoint [1]. However, seems the JIRA is still open for
> this [2]. At the same time I couldn't find a JIRA for internationalization
> of /dashboard.
>
> [1] https://github.com/wso2/carbon-identity-framework/pull/1566
> [2] https://github.com/wso2/product-is/issues/5657
>
> Thanks & Regards,
> Johann.
>
> --
> *Johann Dilantha Nallathamby* | Associate Director/Solutions Architect |
> WSO2 Inc.
> (m) +94 (77) 7776950 | (w) +94 (11) 2145345 | (e) joh...@wso2.com
> [image: Signature.jpg]
>


-- 
*Ayesha Dissanayaka*
Associate Technical Lead
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
Mobile: +94713580922
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] HumanTask listing doesn't work when exposed as REST via a webapp in IS-5.9.0 on kernel-4.5.0-M4

2019-08-07 Thread Ayesha Dissanayaka
gt; CLAIMABLE
>  
>   
>
> 


The above REST API is working on the pack build on top of kernel-4.5.0-M2,
without any issue.

Appreciate if you can have a look on this.

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Associate Technical Lead
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
Mobile: +94713580922
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Identity Server 5.8.0 RC3

2019-05-16 Thread Ayesha Dissanayaka
m/wso2/product-is/releases/download/v5.8.0-rc3/wso2is-5.8.0-rc3.zip>
>>> Analytics -
>>> https://github.com/wso2/analytics-is/releases/tag/v5.8.0-rc3
>>> <https://github.com/wso2/analytics-is/releases/download/v5.8.0-rc3/wso2is-analytics-5.8.0-rc3.zip>
>>>
>>>
>>> Please download, test the product and vote.
>>>
>>> [+] Stable - go ahead and release
>>> [-] Broken - do not release (explain why)
>>>
>>>
>>> Thanks,
>>> - WSO2 Identity and Access Management Team -
>>>
>>> --
>>>
>>> Hasanthi Dissanayake
>>>
>>> Senior Software Engineer | WSO2
>>>
>>> E: hasan...@wso2.com
>>> M :0718407133| http://wso2.com <http://wso2.com/>
>>>
>>
>>
>> --
>>
>> Hasanthi Dissanayake
>>
>> Senior Software Engineer | WSO2
>>
>> E: hasan...@wso2.com
>> M :0718407133| http://wso2.com <http://wso2.com/>
>>
>
>
> --
>
> *Dilin Dampahalage*
> Software Engineer | WSO2
>
> Email : di...@wso2.com
> Mobile : +94 771 462939
> web : http://wso2.com
>
> <http://wso2.com/signature>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Ayesha Dissanayaka*
Associate Technical Lead
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
Mobile: +94713580922
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Identity Server 5.8.0 RC2

2019-05-14 Thread Ayesha Dissanayaka
>
>>>>
>>>> Source and distribution
>>>>
>>>> Runtime - https://github.com/wso2/product-is/releases/tag/v
>>>> <https://github.com/wso2/product-is/releases/download/v5.8.0-rc2/wso2is-5.8.0-rc2.zip>
>>>> 5.8.0-rc2
>>>> <https://github.com/wso2/product-is/releases/download/v5.8.0-rc2/wso2is-5.8.0.zip>
>>>> Analytics -
>>>> https://github.com/wso2/analytics-is/releases/tag/v5.8.0-rc2
>>>> <https://github.com/wso2/analytics-is/releases/download/v5.8.0-rc2/wso2is-analytics-5.8.0-rc2.zip>
>>>>
>>>>
>>>> Please download, test the product and vote.
>>>>
>>>> [+] Stable - go ahead and release
>>>> [-] Broken - do not release (explain why)
>>>>
>>>>
>>>> Thanks,
>>>> - WSO2 Identity and Access Management Team -
>>>>
>>>> --
>>>>
>>>> Hasanthi Dissanayake
>>>>
>>>> Senior Software Engineer | WSO2
>>>>
>>>> E: hasan...@wso2.com
>>>> M :0718407133| http://wso2.com <http://wso2.com/>
>>>>
>>>
>>>
>>> --
>>>
>>> Hasanthi Dissanayake
>>>
>>> Senior Software Engineer | WSO2
>>>
>>> E: hasan...@wso2.com
>>> M :0718407133| http://wso2.com <http://wso2.com/>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>> --
>> *Sominda Gamage* | Software Engineer| WSO2 Inc. <http://wso2.com/>
>> (M)+94 719873902 | (E) somi...@wso2.com
>> <https://wso2.com/signature>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> *Janak Amarasena*
>
> Software Engineer
>
> Email: ja...@wso2.com
>
> Mobile: +9464144
>
> Web: https://wso2.com
>
>
> <http://wso2.com/signature>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Ayesha Dissanayaka*
Associate Technical Lead
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
Mobile: +94713580922
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Improving Localization support for authenticationendpoint webapp

2018-08-29 Thread Ayesha Dissanayaka
Hi Senthalan,

As we are going to fix this from the backend level, let's do using error
codes. From the backend, send a proper error code and add it as the key in
resource.properties.

However, fix need to be done in multiple places in identity-framework and
other components as there are many places sending the error messages as
Descriptions. These are not eligible to be added as keys in
resource.properties file. Need thorough testing with all the error
scenarios in IS after the changes are made.

Alternatively, you may change the logic here to check the availability of
key without encoding first, and if not found, then do encoding.

[1]
https://github.com/ayshsandu/carbon-identity-framework/blob/3526ccdd770e6e84bdaacbd03d99787062ea9163/components/authentication-framework/org.wso2.carbon.identity.application.authentication.endpoint.util/src/main/java/org/wso2/carbon/identity/application/authentication/endpoint/util/AuthenticationEndpointUtil.java#L155
<https://www.google.com/url?q=https://github.com/ayshsandu/carbon-identity-framework/blob/3526ccdd770e6e84bdaacbd03d99787062ea9163/components/authentication-framework/org.wso2.carbon.identity.application.authentication.endpoint.util/src/main/java/org/wso2/carbon/identity/application/authentication/endpoint/util/AuthenticationEndpointUtil.java%23L155&sa=D&source=hangouts&ust=1535619220181000&usg=AFQjCNF2pdq5DKiwZ15vUO4Tx994ARohPA>

Thanks!
-Ayesha


On Wed, Aug 29, 2018 at 7:37 AM, Senthalan Kanagalingam 
wrote:

> Hi all,
>
> When we want to send the custom status and status message from backend
> referring to the keys in the resources.properties, the current
> implementation[1] encode the key from the backend and tries to find the
> encoded value from the resources.properties file. This leads to having
> encoded values in resources.properties file.
>
> bWlzY29uZmlndXJhdGlvbi5lcnJvcg__=Misconfiguration Error!
> c29tZXRoaW5nLndlbnQud3JvbmcuY29udGFjdC5hZG1pbg__=Something went wrong during 
> the authentication process. Please contact identity admin.
>
> This will not user-friendly.
>
> So I have planned to change the implementation as in the back end sending
> the encoded value of the key and in the front end, we will decode the
> received key from the request and decode it and look for the decoded value
> in the resources.properties file.
>
> Will this change affect any existing implementations?
>
> [1] - https://github.com/wso2/carbon-identity-framework/pull/1306
>
> thanks,
> Senthalan
> --
>
> *Senthalan Kanagalingam*
> *Software Engineer - WSO2 Inc.*
> *Mobile : +94 (0) 77 18 77 466*
> <http://wso2.com/signature>
>



-- 
*Ayesha Dissanayaka*
Associate Technical Lead
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
Mobile: +94713580922
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Sending a HashMap from front end to backend

2018-07-04 Thread Ayesha Dissanayaka
Hi Nila,

As we discussed offline, shall we go for a approach where we delete
certificates inline, one by one.
Rather than keeping deleted list of certificates and newly added in memory
and removing/adding them at the SP update will make the page stateful. And
may introduce complexities to the user experience.

Thanks!
-Ayesha

On Mon, Jul 2, 2018 at 2:09 PM, Nilasini Thirunavukkarasu  wrote:

> +dev
>
> On Mon, Jul 2, 2018 at 2:06 PM, Nilasini Thirunavukkarasu <
> nilas...@wso2.com> wrote:
>
>> Hi,
>>
>> I am working on a UI change to support multiple certificate to IDP.
>> According to my current implementation if we upload the multiple
>> certificates the UI will look like as below. According to the discussion
>> [1] suggested change is to have a delete option for each certificate
>> separately rather than having one delete option.
>>
>>
>> ​
>>
>> With the suggested changes UI will look similar to following.
>>
>>
>> ​
>> Now we need to have a track on which table got deleted (This is not the
>> case previously because previously delete means there is no remaining
>> certificate since only one certificate can be uploaded).
>>
>> In order to have a track on which table got deleted, I am introducing a
>> HashMap which contains tableId as the key and certificate as the value[2].
>> So once we delete the table, then using the tableId we could find which
>> certificate was deleted and what are the remaining certificates.
>>
>> In order to do that I am sending a HashMap object to a form as in [3].
>> When it coming to backend, the HashMap object came as a byte array[4].
>>
>> I couldn't use deserialization as in [5]. It gives
>>
>> "Method threw 'java.io.StreamCorruptedException' exception."
>> Cause :- "java.io.StreamCorruptedException: invalid stream header:
>> 5B6F626A"
>>
>> I have tried [6] as well. That also doesn't give proper solution.
>>
>> Is there any other approach to do the above requirement?, Is it possible
>> to get the HashMap object from the byte array?.
>>
>> Could anyone please help me to solve this issue?
>>
>>
>> [1] Updated invitation: Support secondary certificate for IDP @ Tue Jun
>> 26, 2018 2:30pm - 4pm (IST) (IAM team)
>>
>> [2] https://github.com/nilasini/carbon-identity-framework/bl
>> ob/WIP/components/idp-mgt/org.wso2.carbon.idp.mgt.ui/src/
>> main/resources/web/idpmgt/idp-mgt-edit.jsp#L3311-L3319
>>
>> [3] https://github.com/nilasini/carbon-identity-framework/bl
>> ob/WIP/components/idp-mgt/org.wso2.carbon.idp.mgt.ui/src/
>> main/resources/web/idpmgt/idp-mgt-edit.jsp#L1728-L1736
>>
>> [4] https://github.com/nilasini/carbon-identity-framework/bl
>> ob/WIP/components/idp-mgt/org.wso2.carbon.idp.mgt.ui/src/
>> main/java/org/wso2/carbon/idp/mgt/ui/util/IdPManagementUIUtil.java#L124
>>
>> [5] https://github.com/nilasini/carbon-identity-framework/bl
>> ob/WIP/components/idp-mgt/org.wso2.carbon.idp.mgt.ui/src/
>> main/java/org/wso2/carbon/idp/mgt/ui/util/IdPManagementUIUti
>> l.java#L313-L330
>>
>> [6] https://coderanch.com/t/647594/java/Split-byte-array-HashMap
>>
>> Thanks,
>> Nila.
>>
>> --
>> Nilasini Thirunavukkarasu
>> Software Engineer - WSO2
>>
>> Email : nilas...@wso2.com
>> Mobile : +94775241823
>> Web : http://wso2.com/
>>
>>
>> <http://wso2.com/signature>
>>
>
>
>
> --
> Nilasini Thirunavukkarasu
> Software Engineer - WSO2
>
> Email : nilas...@wso2.com
> Mobile : +94775241823
> Web : http://wso2.com/
>
>
> <http://wso2.com/signature>
>



-- 
*Ayesha Dissanayaka*
Senior Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release of WSO2 Identity Server 5.6.0 RC3

2018-06-19 Thread Ayesha Dissanayaka
;>>>>>
>>>>>>>>>>>> [+] Stable - go ahead and release.
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>> Sathya
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Tue, Jun 19, 2018 at 12:26 PM, Vihanga Liyanage <
>>>>>>>>>>>> viha...@wso2.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi all,
>>>>>>>>>>>>>
>>>>>>>>>>>>> I've tested following scenarios on the IS 5.6.0-RC3 pack with
>>>>>>>>>>>>> default database setup.
>>>>>>>>>>>>>
>>>>>>>>>>>>>- Enable user self-registration and self-register a new
>>>>>>>>>>>>>user.
>>>>>>>>>>>>>- Add multiple consent purposes with multiple PII
>>>>>>>>>>>>>categories.
>>>>>>>>>>>>>- Login to dashboard and see whether we can see the
>>>>>>>>>>>>>default consent and above added PII categories.
>>>>>>>>>>>>>- Confirm claims are getting filtered based on consents.
>>>>>>>>>>>>>- Configure a service provider with OpenID Connect and
>>>>>>>>>>>>>acquire access tokens via Authorization Code, Implicit, Client 
>>>>>>>>>>>>> Credential
>>>>>>>>>>>>>and Password grant types.
>>>>>>>>>>>>>- Enable ID token encryption for the service provider and
>>>>>>>>>>>>>test the flow with decryption for all grant types.
>>>>>>>>>>>>>- Delete the self-signed up user, create another user with
>>>>>>>>>>>>>the exact same username, log in to the dashboard and see what 
>>>>>>>>>>>>> are the
>>>>>>>>>>>>>consents shown.
>>>>>>>>>>>>>- Revoke consents of the user via the dashboard and try
>>>>>>>>>>>>>accessing the SP to verify the consents are asked again.
>>>>>>>>>>>>>- Delete the SP, login to the dashboard and see whether
>>>>>>>>>>>>>the consents are deleted for that SP.
>>>>>>>>>>>>>
>>>>>>>>>>>>> No blocking issues are found.
>>>>>>>>>>>>>
>>>>>>>>>>>>> [+] Stable - go ahead and release.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>> Vihanga.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Fri, Jun 15, 2018 at 6:29 PM Madawa Soysa 
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi all,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> We are pleased to announce the third release candidate of
>>>>>>>>>>>>>> WSO2 Identity Server 5.6.0.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> This release fixes the following issues
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>- 5.6.0-RC Fixes
>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/40?closed=1>
>>>>>>>>>>>>>>- 5.6.0-Beta Fixes
>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/39?closed=1>
>>>>>>>>>>>>>>- 5.6.0-Alpha2 Fixes
>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/43?closed=1>
>>>>>>>>>>>>>>- 5.6.0-Alpha Fixes
>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/38?closed=1>
>>>>>>>>>>>>>>- 5.6.0-M7 Fixes
>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/37?closed=1>
>>>>>>>>>>>>>>- 5.6.0-M6 Fixes
>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/36?closed=1>
>>>>>>>>>>>>>>- 5.6.0-M5 Fixes
>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/35?closed=1>
>>>>>>>>>>>>>>- 5.6.0-M4 Fixes
>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/34?closed=1>
>>>>>>>>>>>>>>- 5.6.0-M3 Fixes
>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/33?closed=1>
>>>>>>>>>>>>>>- 5.6.0-M2 Fixes
>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/31?closed=1>
>>>>>>>>>>>>>>- 5.6.0-M1 Fixes
>>>>>>>>>>>>>><https://github.com/wso2/product-is/milestone/30?closed=1>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Source and distribution,
>>>>>>>>>>>>>> Runtime -  https://github.com/wso2/
>>>>>>>>>>>>>> product-is/releases/tag/v5.6.0-rc3
>>>>>>>>>>>>>> Analytics - https://github.com/wso2/
>>>>>>>>>>>>>> analytics-is/releases/v5.6.0-rc3
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Please download, test the product and vote.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> [+] Stable - go ahead and release
>>>>>>>>>>>>>> [-] Broken - do not release (explain why)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>> WSO2 Identity and Access Management Team
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Madawa Soysa / Senior Software Engineer
>>>>>>>>>>>>>> mada...@wso2.com / +94714616050
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> *WSO2 Inc.*
>>>>>>>>>>>>>> lean.enterprise.middleware
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>   <https://wso2.com/signature>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>>
>>>>>>>>>>>>> Vihanga Liyanage
>>>>>>>>>>>>>
>>>>>>>>>>>>> Software Engineer | WS*O₂* Inc.
>>>>>>>>>>>>>
>>>>>>>>>>>>> M : +*94710124103* | http://wso2.com
>>>>>>>>>>>>>
>>>>>>>>>>>>> [image: http://wso2.com/signature] <http://wso2.com/signature>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ___
>>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Sathya Bandara
>>>>>>>>>>>> Software Engineer
>>>>>>>>>>>> WSO2 Inc. http://wso2.com
>>>>>>>>>>>> Mobile: (+94) 715 360 421 <+94%2071%20411%205032>
>>>>>>>>>>>>
>>>>>>>>>>>> <+94%2071%20411%205032>
>>>>>>>>>>>>
>>>>>>>>>>>> ___
>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> *Dewni Weeraman*
>>>>>>>>>>> Trainee Software Engineer | WSO2
>>>>>>>>>>>
>>>>>>>>>>> Email: de...@wso2.com
>>>>>>>>>>> Mobile: +94772979049
>>>>>>>>>>> Web: http://wso2.com/
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ___
>>>>>>>>>>> Architecture mailing list
>>>>>>>>>>> architect...@wso2.org
>>>>>>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>>
>>>>>>>>>> Hasanthi Dissanayake
>>>>>>>>>>
>>>>>>>>>> Senior Software Engineer | WSO2
>>>>>>>>>>
>>>>>>>>>> E: hasan...@wso2.com
>>>>>>>>>> M :0718407133| http://wso2.com <http://wso2.com/>
>>>>>>>>>> ___
>>>>>>>>>> Architecture mailing list
>>>>>>>>>> architect...@wso2.org
>>>>>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> *Pulasthi Mahawithana*
>>>>>>>>> Associate Technical Lead
>>>>>>>>> WSO2 Inc., http://wso2.com/
>>>>>>>>> Mobile: +94-71-5179022
>>>>>>>>> Blog: https://medium.com/@pulasthi7/
>>>>>>>>>
>>>>>>>>> <https://wso2.com/signature>
>>>>>>>>> ___
>>>>>>>>> Dev mailing list
>>>>>>>>> Dev@wso2.org
>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> *Kind Regards,Nipuni Bhagya*
>>>>>>>>
>>>>>>>> *Software Engineering Intern*
>>>>>>>> *WSO2*
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> *Mobile : +94 0779028904*
>>>>>>>> ___
>>>>>>>> Architecture mailing list
>>>>>>>> architect...@wso2.org
>>>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Omindu Rathnaweera
>>>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>>> Mobile: +94 771 197 211
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Isuri Anuradha
>>>>>> Trainee Software Engineer | WSO2
>>>>>>
>>>>>> Emaii : is...@wso2.com
>>>>>> Mobile : +94775941280
>>>>>> web :http://wso2.com
>>>>>>
>>>>>> <http:///wso2.com>
>>>>>> ___
>>>>>> D
>>>>>
>>>>>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Senior Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] OAuth2/Openid authenticator in the wso2.store is outdated

2018-02-28 Thread Ayesha Dissanayaka
Hi,

Observe that OAuth2/Openid authenticator available in wso2.store is quite
outdated. Dont' we need to host the latest (5.1.13)[2] in the store. Or
provide link to latest code in git-hub.

[1]
https://store.wso2.com/store/assets/isconnector/details/2b71e151-4c38-4e8f-b25a-f3a980cf0862
[2]
https://github.com/wso2-extensions/identity-outbound-auth-oidc/tree/v5.1.13

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Senior Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Consent Management APIs for IS 5.5.0

2018-02-01 Thread Ayesha Dissanayaka
>>>>>>>>>>   "piiPrincipalId": "Bowden Jeffries",
>>>>>>>>>>>>>>>>>>>>   "piiControllers": [
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>>>   "piiController": "Ankh-Morpork Times",
>>>>>>>>>>>>>>>>>>>>   "contact": "William De Worde",
>>>>>>>>>>>>>>>>>>>>   "address": {
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> "streetAddress": "Gleam Street",
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> "addressCountry": "DW"
>>>>>>>>>>>>>>>>>>>>   },
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>   "email": "will...@times.ankh-morpork.xyz",
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>   "phone": "(555) 555-DISC (3429)"
>>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>   ],
>>>>>>>>>>>>>>>>>>>>   "policyUrl": 
>>>>>>>>>>>>>>>>>>>> "https://times.ankh-morpork.xzy/privacy_2017";,
>>>>>>>>>>>>>>>>>>>>   "services": [
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>>>   "service": "Digital Subscription and News Alerts",
>>>>>>>>>>>>>>>>>>>>   "purposes": [
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>>>   "purpose": "To provide contracted services",
>>>>>>>>>>>>>>>>>>>>   "purposeCategory": [
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> "2 - Contracted Service"
>>>>>>>>>>>>>>>>>>>>   ],
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>   "consentType": "EXPLICIT",
>>>>>>>>>>>>>>>>>>>>   "piiCategory": [
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>     "1 - Biographical",
>>>>>>>>>>>>>>>>>>>> "2 - Contact",
>>>>>>>>>>>>>>>>>>>> "4 - Communications/Social",
>>>>>>>>>>>>&

Re: [Dev] Get Super tenant admin email

2017-07-10 Thread Ayesha Dissanayaka
Hi Godwin,

You can admin username from carbon context when in super-tenant flow.

PrivilegedCarbonContext.getThreadLocalCarbonContext().getUserRealm().getRealmConfiguration()
.getAdminUserName()

Thanks!
-Ayesha


On Tue, Jul 11, 2017 at 7:35 AM, Godwin Shrimal  wrote:

> Hi All,
>
> We cannot get super tenant information via TenantManager. Below code
> returns null, So how can we get the super tenant admin's email address ?
>
> *tenantManager.getTenant(-1234)*
>
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
> twitter: https://twitter.com/godwinamila
> <http://wso2.com/signature>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Senior Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Display only Production Services in Governance Registry Store

2017-03-31 Thread Ayesha Dissanayaka
Hi Denson,

Yes, you can achieve this via the extension model[1] in GREG-5.3.0.
You can find a sample on how to do so in this blogpost
<http://asadistechspace.blogspot.com/2017/03/wso2greg-530-enable-visibility-of.html#.WN6CG0cvDTc>
.

Regards.
-Ayesha

[1]
http://asadistechspace.blogspot.com/2016/05/wso2greg-510-store-extension-model.html#.WN57kEF97Tc
[2]
http://asadistechspace.blogspot.com/2017/03/wso2greg-530-enable-visibility-of.html#.WN6CG0cvDTc


On Thu, Mar 30, 2017 at 10:40 PM, Denson, Ed  wrote:

> Hello All,
>
>
>
> We are running GREG 5.3.0 and I am wondering if there is a way to limit
> the display of Services (REST/SOAP) to only those is a lifecycle state of
> Production to be displayed in the Store. I want to allow the developers to
> update their services using the Publisher, but not have it readily
> available to the general public until it reaches the Production state.
>
>
>
> Is there a configuration file or files that would allow this functionality
> to happen?
>
>
>
> Thanks,
>
> *Ed Denson* | IT Information & Integration | API Management
> *Pacific Gas and Electric Company* | Office 8.415.6485 or 925.415.6485
> <(925)%20415-6485> | Cell 408.316.5315 <(408)%20316-5315>
> Email ed.den...@pge.com
>
>
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Senior Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How can we add multi language support in javascript files

2017-03-22 Thread Ayesha Dissanayaka
Hi Prasanna,

Similar discussion was started sometime back in [1].
Issues in [2], [3] have some suggestions.

[1] [Dev][UUF][IS-6] Enable i18n support in javascript
[2] https://github.com/wso2/carbon-uuf/issues/160
[3] https://github.com/wso2/carbon-uuf/issues/166


On Thu, Mar 23, 2017 at 10:46 AM, Pubudu Gunatilaka 
wrote:

> Adding Manu and Sajith.
>
> On Thu, Mar 23, 2017 at 10:44 AM, Prasanna Dangalla 
> wrote:
>
>> Hi Nisala,
>>
>> I was wondering how to include this in javascript files, not in hbs
>> files. Is there a way to include in javascrip fiels ?
>>
>> Thanks
>>
>> *Prasanna Dangalla*
>> Senior Software Engineer, WSO2, Inc.; http://wso2.com/
>> lean.enterprise.middleware
>>
>>
>> *cell: +94 718 11 27 51*
>> *twitter: @prasa77*
>>
>> On Thu, Mar 23, 2017 at 10:33 AM, Nisala Nanayakkara 
>> wrote:
>>
>>> Hi Prasanna,
>>>
>>> UUF has the capability of facilitating above mentioned scenario. You can
>>> define your language property file under the ‘lang’ directory as follows.
>>>
>>> |src
>>> | |main
>>> |   | pages/
>>> |   | fragments/
>>> |   | layouts/
>>> |   | modules/
>>> |   | lang/
>>> |en_US.properties
>>> |   | public/
>>>
>>> After that you can use following code segment to achieve your
>>> requirement in your hbs file.
>>>
>>> {{i18n "my.sample.key"}}
>>>
>>> Please go through sample app available here[1] if you need more
>>> clarification. Moreover you can find actual usage above code segment
>>> here[2] and corresponding language file here[3].
>>>
>>> [1] - https://github.com/wso2/carbon-uuf/tree/master/samples/apps/
>>> org.wso2.carbon.uuf.sample.pets-store.app
>>> [2] - https://github.com/wso2/carbon-uuf/blob/master/samples/apps/
>>> org.wso2.carbon.uuf.sample.pets-store.app/src/main/pages/index.hbs#L16
>>> [3] - https://github.com/wso2/carbon-uuf/blob/master/samples/apps/
>>> org.wso2.carbon.uuf.sample.pets-store.app/src/main/lang/en_US.properties
>>>
>>> Thanks,
>>> Nisala
>>>
>>> On Thu, Mar 23, 2017 at 9:01 AM, Prasanna Dangalla 
>>> wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> Is there a mechanism defined to use something like i18n in javascript
>>>> ? Does the UUF has the capability of facilitating this ? You inputs are
>>>> highly appreciated.
>>>>
>>>> Thanks
>>>>
>>>> *Prasanna Dangalla*
>>>> Senior Software Engineer, WSO2, Inc.; http://wso2.com/
>>>> lean.enterprise.middleware
>>>>
>>>>
>>>> *cell: +94 718 11 27 51*
>>>> *twitter: @prasa77*
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Nisala Niroshana Nanayakkara,*
>>> Software Engineer
>>> Mobile:(+94)717600022
>>> WSO2 Inc., http://wso2.com/
>>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774078049 <%2B94772207163>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Senior Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to Wrap Java Exception in UUF

2017-03-13 Thread Ayesha Dissanayaka
Hi,

I think this[1] has to be fixed from UUF in order to be able to access
original exception.

[1] https://github.com/wso2/carbon-uuf/issues/177

Thanks!
-Ayesha


On Tue, Mar 14, 2017 at 9:10 AM, Gayan Gunawardana  wrote:

>
> Hi UUF team,
>
> Client OSGI service throw  UserPortalUIException with error message
> (message) and error code (errorCode).
>
> String error = "Failed to update user password.";
> LOGGER.error(error, e);
> throw new UserPortalUIException(error, e.getErrorCode());
>
> Form client side .js I can retrieve error message as below
>
> } catch (e) {
>   var message = e.message;
> var cause = e.getCause();
> if (cause != null) {
> //the exceptions thrown by the actual osgi service method is 
> wrapped inside a InvocationTargetException.
> if (cause instanceof java.lang.reflect.InvocationTargetException) 
> {
> message = cause.getTargetException().message;
> }
> }
>
> Is there a way to retrieve errorCode as well ?
>
> Thanks,
> Gayan
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



-- 
*Ayesha Dissanayaka*
Senior Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UUF] [IS-6] Update Google Guava version

2017-03-12 Thread Ayesha Dissanayaka
PR sent in https://github.com/wso2/carbon-uuf/pull/203

Thanks!
-Ayesha

On Thu, Mar 2, 2017 at 1:07 PM, SajithAR Ariyarathna 
wrote:

> [+Chandana]
>
> On Thu, Mar 2, 2017 at 11:42 AM, Ayesha Dissanayaka 
> wrote:
>
>> Hi,
>>
>> Can we update guava.version and guava.version.range  [1] to match latest
>> released version(21) in next uuf release.
>>
>> While writing UI tests for IS-6 User-Portal with selenium to resolve some
>> issues such as below one , I had to update above mentioned versions in
>> product-is.
>> [ERROR] /home/ayesha/WORK/IS/SOURCE/PRODUCT_IS/product-is/portal/app
>> s/org.wso2.carbon.iam.user-portal.app/src/test/java/org/wso2
>> /carbon/iam/userportal/pageobject/PasswordRecoveryOptionsPage.java:[253,45]
>> no suitable method found for until(> .ExpectedCondition>)
>>
>> But, again when running osgi tests I get below error, that uuf.core
>> requires previous version as dependency.
>> [2017-03-02 11:24:59,478] ERROR {org.wso2.carbon.uuf.core} -
>> FrameworkEvent ERROR - org.wso2.carbon.uuf.core
>> org.osgi.framework.BundleException: Could not resolve module:
>> org.wso2.carbon.uuf.core [50]
>>   Unresolved requirement: Import-Package: com.google.common.collect;
>> version="[18.0.0,19.0.0)"
>>
>> [1] https://github.com/wso2/carbon-uuf/blob/master/pom.xml#L583:L584
>>
>> Thanks!
>> -Ayesha
>> --
>> *Ayesha Dissanayaka*
>> Senior Software Engineer,
>> WSO2, Inc : http://wso2.com
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>> 20, Palm grove Avenue, Colombo 3
>> E-Mail: aye...@wso2.com 
>>
>
>
>
> --
> Sajith Janaprasad Ariyarathna
> Software Engineer; WSO2, Inc.;  http://wso2.com/
> <https://wso2.com/signature>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Senior Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [UUF] [IS-6] Update Google Guava version

2017-03-01 Thread Ayesha Dissanayaka
Hi,

Can we update guava.version and guava.version.range  [1] to match latest
released version(21) in next uuf release.

While writing UI tests for IS-6 User-Portal with selenium to resolve some
issues such as below one , I had to update above mentioned versions in
product-is.
[ERROR]
/home/ayesha/WORK/IS/SOURCE/PRODUCT_IS/product-is/portal/apps/org.wso2.carbon.iam.user-portal.app/src/test/java/org/wso2/carbon/iam/userportal/pageobject/PasswordRecoveryOptionsPage.java:[253,45]
no suitable method found for until(>)

But, again when running osgi tests I get below error, that uuf.core
requires previous version as dependency.
[2017-03-02 11:24:59,478] ERROR {org.wso2.carbon.uuf.core} - FrameworkEvent
ERROR - org.wso2.carbon.uuf.core org.osgi.framework.BundleException: Could
not resolve module: org.wso2.carbon.uuf.core [50]
  Unresolved requirement: Import-Package: com.google.common.collect;
version="[18.0.0,19.0.0)"

[1] https://github.com/wso2/carbon-uuf/blob/master/pom.xml#L583:L584

Thanks!
-Ayesha
-- 
*Ayesha Dissanayaka*
Senior Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2GREG-5.2.0- Writing extension to replicate more artifact metadata in Store

2017-02-27 Thread Ayesha Dissanayaka
Hi Trem,

Glad that the tutorial was helpful to you.

You can achieve your desired behavior by applying custom javascript to your
page.
I have explained a sample scenario in this post
<http://asadistechspace.blogspot.com/2017/02/wso2greg-520-writing-extension-to-bind.html#.WLRO717h77A>
.

[1]
http://asadistechspace.blogspot.com/2017/02/wso2greg-520-writing-extension-to-bind.html#.WLRO717h77A

Regards,
-Ayesha


On Mon, Feb 27, 2017 at 9:50 AM, Trem Stamp  wrote:

> Hi Ayesha,
>
> Thanks for the tutorial on your blog for WSO2GREG-5.2.0- Writing
> extension to replicate more artifact metadata in Store
> <http://asadistechspace.blogspot.com.au/2016/04/wso2greg-520-writing-extension-to.html>.
> It was very helpful.  I was wondering if it's also possible to use a url to
> refer to an asset page with a particular metadata tab opened by default.
> At the moment the first tab is opened by default when going to the
> particular page in the store.  If for example I wanted to go directly to
> the page with the third tab opened, how would I go about doing that?
>
> Thanks in advance.
>
> Cheers,
> Trem
>
>


-- 
*Ayesha Dissanayaka*
Senior Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS-6] Need clarifications on Unique claim(s) as user identifier in Identity Server

2017-02-20 Thread Ayesha Dissanayaka
Hi Johann,

Thanks for the clarification.

On Mon, Feb 20, 2017 at 2:20 PM, Johann Nallathamby  wrote:

> Password based authentication - yes. Since we take in a password that has
> very low probability of being the same of another user within the domain
> for the same claim identifier, we can actually allow authentication with
> any claim - doesn't necessarily have to be unique.
>
So, we can choose some claim as the identifier for password based
authentication at a time as a configuration in the User Portal.


> However for recovery we must identify user uniquely and for that we need
> to have a set of claims that identify the user uniquely within a domain.
> Again can we use the attribute profile concept here?
>

Agreed that we use attribute profile based approach for username recovery.
For password recovery do we need to follow that approach. Shouldn't this
align with whatever the claim users use to authenticate to the system in
password based authentication?
for example, a system may choose to use email claim as login identifier.
Then shouldn't we ask for the same identifier at password recovery of that
system?
In that case if we use a claim which is not unique, it will be hard to
identify the user for password recovery.

Thanks!
-Ayesha
-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS-6] Need clarifications on Unique claim(s) as user identifier in Identity Server

2017-02-19 Thread Ayesha Dissanayaka
Hi,

In Identity Management we have the concept of unique claims which can only
have a unique value within a domain.
With the value of a unique claim we can identify a unique user within a
domain. While implementing identity management capabilities in IS-6.0 User
portal we came across below concerns.

   - System can have one or more unique claims.
   - All the unique claims doesn't have to be required claims.
   - At least one unique claim has to be required claim.

For authentication and recovery scenarios we need to have a unique
identifier for users. Currently we use "username" claim. I assume we need
to provide the flexibility to change this identifier claim.

   1. Do we allow client applications to choose this identifier claim from
   unique claims?
  - Then the IS will have to accept any of the unique claims as the
  user identifier in authentication and validate against it.
  2. Otherwise should we keep it as a system wide configuration?
   3. For the User Portal, we use 'username' claim as the user identifier.
   I have noticed we have hard-coded this claim
'*http://wso2.org/claims/username
   <http://wso2.org/claims/username>*'.
   1. I think we need to get this value from a configuration.
  2. Is it OK to keep this as a configuration within the User Portal.
  3. Otherwise where should we keep this?
  4. Will this identifier be username, for User portal always?
  Otherwise we need to have the flexibility of changing UI labels according
  to the identifier without much effort.
   4. Should we support authentication and recovery by multiple identifiers
   ( ex: username or email or NIC, each representing an individual unique
   claim)

Appreciate your input on this.

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UUF] Modules don't get hot deployed in Devmode

2017-02-01 Thread Ayesha Dissanayaka
On Wed, Feb 1, 2017 at 10:11 PM, Ayesha Dissanayaka  wrote:

> I observe that changes to .js in uuf modules are not hot deployed in the
> server *Ddevmode*, have to restart the server.
>

Created https://github.com/wso2/carbon-uuf/issues/184 to track this.


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [UUF] Modules don't get hot deployed in Devmode

2017-02-01 Thread Ayesha Dissanayaka
Hi,

I observe that changes to .js in uuf modules are not hot deployed in the
server *Ddevmode*, have to restart the server.

Regards,
-Ayesha


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UUF] Cannot use sendRedirect within try

2017-02-01 Thread Ayesha Dissanayaka
Hi Sajith,

Simply wrapping sendRedirect, in a try/catch gives me error.

Sample snippet is as below.

try {
> var hasMultiple =
> recoveryManager.hasMultiplePasswordRecoveryEnabled();
> if (!hasMultiple) {//when multiple recovery options are not enabled
>


> if
> (recoveryManager.isPasswordRecoveryOptionEnabled("notification-based")) {
>
> //TODO invoke password recovery via email
> sendRedirect(env.contextPath +
> '/recovery/password-complete?username=' + username);
>


> } else if
> (recoveryManager.isPasswordRecoveryOptionEnabled("security-question-based"))
> {
>
> sendRedirect(env.contextPath +
> '/recovery/security-questions?username=' + username);
> }
> //TODO decide what, when non of the options are enabled

} else {
> var questions = recoveryManager.getUserQuestions(userId);
> if (!questions.success) {
> sendError(500, "something.wrong.error");
> //TODO
> }
> return {
> hasMultipleOptions: hasMultiple,
> hasUserQuestions: questions.data.length > 0,
> userQuestions: questions.data
> };
> }
> } catch (e) {
> Log.error("Errror", e)
>
sendError(500, "something.wrong.error");

> }
>



On Wed, Feb 1, 2017 at 7:10 PM, SajithAR Ariyarathna 
wrote:

> Hi Ayesha,
>
> Observing below error when sendRedirect is used within a try.
>>
> Can you point the source where this is hapenning.
>
> Thanks.
>
> On Wed, Feb 1, 2017 at 6:57 PM, SajithAR Ariyarathna 
> wrote:
>
>> Hi Manu,
>>
>> Maybe if extend PageRedirectException from Throwable instead Exception
>>> it'll work
>>>
>> This wouldn't work as Nashorn JS try-catch is equivalent to Java, which
>> mean that it catches Throwable.
>>
>> Thanks.
>>
>> On Wed, Feb 1, 2017 at 6:54 PM, Manuranga Perera  wrote:
>>
>>> @UUF team,
>>>
>>> Maybe if extend PageRedirectException from Throwable instead Exception
>>> it'll work. If not we will have to do what J2EE does, that is, even after
>>> sendRedirect the code runs, but no output.
>>>
>>> On Wed, Feb 1, 2017 at 12:43 PM, Ayesha Dissanayaka 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Observing below error when sendRedirect is used within a try.
>>>>
>>>> ...org.wso2.carbon.uuf.exception.PageRedirectException: Redirecting to
>>>> '/user-portal/recovery/password-complete?username=admin'.
>>>> at org.wso2.carbon.uuf.core.API.sendRedirect(API.java:144)
>>>> at jdk.nashorn.internal.scripts.Script$Recompilation$96$721A$pa
>>>> ssword_options$cu1$restOf.onGet(/home/ayesha/WORK/IS/SOURCE/
>>>> product-is/product/working/wso2is-6.0.0-SNAPSHOT/deployment/uufapps/
>>>> org.wso2.carbon.iam.user-portal/components/root/page
>>>> s/recovery/password-options.js:38)
>>>> at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(Scrip
>>>> tFunctionData.java:639)
>>>> at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFun
>>>> ction.java:494)
>>>> at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRunti
>>>> me.java:393)
>>>> at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(Scri
>>>> ptObjectMirror.java:199)
>>>> at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(Nas
>>>> hornScriptEngine.java:383)
>>>> at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction
>>>> (NashornScriptEngine.java:190)
>>>> at org.wso2.carbon.uuf.renderablecreator.hbs.impl.JsExecutable.
>>>> execute(JsExecutable.java:133)
>>>> at org.wso2.carbon.uuf.renderablecreator.hbs.impl.MutableJsExec
>>>> utable.execute(MutableJsExecutable.java:43)
>>>> at org.wso2.carbon.uuf.renderablecreator.hbs.impl.HbsPageRender
>>>> able.execute(HbsPageRenderable.java:124)
>>>> at org.wso2.carbon.uuf.renderablecreator.hbs.impl.HbsPageRender
>>>> able.render(HbsPageRenderable.java:75)
>>>> at org.wso2.carbon.uuf.core.Page.render(Page.java:61)
>>>> at org.wso2.carbon.uuf.core.Component.renderPage(Component.java
>>>> :117)
>>>> at org.wso2.carbon.uuf.core.App.r

[Dev] [UUF] Cannot use sendRedirect within try

2017-02-01 Thread Ayesha Dissanayaka
Hi,

Observing below error when sendRedirect is used within a try.

...org.wso2.carbon.uuf.exception.PageRedirectException: Redirecting to
'/user-portal/recovery/password-complete?username=admin'.
at org.wso2.carbon.uuf.core.API.sendRedirect(API.java:144)
at jdk.nashorn.internal.scripts.Script$Recompilation$96$721A$
password_options$cu1$restOf.onGet(/home/ayesha/WORK/IS/
SOURCE/product-is/product/working/wso2is-6.0.0-SNAPSHOT/
deployment/uufapps/org.wso2.carbon.iam.user-portal/components/root/pages/
recovery/password-options.js:38)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(
ScriptFunctionData.java:639)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(
ScriptFunction.java:494)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(
ScriptRuntime.java:393)
at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(
ScriptObjectMirror.java:199)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(
NashornScriptEngine.java:383)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(
NashornScriptEngine.java:190)
at org.wso2.carbon.uuf.renderablecreator.hbs.impl.JsExecutable.execute(
JsExecutable.java:133)
at org.wso2.carbon.uuf.renderablecreator.hbs.impl.
MutableJsExecutable.execute(MutableJsExecutable.java:43)
at org.wso2.carbon.uuf.renderablecreator.hbs.impl.
HbsPageRenderable.execute(HbsPageRenderable.java:124)
at org.wso2.carbon.uuf.renderablecreator.hbs.impl.
HbsPageRenderable.render(HbsPageRenderable.java:75)
at org.wso2.carbon.uuf.core.Page.render(Page.java:61)
at org.wso2.carbon.uuf.core.Component.renderPage(Component.java:117)
at org.wso2.carbon.uuf.core.App.renderPageUri(App.java:176)
at org.wso2.carbon.uuf.core.App.renderPage(App.java:126)
at org.wso2.carbon.uuf.internal.RequestDispatcher.servePageOrFragment(
RequestDispatcher.java:94)
at org.wso2.carbon.uuf.internal.RequestDispatcher.serve(
RequestDispatcher.java:67)
at org.wso2.carbon.uuf.internal.UUFServer.serve(UUFServer.java:175)
at org.wso2.carbon.uuf.httpconnector.msf4j.UUFMicroservice.getImpl(
UUFMicroservice.java:56)
at org.wso2.carbon.uuf.httpconnector.msf4j.UUFMicroservice.get(
UUFMicroservice.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.wso2.msf4j.internal.router.HttpMethodInfo.invoke(
HttpMethodInfo.java:132)
at org.wso2.msf4j.internal.MSF4JMessageProcessor.dispatchMethod(
MSF4JMessageProcessor.java:130)
at org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(
MSF4JMessageProcessor.java:72)
at org.wso2.carbon.transport.http.netty.listener.
WorkerPoolDispatchingSourceHandler.lambda$publishToWorkerPool$12(
WorkerPoolDispatchingSourceHandler.java:125)
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)

Created [1] to track this.

[1] https://github.com/wso2/carbon-uuf/issues/182

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [UUF] Exception Handling in UUF app

2017-01-31 Thread Ayesha Dissanayaka
Hi,

What are the good practices around exception handling in UUF in scenarios
like handling exceptions thrown when callOSGiService.

for example consider below method.

> /**
>  * Check whether the notification based password recovery enabled
>  */
>
> function isNotificationBasedPasswordRecoveryEnabled() {
> var checkMethod = "isNotificationBasedPasswordRecoveryEnabled";
> return
> callOSGiService("org.wso2.is.portal.user.client.api.RecoveryMgtService",
> checkMethod, []);
>
> }
>

If I don't catch exceptions within this method or whenever using
*isNotificationBasedPasswordRecoveryEnabled
*method, in the UI I get below page.


​What is the recommended way to handle this?

   1. Handle exceptions around callOSGiService.
  - Then we'll have to repeat the same whenever we call osgi from a uuf
  app
  2. Handle at method invocation, and redirect to error page.
   3. Provide a generic message in the UI from UUF in such cases, unless
   handled in the app.
   4. Do we have to handle exceptions from osgi service itself?
   5. Other?

​Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UUF] Renaming artifact ID of the common default theme

2017-01-26 Thread Ayesha Dissanayaka
Oppz, My bad. Got it resolved.



On Thu, Jan 26, 2017 at 5:39 PM, Ayesha Dissanayaka  wrote:

> Hi Shan,
>
> Getting below error while trying to update carbon-uuf-common version to
> 1.0.0-m3 in IS6.[1]
>
> Also I observe that 1.0.0-m3 artifacts are not listed here[2].
>
> Failed to execute goal on project org.wso2.carbon.iam.user-portal.feature:
>> Could not resolve dependencies for project org.wso2.is:org.wso2.carbon.
>> iam.user-portal.feature:carbon-feature:6.0.0-SNAPSHOT: Failure to find
>> org.wso2.carbon.uuf.common:org.wso2.carbon.uuf.common.
>> theme.default.theme:zip:uuf-theme:1.0.0-m3 in
>> http://maven.wso2.org/nexus/content/repositories/releases/  ...
>>
>
> Even, trying to build 1.0.0-m3 tag locally didn't work for me.
>
> [1] https://github.com/wso2/product-is/blob/6.0.x-C5_m3/pom.xml#L852
> [2] http://maven.wso2.org/nexus/content/repositories/releases/
> org/wso2/carbon/uuf/common/org.wso2.carbon.uuf.common.theme.default.theme/
>
> Please, have a look.
>
> Thanks!
> -Ayesha
>
>
> On Wed, Jan 25, 2017 at 10:28 AM, Shan Mahanama  wrote:
>
>> Hi all,
>>
>> This change has been implemented and available in UUF Common 1.0.0-m3 [1]
>> version.
>>
>> [1] https://github.com/wso2/carbon-uuf-common/releases/tag/v1.0.0-m3
>>
>> Thanks,
>> Shan.
>>
>> On Mon, Jan 23, 2017 at 5:22 PM, Shan Mahanama  wrote:
>>
>>> Hi all,
>>>
>>> Following the proposed UUF naming conventions, we will rename the
>>> default theme in the UUF Commons repo [1] as below.
>>>
>>>- Artifact ID and the directory name will be renamed to
>>>*org.wso2.carbon.uuf.common.default.theme*
>>>
>>> [1] https://github.com/wso2/carbon-uuf-common
>>>
>>> Thanks,
>>> Shan.
>>>
>>> --
>>> Shan Mahanama
>>>
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> <http://l.facebook.com/l.php?u=http%3A%2F%2Fwso2.com&h=gAQEswASa>
>>> Email: sh...@wso2.com
>>> Mobile: +94 71 2000 498
>>>
>>>
>>>
>>
>>
>> --
>> Shan Mahanama
>>
>> Software Engineer, WSO2 Inc. http://wso2.com
>> <http://l.facebook.com/l.php?u=http%3A%2F%2Fwso2.com&h=gAQEswASa>
>> Email: sh...@wso2.com
>> Mobile: +94 71 2000 498
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Ayesha Dissanayaka*
> Software Engineer,
> WSO2, Inc : http://wso2.com
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
> 20, Palmgrove Avenue, Colombo 3
> E-Mail: aye...@wso2.com 
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UUF] Renaming artifact ID of the common default theme

2017-01-26 Thread Ayesha Dissanayaka
Hi Shan,

Getting below error while trying to update carbon-uuf-common version to
1.0.0-m3 in IS6.[1]

Also I observe that 1.0.0-m3 artifacts are not listed here[2].

Failed to execute goal on project org.wso2.carbon.iam.user-portal.feature:
> Could not resolve dependencies for project 
> org.wso2.is:org.wso2.carbon.iam.user-portal.feature:carbon-feature:6.0.0-SNAPSHOT:
> Failure to find
> org.wso2.carbon.uuf.common:org.wso2.carbon.uuf.common.theme.default.theme:zip:uuf-theme:1.0.0-m3
> in http://maven.wso2.org/nexus/content/repositories/releases/  ...
>

Even, trying to build 1.0.0-m3 tag locally didn't work for me.

[1] https://github.com/wso2/product-is/blob/6.0.x-C5_m3/pom.xml#L852
[2]
http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/uuf/common/org.wso2.carbon.uuf.common.theme.default.theme/

Please, have a look.

Thanks!
-Ayesha


On Wed, Jan 25, 2017 at 10:28 AM, Shan Mahanama  wrote:

> Hi all,
>
> This change has been implemented and available in UUF Common 1.0.0-m3 [1]
> version.
>
> [1] https://github.com/wso2/carbon-uuf-common/releases/tag/v1.0.0-m3
>
> Thanks,
> Shan.
>
> On Mon, Jan 23, 2017 at 5:22 PM, Shan Mahanama  wrote:
>
>> Hi all,
>>
>> Following the proposed UUF naming conventions, we will rename the default
>> theme in the UUF Commons repo [1] as below.
>>
>>- Artifact ID and the directory name will be renamed to
>>*org.wso2.carbon.uuf.common.default.theme*
>>
>> [1] https://github.com/wso2/carbon-uuf-common
>>
>> Thanks,
>> Shan.
>>
>> --
>> Shan Mahanama
>>
>> Software Engineer, WSO2 Inc. http://wso2.com
>> <http://l.facebook.com/l.php?u=http%3A%2F%2Fwso2.com&h=gAQEswASa>
>> Email: sh...@wso2.com
>> Mobile: +94 71 2000 498
>>
>>
>>
>
>
> --
> Shan Mahanama
>
> Software Engineer, WSO2 Inc. http://wso2.com
> <http://l.facebook.com/l.php?u=http%3A%2F%2Fwso2.com&h=gAQEswASa>
> Email: sh...@wso2.com
> Mobile: +94 71 2000 498
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS-6.0][User Portal] Having id's for UI Elements as a Best Practice

2017-01-24 Thread Ayesha Dissanayaka
On Tue, Jan 24, 2017 at 8:14 PM, Jerad Rutnam  wrote:

> IMO it would be better if we are not going to push this at design to
> markup level. Because it's not guaranteed that we will have all the
> necessary fields at that level. Isn't it?

No. We don't have to push this to markup level. But still for the obvious
fields that we have in markup level introducing id's will be useful.
However, app developer has to validate this. When UI tests are integrated,
it is app developers responsibility to create/update the pageObjects for
those pages.

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS-6.0][User Portal] Having id's for UI Elements as a Best Practice

2017-01-24 Thread Ayesha Dissanayaka
Hi team,

We are planing to write UI tests using selenium frameworks with
page-object-model[1].
Following this model it is easy to find elements in a page when we have
id's binded to those elements. Until we get samples with this model, shall
we make sure we define id's for UI elements accordingly rather than adding
them later.

Not all the UI elements may need to have id's, but testable fields such as
inputs, dynamic contents & etc. (ex: [2])

@UX team
Going forward, shall we enforce this in UI markups as well.

[1] http://toolsqa.com/selenium-webdriver/page-object-model/
[2]
https://github.com/ayshsandu/product-is/blob/6.0.x-C5-test-ui/portal/apps/org.wso2.carbon.iam.user-portal.app/src/main/pages/login.hbs#L51

Thanks!
-Ayesha
-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UUF][IS-6] Enable i18n support in javascript.

2017-01-23 Thread Ayesha Dissanayaka
On Tue, Jan 24, 2017 at 11:22 AM, SajithAR Ariyarathna 
wrote:

> However in some situations we need i18n support in the server-side JS
> (e.g. sending an error 'sendError' with a message).
> @Chandana, shall we create an issue for this?
>
+1


> We need to have i18n in the common foundation compoent's pages [3]. Please
> create an issue for this.
>
Created [4] to track this.

[4] https://github.com/wso2/carbon-uuf-common/issues/34


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [UUF] Localization of Page titles

2017-01-23 Thread Ayesha Dissanayaka
Hi,

With the help of handlebar subexpressions[1] we can apply i18n for page
titles.

ex: in [2],
{{title "Home | " @config.appName}}
can be written as
{{title (t "Home") " | " @config.appName}}
   Now Home becomes the key for i18n.

Hope this is helpful for UUF app developers.

[1] http://handlebarsjs.com/expressions.html#subexpressions
[2]
https://github.com/wso2/product-is/blob/6.0.x-C5/portal/apps/org.wso2.carbon.iam.user-portal.app/src/main/pages/index.hbs#L3

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [UUF][IS-6] Enable i18n support in javascript.

2017-01-23 Thread Ayesha Dissanayaka
Hi,

Can we get a common method to support localization in javascript level,
which can provide the functionality of 't' helper .

One common use case is that we need to localize js generated messages such
as errors.

As a workaround I observe passing a key instead of the message.[1]
But it will not work always when we need to populate a message with dynamic
parameters.

Further, uuf default pages should also support localization. ex:[2]

[1]
https://github.com/wso2/product-is/blob/6.0.x-C5/portal/apps/org.wso2.carbon.iam.user-portal.app/src/main/pages/login.js#L65
[2]
https://github.com/wso2/carbon-uuf/blob/master/samples/components/org.wso2.carbon.uuf.sample.foundation.ui/src/main/pages/error/default.hbs

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Carbon UUF Maven Plugin's sample links get directed to 404- Not found

2017-01-22 Thread Ayesha Dissanayaka
Hi,

I observe $subject while going through [1] readme.

   - simple-oauth component sample here
   
<https://github.com/wso2/carbon-uuf/tree/master/samples/components/org.wso2.carbon.uuf.sample.simple-auth>
   -  green’ theme sample here
   
<https://github.com/wso2/carbon-uuf/tree/master/samples/themes/org.wso2.carbon.uuf.sample.theme.green>
   .
   -  pets-store sample here
   
<https://github.com/wso2/carbon-uuf/tree/master/samples/apps/org.wso2.carbon.uuf.sample.pets-store>

[1] https://github.com/wso2/carbon-uuf-maven-tools/tree/master/plugin

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release WSO2 Identity Server 5.3.0- RC3

2017-01-08 Thread Ayesha Dissanayaka
 WSO2 Identity Server Team -
>>>
>>> --
>>> *Pulasthi Mahawithana*
>>> Senior Software Engineer
>>> WSO2 Inc., http://wso2.com/
>>> Mobile: +94-71-5179022 <+94%2071%20517%209022>
>>> Blog: http://blog.pulasthi.org
>>>
>>> <https://wso2.com/signature>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] InoRecoverySample

2017-01-05 Thread Ayesha Dissanayaka
Hi Kone,

Try running the InfoRecoverySample application in Tomcat-7.

Regards!
-Ayesha

On Wed, Jan 4, 2017 at 7:54 PM, Koné Alioune Badara <
kon...@etna-alternance.net> wrote:

> Hello,
>
> I'm having issues running the InfoRecoverySample application in Tomcat,
> I'm getting the following errors at the start of tomcat :
>
> INFO: validateJarFile(/home/svprem/workspace/.metadata/.plugins/
> org.eclipse.wst.server.core/tmp0/wtpwebapps/info-recovery-
> sample/WEB-INF/lib/javax.servlet-3.0.0.v201112011016.jar) - jar not
> loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
> javax/servlet/Servlet.class
> Jan 04, 2017 3:19:42 PM org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> INFO: validateJarFile(/home/svprem/workspace/.metadata/.plugins/
> org.eclipse.wst.server.core/tmp0/wtpwebapps/info-recovery-
> sample/WEB-INF/lib/javax.servlet-api-3.1.0.jar) - jar not loaded. See
> Servlet Spec 2.3, section 9.7.2. Offending class:
> javax/servlet/Servlet.class
> Jan 04, 2017 3:19:44 PM org.apache.catalina.core.StandardContext
> listenerStart
> SEVERE: Exception sending context initialized event to listener instance
> of class SampleContextEventListener
> java.lang.NoSuchMethodError: javax.servlet.ServletContext.
> getClassLoader()Ljava/lang/ClassLoader;
> at SampleContextEventListener.contextInitialized(
> SampleContextEventListener.java:36)
> at org.apache.catalina.core.StandardContext.listenerStart(
> StandardContext.java:4206)
> at org.apache.catalina.core.StandardContext.start(
> StandardContext.java:4705)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
> at org.apache.catalina.core.StandardService.start(
> StandardService.java:525)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>
> Jan 04, 2017 3:19:44 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Jan 04, 2017 3:19:44 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/InfoRecoverySample] startup failed due to previous errors
>
> Can you give me any tips on what is causing this error?
>
> I'm using tomcat 6.
>
> Regards,
>
> --
> Cordialement,
>
> Alioune B KONÉ.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [IS] [C5] Self sign-up in C5 User Portal

2017-01-02 Thread Ayesha Dissanayaka
Hi Indunil,

On Tue, Jan 3, 2017 at 9:54 AM, Indunil Upeksha Rathnayake  wrote:

> If self sign up is enabled, *users should be create their own user
> accounts and will be able to logged in immediately?* or there should be
> an *account confirmation through the email* which helps to confirm an
> actual user? or there should be configurations to enable/disable both
> registration and account confirmation?
>

IMO, based on the end system, both self-sign-up without confirmation as
well as self sign-up with confirmation can be required. Hence, having
configuration to enable/disable both the options will suite. Also I have
seen where administrators wants to verify self registered accounts before
the activation of those accounts. Hence, there should be a mechanism to
integrate kind of a work-flow as well and it should be configurable.


> And when it comes to self sign-up, specially if there are no account
> confirmation, in C5, I think it's better to include improvements such as a
> way to *allow anyone to sign up (no restrictions) or restrict users to
> specific domains* and also a way to choose whether *administrators should
> receive an email when a new account is created*.
>
+1 nice improvements. Even without account confirmation of user side,
administrators still may want to be aware of self registered accounts.
Eventing kind of a mechanism will come in handy, when need to monitor stats
based on end systems.

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS-5.3.0] User experience for self signed-up users in dashboard app in a default pack

2016-12-01 Thread Ayesha Dissanayaka
Hi,

After evaluating the permissions and internal discussions with identity
team, it is decided that self sign up users should be able to perform
actions related to users own account using mentioned gadgets.

Hence, permissions are set to */permission/admin/login *for the relevant
operations and in the code level users with minimum permission can only
access those operations against his own account. For admin users, higher
permission is required in order to perform operations on behalf of another
user.

Thanks!
-Ayesha


On Tue, Nov 29, 2016 at 7:58 PM, Ayesha Dissanayaka  wrote:

> Hi
>
> Related to  interacting with gadgets in dashboard app, I have evaluated
> the operation level permissions required for logged in users in order to
> work with gadgets properly. I have summarized services used, operations and
> permissions required in [1]
>
> Some of the service operations required advanced permissions than
> */permission/admin/login*, which is the only permission assigned for
> self-signed up users.
> Therefore self-signed users are unable to properly interact with following
> gadgets,
>
>- Account Recovery
>- My Profile
>- Associated Accounts
>- Authorized Apps
>
> By looking at the given information in [1] (marked in red), will it be OK
> to change those permissions to */permission/admin/login, * and which
> permissions should we keep as it is and assign to selfsignup role.
>
> [1] https://docs.google.com/a/wso2.com/spreadsheets/d/1DH8OWQ_VdA2xgPSjV-
> uEpj4tWpLDBxqQY2EO-xLL8T4/edit?usp=sharing
>
> Thanks!
> -Ayesha
>
> On Thu, Oct 27, 2016 at 10:36 PM, Isura Karunaratne 
> wrote:
>
>>  login permission is required for following gadgets
>>
>>- Update user profile : It uses UserProfileMgtService
>>- Setting security questions : It uses UserIdentityManagementAdminSer
>>vice
>>- Change password :  It uses UserIdentityManagementAdminService
>>- Account association
>>- Authorized Apps
>>- Pending approvals (This is required some additional permission too)
>>
>> As you mentioned, we can remove authorization check in most of these
>> gadgets.
>>
>> so, +1 to remove the login permission requirement from user portal. I
>> will be good for user experience.
>>
>>
>> Thanks
>> Isura.
>>
>>
>> *Isura Dilhara Karunaratne*
>> Senior Software Engineer | WSO2
>> Email: is...@wso2.com
>> Mob : +94 772 254 810
>> Blog : http://isurad.blogspot.com/
>>
>>
>>
>>
>> On Thu, Oct 27, 2016 at 10:30 AM, Johann Nallathamby 
>> wrote:
>>
>>> Hi Isura,
>>>
>>> Why do we need "login" permission for user portal? Only workflow
>>> approvals and user session termination we need some specific
>>> permissions. Shall we remove the requirement to have "login" permission to
>>> login to the user portal? I guess removing it from the portal might not be
>>> enough. Services such as user profile, account association, authorized apps
>>> also may need to be modified to check only for authentication.
>>>
>>> Wdyt?
>>>
>>> On Thu, Oct 27, 2016 at 8:50 PM, Ayesha Dissanayaka 
>>> wrote:
>>>
>>>>
>>>> On Thu, Oct 27, 2016 at 6:56 PM, Johann Nallathamby 
>>>> wrote:
>>>>
>>>>> Why do we need to have login permission for "selfsignup" role. We
>>>>> don't need to. "login" permission is to login to management console. We
>>>>> don't expect self signup users to login to management console. They can
>>>>> only login to dashboard, and for that we should not need "login"
>>>>> permission. Can you check if dashboard functions without "login" 
>>>>> permission.
>>>>
>>>>
>>>> I tested removing 'login' permission from the "selfsignup" role and
>>>> user is unable to login to dashboard app without 'login' permission.
>>>>
>>>> With below logs in console,
>>>> [2016-10-27 20:47:17,346] ERROR {org.wso2.carbon.identity.auth
>>>> enticator.saml2.sso.SAML2SSOAuthenticator} -  Authentication Request
>>>> is rejected. Authorization Failure.
>>>> [2016-10-27 20:47:17,347]  WARN {org.wso2.carbon.core.services
>>>> .util.CarbonAuthenticationUtil} -  Failed Administrator login attempt
>>>> 'Ayesha[-1234]' at [2016-10-27 20:47:17,347+0530]
>>>>
>>>>
>>>>
>>>> --
>>>> *Ayes

Re: [Dev] [IS-5.3.0] User experience for self signed-up users in dashboard app in a default pack

2016-11-29 Thread Ayesha Dissanayaka
Hi

Related to  interacting with gadgets in dashboard app, I have evaluated the
operation level permissions required for logged in users in order to work
with gadgets properly. I have summarized services used, operations and
permissions required in [1]

Some of the service operations required advanced permissions than
*/permission/admin/login*, which is the only permission assigned for
self-signed up users.
Therefore self-signed users are unable to properly interact with following
gadgets,

   - Account Recovery
   - My Profile
   - Associated Accounts
   - Authorized Apps

By looking at the given information in [1] (marked in red), will it be OK
to change those permissions to */permission/admin/login, * and which
permissions should we keep as it is and assign to selfsignup role.

[1]
https://docs.google.com/a/wso2.com/spreadsheets/d/1DH8OWQ_VdA2xgPSjV-uEpj4tWpLDBxqQY2EO-xLL8T4/edit?usp=sharing

Thanks!
-Ayesha

On Thu, Oct 27, 2016 at 10:36 PM, Isura Karunaratne  wrote:

>  login permission is required for following gadgets
>
>- Update user profile : It uses UserProfileMgtService
>- Setting security questions : It uses UserIdentityManagementAdminSer
>vice
>- Change password :  It uses UserIdentityManagementAdminService
>- Account association
>- Authorized Apps
>- Pending approvals (This is required some additional permission too)
>
> As you mentioned, we can remove authorization check in most of these
> gadgets.
>
> so, +1 to remove the login permission requirement from user portal. I
> will be good for user experience.
>
>
> Thanks
> Isura.
>
>
> *Isura Dilhara Karunaratne*
> Senior Software Engineer | WSO2
> Email: is...@wso2.com
> Mob : +94 772 254 810
> Blog : http://isurad.blogspot.com/
>
>
>
>
> On Thu, Oct 27, 2016 at 10:30 AM, Johann Nallathamby 
> wrote:
>
>> Hi Isura,
>>
>> Why do we need "login" permission for user portal? Only workflow
>> approvals and user session termination we need some specific
>> permissions. Shall we remove the requirement to have "login" permission to
>> login to the user portal? I guess removing it from the portal might not be
>> enough. Services such as user profile, account association, authorized apps
>> also may need to be modified to check only for authentication.
>>
>> Wdyt?
>>
>> On Thu, Oct 27, 2016 at 8:50 PM, Ayesha Dissanayaka 
>> wrote:
>>
>>>
>>> On Thu, Oct 27, 2016 at 6:56 PM, Johann Nallathamby 
>>> wrote:
>>>
>>>> Why do we need to have login permission for "selfsignup" role. We don't
>>>> need to. "login" permission is to login to management console. We don't
>>>> expect self signup users to login to management console. They can only
>>>> login to dashboard, and for that we should not need "login" permission. Can
>>>> you check if dashboard functions without "login" permission.
>>>
>>>
>>> I tested removing 'login' permission from the "selfsignup" role and user
>>> is unable to login to dashboard app without 'login' permission.
>>>
>>> With below logs in console,
>>> [2016-10-27 20:47:17,346] ERROR {org.wso2.carbon.identity.auth
>>> enticator.saml2.sso.SAML2SSOAuthenticator} -  Authentication Request is
>>> rejected. Authorization Failure.
>>> [2016-10-27 20:47:17,347]  WARN {org.wso2.carbon.core.services
>>> .util.CarbonAuthenticationUtil} -  Failed Administrator login attempt
>>> 'Ayesha[-1234]' at [2016-10-27 20:47:17,347+0530]
>>>
>>>
>>>
>>> --
>>> *Ayesha Dissanayaka*
>>> Software Engineer,
>>> WSO2, Inc : http://wso2.com
>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>>> 20, Palmgrove Avenue, Colombo 3
>>> E-Mail: aye...@wso2.com 
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Technical Lead & Product Lead of WSO2 Identity Server
>> Governance Technologies Team
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+9476950*
>> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>>
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS-5.3.0][IDENTITY-5264] Redirecting to broken page when click on link in Account Confirmation email after self signing via self signup REST API

2016-11-25 Thread Ayesha Dissanayaka
Hi,

As explained in IDENTITY-5264, <https://wso2.org/jira/browse/IDENTITY-5264>

Enable email notifications for Self-signup in Identity Governance,
use REST API: https://localhost:9443/api/identity/user/v0.9/me to self
signup to IS.

Click on the confirmation link sent to provided email of self signed user
and follow the dialog.

It get redirected to
https://localhost:9443/accountrecoveryendpoint/%7B%7Bcallback%7D%7D which
is a broken page.

But when self signup to IS using dashboard APP UI, there is no issue with
the email link.

I did some debugging around this and identified following.

Link sent in email are as below

01. via Dashboard UI :
  https://localhost:9443/accountrecoveryendpoint/confirmregistration.do?
confirmation=dc2ef6fe-6a53-49e3-a3ad-776b78f699d4&userstoredomain=PRIMARY&
username=Ayesha7&tenantdomain=carbon.super&callback=https%
3A%2F%2Flocalhost%3A9443%2Fauthenticationendpoint%
2Flogin.do%3FSSOAuthSessionID%3D297252FB3257F6532042516C7CA7
00723D41CDEB868D1E4CE7EF24F2063F35FFC2E39ADA855B7A76B188444B
8E7E1682432D671A75FB54723CACBF508F4342E824449B02D31AED838B72
CF01F342524E150B3E83E152557002EDEEB46A22713D1FA6D983FBD953FC
B32AD9B50AD1EDB9618155F6B70825ED2B132C379B494F0B%26commonAuthCallerPath%3D%
2Fsamlsso%26forceAuth%3Dfalse%26passiveAuth%3Dfalse%
26tenantDomain%3Dcarbon.super%26sessionDataKey%3D37754e53-
b5e2-4c59-8afb-9f3ddd2a3c67%26relyingParty%3Dwso2.my.
dashboard%26type%3Dsamlsso%26sp%3Dwso2_sp_dashboard%26isSaaSApp%3Dtrue%
26authenticators%3DBasicAuthenticator%3ALOCAL

02. via REST API:
https://localhost:9443/accountrecoveryendpoint/confirmregistration.do?
confirmation=cbb8ed93-2f30-497d-8eaa-651969a35b9f&userstoredomain=PRIMARY&
username=Ayesha8&tenantdomain=carbon.super&callback={{callback}}

In 02. {{callback}} URL is not set, as selfUserRegistrationRequestDTO
properties are not set at [1] via API.

Similar behavior is observed if dashboard app UI is used with URL
https://localhost:9443/accountrecoveryendpoint/register.do, where no
callback parameter is set.

email link :   https://localhost:9443/accountrecoveryendpoint/
confirmregistration.do?confirmation=e585cfb6-0bdc-4bbe-ab9f-ed3762ada1f6&
userstoredomain=PRIMARY&username=Ayesha9&tenantdomain=
carbon.super&callback=null

What is the best way to handle this. Should we generate a callback URL if
the request doesn't have it?

[1]
https://github.com/wso2-extensions/identity-governance/blob/master/components/org.wso2.carbon.identity.user.endpoint/src/main/java/org/wso2/carbon/identity/user/endpoint/impl/MeApiServiceImpl.java#L48

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS-5.3.0] Controlling visibility of "Monitor Users Login Sessions" gadget based on permission.

2016-11-23 Thread Ayesha Dissanayaka
Hi all,

As I am working on IDENTITY-5277
<https://wso2.org/jira/browse/IDENTITY-5277> , I have added new set of
permissions to permission tree as below.

​

In the dashboard app, gadget is visible users who has
"/permission/admin/manage/identity/authentication/session/view" permission
or higher.

Session termination is only allowed to users with
"/permission/admin/manage/identity/authentication/session/terminate" or
higher. For that SessionManagementService is secured with this permission.

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS-5.3.0-M5] What is the use of asking for email when "Username Recovery with email notification"

2016-11-22 Thread Ayesha Dissanayaka
Hi,

As I am working on fixing https://wso2.org/jira/browse/IDENTITY-5284, in
the user-name recovery UI we have below two options.

   1. Making First name, Last name and Email mandatory in the recovery UI
   2. Keep them optional and validate at the back-end only if fields are
   provided by the client.

What is the preferred behavior from above considering UX?

Further, backend recovery API doesn't validate First name, Last name and
Email claims as mandatory and tries to find a user based on *provided claim*
values. [1] As of now, this validation returns user-name whenever a
matching user is found based on order of claims. It doesn't consider all
the claims.

>From the client webapp it filter out First name, Last name and Email claims
for user-name recovery along with any other mandatory claims in the system.

[1]
https://github.com/wso2-extensions/identity-governance/blob/master/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/username/NotificationUsernameRecoveryManager.java#L182
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2-extensions%2Fidentity-governance%2Fblob%2Fmaster%2Fcomponents%2Forg.wso2.carbon.identity.recovery%2Fsrc%2Fmain%2Fjava%2Forg%2Fwso2%2Fcarbon%2Fidentity%2Frecovery%2Fusername%2FNotificationUsernameRecoveryManager.java%23L182&sa=D&sntz=1&usg=AFQjCNFVaciYduqr0Q10LuUHi2K7hx62yA>

[2]
https://github.com/wso2/carbon-identity-framework/blob/master/components/identity-mgt/org.wso2.carbon.identity.mgt.endpoint/src/main/webapp/username-recovery.jsp#L45
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2%2Fcarbon-identity-framework%2Fblob%2Fmaster%2Fcomponents%2Fidentity-mgt%2Forg.wso2.carbon.identity.mgt.endpoint%2Fsrc%2Fmain%2Fwebapp%2Fusername-recovery.jsp%23L45&sa=D&sntz=1&usg=AFQjCNGG3uBbYgcQQzHySILythLgJ8I9yw>
Regards,
-Ayesha


On Thu, Oct 27, 2016 at 8:39 PM, Ayesha Dissanayaka  wrote:

> Yes. It is not a good user experience to be able to send random email
> address and still be able to recover information.
>
> Created bug jira https://wso2.org/jira/browse/IDENTITY-5284.
>
> On Thu, Oct 27, 2016 at 6:57 PM, Johann Nallathamby 
> wrote:
>
>> Then we need to open a "Bug" jira and fix it IMO :). The current one can
>> be left as an improvement for future to dynamically decide to show claims
>> to uniquely identify the user.
>>
>> On Thu, Oct 27, 2016 at 6:15 PM, Ayesha Dissanayaka 
>> wrote:
>>
>>>
>>> On Thu, Oct 27, 2016 at 6:07 PM, Johann Nallathamby 
>>> wrote:
>>>
>>>> But then at least we have to make sure all the fields that we show are
>>>> validated. Otherwise as pointed out in the first mail it is confusing for
>>>> the user right? Are the claims configurable? All the claims we show in the
>>>> UI must be validated or we must not show them IMO.
>>>>
>>>
>>> Agreed with Johan.
>>> Same as I mentioned in Jira,
>>>
>>> "As of now if one entry is enough to identify a user in the user stores,
>>> others get discarded. Instead it should ask for more information from user
>>> on demand manner or should validate all the entry values at once."
>>>
>>> --
>>> *Ayesha Dissanayaka*
>>> Software Engineer,
>>> WSO2, Inc : http://wso2.com
>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>>> 20, Palmgrove Avenue, Colombo 3
>>> E-Mail: aye...@wso2.com 
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Technical Lead & Product Lead of WSO2 Identity Server
>> Governance Technologies Team
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+9476950*
>> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>>
>
>
>
> --
> *Ayesha Dissanayaka*
> Software Engineer,
> WSO2, Inc : http://wso2.com
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
> 20, Palmgrove Avenue, Colombo 3
> E-Mail: aye...@wso2.com 
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-11-02 Thread Ayesha Dissanayaka
Hi Abimaran,

If this helps, wso2is-5.2.0/modules/carbon/  module comes from a
jaggery-extension , carbon [1].

This dependency in product-is can be found at [2].

[1] https://github.com/wso2/jaggery-extensions/tree/release-1.5.3/carbon
[2]
https://github.com/wso2/product-is/blob/release-5.2.0/modules/p2-profile-gen/pom.xml#L1287

Thanks!
-Ayesha


On Mon, Oct 31, 2016 at 3:34 PM, Abimaran Kugathasan 
wrote:

> Hi,
>
> The reason for asking this, in Identity Server 5.2.0, after installing Key
> Manager feature, dashboard doesn't work. Through Key Manager feature,
> following bundles are installed
>
> om.google.gson_2.2.4.jar,
> maven-scm_1.7.0.wso2v2.jar,
> org.apache.velocity_1.7.0.jar,
> org.wso2.carbon.apimgt.api_6.0.4.jar,
> org.wso2.carbon.apimgt.gateway.stub_6.0.4.jar,
> org.wso2.carbon.apimgt.handlers.security.stub_6.0.4.jar,
> org.wso2.carbon.apimgt.impl_6.0.4.jar,
> org.wso2.carbon.apimgt.keymgt_6.0.4.jar,
> org.wso2.carbon.apimgt.keymgt.client_6.0.4.jar,
> org.wso2.carbon.apimgt.keymgt.stub_6.0.4.jar,
> org.wso2.carbon.apimgt.statsupdate.stub_6.0.4.jar,
> org.wso2.carbon.apimgt.tier.cache.stub_6.0.4.jar,
> org.wso2.carbon.event.processor.stub_2.1.4.jar,
> org.wso2.carbon.governance.api_4.7.1.jar,
> org.wso2.carbon.identity.user.registration.stub_5.2.0.jar,
> org.wso2.carbon.registry.extensions_4.6.0.jar,
> pdfbox_1.8.10.wso2v2.jar,
> wso2-uri-templates_1.6.5.jar
>
> When I diagnose each bundle, I can see following error for
> org.wso2.carbon.governance.api_4.7.1 bundle
>
> osgi> diag 272
> reference:file:../plugins/org.wso2.carbon.governance.api_4.7.1.jar [272]
>   Direct constraints which are unresolved:
> Missing optionally imported package org.wso2.carbon.registry.
> indexing.service_4.6.0.
>
> Since artifacts.js is accessing registry content, I suspect, this could
> be an issue with not satisfying above constraint, but it was marked as
> optional.
>
> Please put some shades on.
>
>
>
> On Thu, Oct 27, 2016 at 5:05 PM, Abimaran Kugathasan 
> wrote:
>
>> Any hint on this?
>>
>> On Thu, Oct 27, 2016 at 10:12 AM, Abimaran Kugathasan 
>> wrote:
>>
>>> Hi IS/Registry Teams,
>>>
>>>
>>> I want to know the usage of 
>>> wso2is-5.2.0/modules/carbon/scripts/registry/artifacts.js
>>> script?
>>>
>>> It was referred through wso2is-5.2.0/modules/carbon/scripts/module.xml
>>> and wso2is-5.2.0/modules/carbon/module.xml files.
>>>
>>> I guess, Identity Server doesn't use any registry related
>>> functionalities and this was shipped by some carbon kernel features. Please
>>> confirm.
>>>
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>> Senior Software Engineer - API Technologies
>>>
>>> Email : abima...@wso2.com
>>> Mobile : +94 773922820
>>>
>>> <http://stackoverflow.com/users/515034>
>>> <http://lk.linkedin.com/in/abimaran>
>>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>>> <https://twitter.com/abimaran>
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820
>>
>> <http://stackoverflow.com/users/515034>
>> <http://lk.linkedin.com/in/abimaran>
>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>> <https://twitter.com/abimaran>
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820
>
> <http://stackoverflow.com/users/515034>
> <http://lk.linkedin.com/in/abimaran>
> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
> <https://twitter.com/abimaran>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS-5.3.0-M5] User-name recovery for users in secondary user-store and email users

2016-10-31 Thread Ayesha Dissanayaka
t; at
> org.wso2.carbon.user.core.common.AbstractUserStoreManager.callSecure(AbstractUserStoreManager.java:158)
> ... 75 more
> Caused by: java.lang.reflect.InvocationTargetException
> 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.wso2.carbon.user.core.common.AbstractUserStoreManager$2.run(AbstractUserStoreManager.java:161)
> ... 77 more
> Caused by: org.wso2.carbon.user.core.UserStoreException: UserNotFound:
> User pushdoes not exist in: PRIMARY
> at
> org.wso2.carbon.user.core.common.AbstractUserStoreManager.getUserClaimValue(AbstractUserStoreManager.java:594)
> ... 82 more
>


   - AccountConfirmationValidationHandler[2] tries to verify whether the
   user-account is locked when handling PRE_AUTHENTICATION.When trying to
   retrieve account lock claim an exception is thrown and it terminates the
   authentication flow. User is only searched within PRIMARY user store.


   - When AccountConfirmationValidationHandler is disabled I am able to
   login to dashboard without userstore domain name.


   - The other concern is checking for account lock claim of a particular
   user before authenticate will block users with same name in secondary users
   stores getting authenticated

What is the best way to handle this scenarios?
[1]
https://github.com/wso2/carbon-kernel/blob/release-4.4.9/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/common/AbstractUserStoreManager.java#L476
[2]
https://github.com/wso2-extensions/identity-governance/blob/master/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/handler/AccountConfirmationValidationHandler.java#L72

Thanks!
-Ayesha


On Mon, Oct 31, 2016 at 1:55 PM, Ayesha Dissanayaka  wrote:

>
> On Fri, Oct 28, 2016 at 6:02 PM, Darshana Gunawardana 
> wrote:
>
>>
>> This should be possible. Are you getting any errors in UI or in console?
>> If not can you enable debug logs in user.core and see any error getting
>> printed?
>>
>
> No errors in the backend.
>
> In the UI it shows below error message.
>
> "Login failed! Please recheck the username and password and try again."
>
> When I try "TEST/ayesha" as username, I can login.
>
> I have enabled debug logs for user core and below are the logs in two
> cases.
>
> *without userstore name, username only "ayesha"*
>
>> [2016-10-31 13:35:22,837] DEBUG 
>> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager}
>> -  Searching for user ayesha003
>> [2016-10-31 13:35:22,844] DEBUG 
>> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager}
>> -  Searching for user with SearchFilter: 
>> (&(objectClass=person)(uid=ayesha003))
>> in SearchBase:
>> [2016-10-31 13:35:22,855] DEBUG 
>> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager}
>> -  Name in space for ayesha003 is null
>> [2016-10-31 13:35:22,856] DEBUG 
>> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager}
>> -  User: ayesha003 exist: false
>> [2016-10-31 13:35:22,863] DEBUG 
>> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager}
>> -  Searching for user ayesha003
>> [2016-10-31 13:35:22,866] DEBUG 
>> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager}
>> -  Searching for user with SearchFilter: 
>> (&(objectClass=person)(uid=ayesha003))
>> in SearchBase:
>> [2016-10-31 13:35:22,870] DEBUG 
>> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager}
>> -  Name in space for ayesha003 is null
>> [2016-10-31 13:35:22,870] DEBUG 
>> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager}
>> -  User: ayesha003 exist: false
>>
>
>
> *with userstore name "TEST2/ayesha"*
>>
>> *[2016-10-31 13:36:10,657] DEBUG
>> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Searching
>> for user ayesha003*
>> *[2016-10-31 13:36:10,663] DEBUG
>> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Searching
>> for user with SearchFilter: (&(objectClass=person)(uid=ayesha003)) in
>> SearchBase: *
>> *[2016-10-31 13:36:10,666] DEBUG
>> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  *Name
>> in space for ayesha003 is uid=ayesha003,ou=Users,dc=wso2,dc=org
>> *[2016-10-31 13:36:10,666] DEBUG
>> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  User:
>> ayesha003 exist: tr

Re: [Dev] [IS-5.3.0-M5] User-name recovery for users in secondary user-store and email users

2016-10-31 Thread Ayesha Dissanayaka
On Fri, Oct 28, 2016 at 6:02 PM, Darshana Gunawardana 
wrote:

>
> This should be possible. Are you getting any errors in UI or in console?
> If not can you enable debug logs in user.core and see any error getting
> printed?
>

No errors in the backend.

In the UI it shows below error message.

"Login failed! Please recheck the username and password and try again."

When I try "TEST/ayesha" as username, I can login.

I have enabled debug logs for user core and below are the logs in two
cases.

*without userstore name, username only "ayesha"*

> [2016-10-31 13:35:22,837] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Searching
> for user ayesha003
> [2016-10-31 13:35:22,844] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Searching
> for user with SearchFilter: (&(objectClass=person)(uid=ayesha003)) in
> SearchBase:
> [2016-10-31 13:35:22,855] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Name in
> space for ayesha003 is null
> [2016-10-31 13:35:22,856] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  User:
> ayesha003 exist: false
> [2016-10-31 13:35:22,863] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Searching
> for user ayesha003
> [2016-10-31 13:35:22,866] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Searching
> for user with SearchFilter: (&(objectClass=person)(uid=ayesha003)) in
> SearchBase:
> [2016-10-31 13:35:22,870] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Name in
> space for ayesha003 is null
> [2016-10-31 13:35:22,870] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  User:
> ayesha003 exist: false
>


*with userstore name "TEST2/ayesha"*
>
> *[2016-10-31 13:36:10,657] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Searching
> for user ayesha003*
> *[2016-10-31 13:36:10,663] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Searching
> for user with SearchFilter: (&(objectClass=person)(uid=ayesha003)) in
> SearchBase: *
> *[2016-10-31 13:36:10,666] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  *Name in
> space for ayesha003 is uid=ayesha003,ou=Users,dc=wso2,dc=org
> *[2016-10-31 13:36:10,666] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  User:
> ayesha003 exist: true*
> *[2016-10-31 13:36:10,666] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Searching
> for user ayesha003*
> *[2016-10-31 13:36:10,667] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  value
> after escaping special characters in ayesha003 : ayesha003*
> *[2016-10-31 13:36:10,667] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  User:
> ayesha003 exist: true*
> *[2016-10-31 13:36:10,684] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Searching
> for user with SearchFilter: (&(objectClass=person)(uid=ayesha003)) in
> SearchBase:*


Created https://wso2.org/jira/browse/IDENTITY-5291 to track this.

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS-5.3.0-M5] User-name recovery for users in secondary user-store and email users

2016-10-28 Thread Ayesha Dissanayaka
Understood. IMO, in a default pack we should send the tenant domain append
to username in the recovery email, shouldn't we?
And configuration points should be properly documented.

On Fri, Oct 28, 2016 at 4:50 PM, Johann Nallathamby  wrote:

> So questions is why you cannot login to without giving userstore domain?


Yes. As of now without giving user-store domain, user cannot login to
portal.

The other concern is that how can we recover a username in a tenant domain.
I observe that when we make a username recovery request via username
recover page, it doesn't account for tenant information. And in the
server-side, user is only searched within the super tenant user stores. Do
we have alternative to recover tenant usernames?

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS-5.3.0-M5] User-name recovery for users in secondary user-store and email users

2016-10-28 Thread Ayesha Dissanayaka
Hi,

In IS-5.3.0-M5, configured a secondary user-store _TEST_ and added a user
with username "ayesha" into TEST domain. Then updated profile information,
Firstname, Lastname and email accordingly. Now from dashboad app when
trying to recover username for this user, the email sent to ayesha's email
address says the username is "ayesha".

However, we cannot login to dashboad with username "ayesha" as it is in
secondary user-store. Instead has to use TEST/ayesha as the username.

In this case shouldn't the recovery email send the username along with
domain name.(ex: TEST/ayesha)?

Similarly, when email username is used (ex: aye...@wso2.com) in-order to
login to dashboard app need to provide tenant domain as well. (i.e.
aye...@wso2.com@carbon.super). But recovery email sends the username as "
aye...@wso2.com" which is not able to log-into dashboard.

What should be the correct behavior here?

[Note: To enable email user-names, I only changed relavent reg-ex in
user-mgt.xml.  Didn't enable EnableEmailUserName property in carbon.xml,
since it blocks working with tenant users]

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS-5.3.0] User experience for self signed-up users in dashboard app in a default pack

2016-10-27 Thread Ayesha Dissanayaka
On Thu, Oct 27, 2016 at 6:56 PM, Johann Nallathamby  wrote:

> Why do we need to have login permission for "selfsignup" role. We don't
> need to. "login" permission is to login to management console. We don't
> expect self signup users to login to management console. They can only
> login to dashboard, and for that we should not need "login" permission. Can
> you check if dashboard functions without "login" permission.


I tested removing 'login' permission from the "selfsignup" role and user is
unable to login to dashboard app without 'login' permission.

With below logs in console,
[2016-10-27 20:47:17,346] ERROR
{org.wso2.carbon.identity.authenticator.saml2.sso.SAML2SSOAuthenticator} -
Authentication Request is rejected. Authorization Failure.
[2016-10-27 20:47:17,347]  WARN
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  Failed
Administrator login attempt 'Ayesha[-1234]' at [2016-10-27
20:47:17,347+0530]



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS-5.3.0-M5] What is the use of asking for email when "Username Recovery with email notification"

2016-10-27 Thread Ayesha Dissanayaka
Yes. It is not a good user experience to be able to send random email
address and still be able to recover information.

Created bug jira https://wso2.org/jira/browse/IDENTITY-5284.

On Thu, Oct 27, 2016 at 6:57 PM, Johann Nallathamby  wrote:

> Then we need to open a "Bug" jira and fix it IMO :). The current one can
> be left as an improvement for future to dynamically decide to show claims
> to uniquely identify the user.
>
> On Thu, Oct 27, 2016 at 6:15 PM, Ayesha Dissanayaka 
> wrote:
>
>>
>> On Thu, Oct 27, 2016 at 6:07 PM, Johann Nallathamby 
>> wrote:
>>
>>> But then at least we have to make sure all the fields that we show are
>>> validated. Otherwise as pointed out in the first mail it is confusing for
>>> the user right? Are the claims configurable? All the claims we show in the
>>> UI must be validated or we must not show them IMO.
>>>
>>
>> Agreed with Johan.
>> Same as I mentioned in Jira,
>>
>> "As of now if one entry is enough to identify a user in the user stores,
>> others get discarded. Instead it should ask for more information from user
>> on demand manner or should validate all the entry values at once."
>>
>> --
>> *Ayesha Dissanayaka*
>> Software Engineer,
>> WSO2, Inc : http://wso2.com
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>> 20, Palmgrove Avenue, Colombo 3
>> E-Mail: aye...@wso2.com 
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Technical Lead & Product Lead of WSO2 Identity Server
> Governance Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS-5.3.0-M5] What is the use of asking for email when "Username Recovery with email notification"

2016-10-27 Thread Ayesha Dissanayaka
On Thu, Oct 27, 2016 at 6:07 PM, Johann Nallathamby  wrote:

> But then at least we have to make sure all the fields that we show are
> validated. Otherwise as pointed out in the first mail it is confusing for
> the user right? Are the claims configurable? All the claims we show in the
> UI must be validated or we must not show them IMO.
>

Agreed with Johan.
Same as I mentioned in Jira,

"As of now if one entry is enough to identify a user in the user stores,
others get discarded. Instead it should ask for more information from user
on demand manner or should validate all the entry values at once."

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS-5.3.0] User experience for self signed-up users in dashboard app in a default pack

2016-10-27 Thread Ayesha Dissanayaka
Hi all,

While testing 5.3.0-M5, I came across below concerns around user self
sign-up.

The user experience is broken for a *self registered user* in a *default
pack* and I have reported them in IDENTITY-5271
<https://wso2.org/jira/browse/IDENTITY-5271> with reproducing steps and
sub-tasks.

   1. User Profile Gadget doesn't work properly
   2. Unable to update Recovery Information
   3. Access Denied for Associated Accounts Gadget
   4. Monitor Users Login Sessions gadget only should be available to users
   who have admin permission

It seems cause for most of the cases is not having required permissions for
the selfsigned-up user. The "Internal/selfsignup" role only has login
permission in the tree. However, in a default pack this user experience
seems not nice.

WDYT?

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS-5.3.0-M5] What is the use of asking for email when "Username Recovery with email notification"

2016-10-27 Thread Ayesha Dissanayaka
That makes sense.

I have created IDENTITY-5283 <https://wso2.org/jira/browse/IDENTITY-5283>
in order to track this as an improvement.

On Thu, Oct 27, 2016 at 5:23 PM, Darshana Gunawardana 
wrote:

> As per the initial design, these entries used to filter a unique user. No
> more validations.
>
> If two users in the system having the firstname 'Darshana' then it will
> check for the last name to get the unique user and keep on using additional
> attributes until it can point to a unique user.
>
> We should be able to change the entries that show in this recovery UI as
> well.
>
>
>
> On Thu, Oct 27, 2016 at 4:56 PM, Johann Nallathamby 
> wrote:
>
>> Those claims are asked for user verification. Ideally the email you give
>> here must match the one in your profile and it must be used to send the
>> mail. If its working with two email addresses then there is some
>> configuration issue.
>>
>> On Thu, Oct 27, 2016 at 4:50 PM, Ayesha Dissanayaka 
>> wrote:
>>
>>> Hi,
>>>
>>> While testing 5.3.0-M5, I observe that it asks for below entires in
>>> order to recover the username.
>>>
>>>-
>>> *First name *
>>>-
>>> *Last name *
>>>- *Email*
>>>
>>> Regardless of the value that we provide for *Email* field in User-name
>>> Recovery page, correct username is emailed to the email address provided in
>>> the user profile, if correct First name and Last name is provided.
>>>
>>> What is the purpose of asking for email here in recovery page?
>>>
>>> Regards,
>>> -Ayesha
>>>
>>> --
>>> *Ayesha Dissanayaka*
>>> Software Engineer,
>>> WSO2, Inc : http://wso2.com
>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>>> 20, Palmgrove Avenue, Colombo 3
>>> E-Mail: aye...@wso2.com 
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Technical Lead & Product Lead of WSO2 Identity Server
>> Governance Technologies Team
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+9476950*
>> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>>
>
>
>
> --
> Regards,
>
>
> *Darshana Gunawardana*Associate Technical Lead
> WSO2 Inc.; http://wso2.com
>
> *E-mail: darsh...@wso2.com *
> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS-5.3.0-M5] What is the use of asking for email when "Username Recovery with email notification"

2016-10-27 Thread Ayesha Dissanayaka
Hi,

While testing 5.3.0-M5, I observe that it asks for below entires in order
to recover the username.

   -
*First name *
   -
*Last name *
   - *Email*

Regardless of the value that we provide for *Email* field in User-name
Recovery page, correct username is emailed to the email address provided in
the user profile, if correct First name and Last name is provided.

What is the purpose of asking for email here in recovery page?

Regards,
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] What are the REST APIs in WSO2IS-5.3.0 that need to be secured?

2016-10-21 Thread Ayesha Dissanayaka
On Thu, Oct 20, 2016 at 9:36 PM, Isura Karunaratne  wrote:

> We need to secure recovery APIs and self-registration APIs (
> *api/identity/recovery* and *api/identity/user*).
>

I've been looking at securing self-registration APIs (*api/identity/user) *with
Generic Authentication Mechanism to all the REST APIs in [1] for the
purpose of testing IDENTITY-4742 feature.

Wires in IDENTITY-4742 works as expected. However few concerns were raised
as I was testing self-registration REST API.

   1. What is the correct Authentication mechanism for securing this API ?
   MutualAuth??
   2. When basicAuth headers are sent to self-registration API,
   authenticated users can create new users in cross domains(in another
   tenant). Shouldn't this be handled in API level?

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

Regards,
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Enterprise Store 2.1.0 RC 2

2016-08-10 Thread Ayesha Dissanayaka
Hi,

Tested below scenarios.

   - Publisher REST API
   - Store extensions
   - Store/Publisher navigations
   - Store Bookmark

[+] Stable - go ahead and release.


Regards,
-Ayesha


On Wed, Aug 10, 2016 at 6:57 PM, Prasanna Dangalla 
wrote:

> Hi All,
>
> Tested the following scenarios and found no issues.
>
>- Promote lifecycle
>- Version a gadget
>- Filter listing page by categories
>- Add, remove tags
>- Upload images to gadgets
>- Delete a gadget
>- Sort gadget listing page
>- Add Reviews to gadgets
>
>
> [+] Stable - go ahead and release.
>
> Regards,
> *Prasanna Dangalla*
> Senior Software Engineer, WSO2, Inc.; http://wso2.com/
> lean.enterprise.middleware
>
>
> *cell: +94 718 11 27 51*
> *twitter: @prasa77*
>
> On Wed, Aug 10, 2016 at 6:07 PM, Chandana Napagoda 
> wrote:
>
>> Hi All,
>>
>> Tested following scenarios with mounted setup
>>
>> - Publisher Lifecycle Management
>> - Publisher side taxonomy
>> - Multiple Lifecycles
>> - OR and AND search.
>> - Store Taxonomy based filtering
>>
>> Stable pack for release
>>
>> [+] stable
>>
>> Regards,
>> Chandana
>>
>> On Fri, Aug 5, 2016 at 8:40 PM, Sameera Medagammaddegedara <
>> samee...@wso2.com> wrote:
>>
>>> Hi Devs,
>>>
>>> WSO2 Enterprise Store 2.1.0 RC2 Release Vote
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/issues/?filter=13171
>>>
>>> Please download, test and vote. Please refer the release verification
>>> guide for detailed information on verifying this release.
>>>
>>> Source & binary distribution files:
>>>  https://svn.wso2.org/repos/wso2/scratch/ES/2.1.0/rc2/
>>>
>>> Maven staging repo:
>>> https://maven.wso2.org/nexus/content/repositories/orgwso2es-1006/
>>>
>>> The tag to be voted upon:
>>> https://github.com/wso2/product-es/tree/v2.1.0-rc2
>>>
>>>
>>> [+] Stable - go ahead and release
>>> [-]  Broken - do not release (please explain why)
>>>
>>> Thanks and Regards
>>> ES/G-Reg team
>>> --
>>> Sameera Medagammaddegedara
>>> Software Engineer
>>>
>>> Contact:
>>> Email: samee...@wso2.com
>>> Mobile: + 94 077 255 3005
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Chandana Napagoda*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.org
>>
>> *Email  :  chand...@wso2.com **Mobile : +94718169299
>> <%2B94718169299>*
>>
>> *Blog  :http://cnapagoda.blogspot.com <http://cnapagoda.blogspot.com>*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to get the current server-url from a custom Task

2016-07-20 Thread Ayesha Dissanayaka
Hi,

What is the best way to get the ESB server-url from a custom Task
implementation in ESB?

[1] https://docs.wso2.com/display/ESB480/Writing+Tasks

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Publisher Store Separated Setup Documentation Clarifications

2016-05-12 Thread Ayesha Dissanayaka
Please find a small correction on config files inline.

On Thu, May 12, 2016 at 1:06 PM, Ayesha Dissanayaka  wrote:

> 4. Configure single sign-on with the Identity Server. To do this, modify
>> the /repository/deployment/server/jaggeryapps/publisher/config/
>> publisher-tenant.json file with the following. You must configure this
>> for all nodes that
>>
>  This has to be
/repository/deployment/server/jaggeryapps/publisher/config/
publisher.json

> store-tenant.json and publisher-tenant-json
>
> In
> [ES_HOME]/repository/deployment/server/jaggeryapps/publisher/config/publisher-tenant.json
> file change authentication.sso.attributes
>
This has to be [ES_HOME]/repository/deployment/server/jaggeryapps/
publisher/config/publisher.json


> values as below.
>
> "identityProviderURL": "https:// <https://es.wso2.com/samlsso>
> publisher.es-wso2.com <https://publisher.es-wso2.com/samlsso>/samlsso"
>
>
> [ES_HOME]/repository/deployment/server/jaggeryapps/store/config/store-tenant.json
> file change authentication.sso.attributes values as
>
This has to be [ES_HOME]/repository/deployment/server/jaggeryapps/
store/config/store.json


> below.
>
> "identityProviderURL": "https://store.es-wso2.com
> <https://store.es-wso2.com/samlsso>
> <https://publisher.es-wso2.com/samlsso>/samlsso"
>
> Additionally in
> [ES_HOME]/repository/deployment/server/jaggeryapps/store/config/store-tenant.json
> change features.social.keys.
>
This has to be [ES_HOME]/repository/deployment/server/jaggeryapps/
store/config/store.json


> socialAppUrl value as,
>
> "socialAppUrl": "https://store.es-wso2.com/social
> <https://es.wso2.com/social>"
>



Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Publisher Store Separated Setup Documentation Clarifications

2016-05-12 Thread Ayesha Dissanayaka
Hi Isuru,

In [1] it explains configuring SSO with internal IS components.(not
external Identity Server).

However, I see that it is missing some information and need to be corrected
at the point you mentioned above.

   1. Information that is mentioned in [2] has to be updated.
   2. Below section need to be moved to "*Configuring clustering for the
   publisher nodes*" section in [1]. Corresponding configurations need to
   be added to *"Configuring clustering for the store nodes" *section as
   well.(refer the Note at the end of this email).

4. Configure single sign-on with the Identity Server. To do this, modify
> the /repository/deployment/server/jaggeryapps/publisher/config/
> publisher-tenant.json file with the following. You must configure this
> for all nodes that require single sign-on.
> "authentication":{
> "activeMethod":"sso",
> "methods":{
> "sso":{
> "attributes":{
> "issuer":"publisher",
> "identityProviderURL":"
> https://publisher.es-wso2.com/samlsso";,
> <https://publisher.es-wso2.com/samlsso>
> "keyStorePassword":"wso2carbon",
> "identityAlias":"wso2carbon",
> "responseSigningEnabled":"true",
> "acs":"%https.host%/publisher/acs",
>
> "keyStoreName":"/repository/resources/security/wso2carbon.jks"
> }
> },
> "basic":{
> "attributes":{
> }
> }
> }
> }
>
  Referring to above highlighted section,we have to clearly
mention that SSO is configured with Identity components within the ES
server and correct config file.

Note:
store-tenant.json and publisher-tenant-json

In
[ES_HOME]/repository/deployment/server/jaggeryapps/publisher/config/publisher-tenant.json
file change authentication.sso.attributes values as below.

"identityProviderURL": "https:// <https://es.wso2.com/samlsso>
publisher.es-wso2.com <https://publisher.es-wso2.com/samlsso>/samlsso"


[ES_HOME]/repository/deployment/server/jaggeryapps/store/config/store-tenant.json
file change authentication.sso.attributes values as below.

"identityProviderURL": "https://store.es-wso2.com
<https://store.es-wso2.com/samlsso> <https://publisher.es-wso2.com/samlsso>
/samlsso"

Additionally in
[ES_HOME]/repository/deployment/server/jaggeryapps/store/config/store-tenant.json
change features.social.keys.socialAppUrl value as,

"socialAppUrl": "https://store.es-wso2.com/social
<https://es.wso2.com/social>"


Note: If you have started the server before you will have log into
management console and make the changes in above step in
/_system/config/publisher/configs/publisher.json and
 /_system/config/store/configs/store.json


Enabling sticky sessions in load balancer is important.


@DocTeam: Can you please update above information.


[1]. https://docs.wso2.com/display/CLUSTER44x/Clustering+ES+2.0.0
[2].  https://wso2.org/jira/browse/DOCUMENTATION-2704
<https://wso2.org/jira/browse/DOCUMENTATION-2704>

Thanks!
-Ayesha



On Wed, May 11, 2016 at 7:32 AM, Isuru Haththotuwa  wrote:

> Hi Devs,
>
> In ES 2.0.0 distributed deployment documentation [1], it is mentioned that
> its using SSO with Identity Server. However, the store node's
> publisher.json file's identityProviderURL is pointing to the publisher node
> [2]. Is this intentional? Are we using the Publisher node also as an IDP?
> If so, shouldn't both Publisher and Store point to the same IDP URL?
>
> [1]. https://docs.wso2.com/display/CLUSTER44x/Clustering+ES+2.0.0
>
> [2]. "identityProviderURL":"https://publisher.es-wso2.com/samlsso";,
> <https://publisher.es-wso2.com/samlsso>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* <http://wso2.com/>*
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What are the features that enable federated authentication

2016-04-19 Thread Ayesha Dissanayaka
Hi,

I tried to install Inbound-Authentication feature from greg-5.1.0
management console UI from the feature repository [1]. However, it didn't
get success due to depending version mismatch. i.e. relevant feature
version of [1] is 5.0.7 while available identity features are 4.5.6

In feature repository [1], I cannot see 4.5.6 version of
inbound-authentication.
Is it intensional not having those versions there or how to resolve this UI
feature installation?

Your original install request has been modified.
> org.wso2.carbon.identity.application.authentication.framework.server.feature.group-4.5.6
> is already installed, so an update will be performed instead. Cannot
> complete the install because of a conflicting dependency. Software being
> installed: Application Authentication Framework Server Feature 5.0.7
> (org.wso2.carbon.identity.application.authentication.framework.server.feature.group
> 5.0.7) Software currently installed: Identity Provider Management Server
> Feature 4.5.6 (org.wso2.carbon.idp.mgt.server.feature.group 4.5.6) Only one
> of the following can be installed at once: Identity Provider Management
> Server Feature 5.0.7 (org.wso2.carbon.idp.mgt.server.feature.jar 5.0.7)
> Identity Provider Management Server Feature 4.5.6
> (org.wso2.carbon.idp.mgt.server.feature.jar 4.5.6) Cannot satisfy
> dependency: From: Application Authentication Framework Server Feature 5.0.7
> (org.wso2.carbon.identity.application.authentication.framework.server.feature.group
> 5.0.7) To: org.wso2.carbon.idp.mgt.server.feature.group [5.0.7,5.1.0)
> Cannot satisfy dependency: From: Identity Provider Management Server
> Feature 4.5.6 (org.wso2.carbon.idp.mgt.server.feature.group 4.5.6) To:
> org.wso2.carbon.idp.mgt.server.feature.jar [4.5.6] Cannot satisfy
> dependency: From: Identity Provider Management Server Feature 5.0.7
> (org.wso2.carbon.idp.mgt.server.feature.group 5.0.7) To:
> org.wso2.carbon.idp.mgt.server.feature.jar [5.0.7]


What I am trying to achieve here is to enable Google authentication for
standalone Greg Store/Publisher. I was able to do this with an external IS
server, now trying to get it work with standalone GREG server.

[1] http://product-dist.wso2.com/p2/carbon/releases/wilkes/

Thanks!
-Ayesha


On Tue, Apr 19, 2016 at 9:31 AM, Ayesha Dissanayaka  wrote:

> Thanks for the information Johann.
>
> I will try this.
>
> On Mon, Apr 18, 2016 at 11:15 PM, Johann Nallathamby 
> wrote:
>
>> Hi Ayehsa,
>>
>> [1] is the nested category for SSO. If you are installing directly from
>> UI installing this category should do it.
>>
>> Otherwise if you are installing it through p2 plugin, according to [1]
>> you need to install,
>> 1. org.wso2.carbon.identity.application.authentication.framework.server
>> 2. org.wso2.carbon.identity.application.mgt
>>
>> Along with this you may need to install identity.core.feautre,
>> claim.mgt.feature, and there can be other features required when installing
>> p2. If so it will fail installation and give you an error and you can find
>> out. I am not sure if this can be  listed down in advance.
>>
>> [1]
>> https://github.com/wso2/identity-framework/blob/master/features/categories/inbound-authentication/pom.xml
>>
>> On Mon, Apr 18, 2016 at 7:13 PM, Ayesha Dissanayaka 
>> wrote:
>>
>>> Hi all,
>>>
>>> I am trying to enable managing Service Providers from GREG-5.1.0
>>> management console to use Federated authentication for Store/Publisher.
>>> Currently it seems GREG-5.1.0 does not have necessary features.
>>>
>>> Can someone point me which feature(s) need to be installed from [2] in
>>> order to enable this.
>>>
>>> [1] https://docs.wso2.com/display/IS510/Federated+Authentication
>>> [2] http://product-dist.wso2.com/p2/carbon/releases/wilkes/
>>>
>>> Thanks!
>>> Ayesha
>>> --
>>> *Ayesha Dissanayaka*
>>> Software Engineer,
>>> WSO2, Inc : http://wso2.com
>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>>> 20, Palmgrove Avenue, Colombo 3
>>> E-Mail: aye...@wso2.com 
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Technical Lead & Product Lead of WSO2 Identity Server
>> Governance Technologies Team
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+9476950*
>> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>>
>
>
>
> --
> *Ayesha Dissanayaka*
> Software Engineer,
> WSO2, Inc : http://wso2.com
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
> 20, Palmgrove Avenue, Colombo 3
> E-Mail: aye...@wso2.com 
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What are the features that enable federated authentication

2016-04-18 Thread Ayesha Dissanayaka
Thanks for the information Johann.

I will try this.

On Mon, Apr 18, 2016 at 11:15 PM, Johann Nallathamby 
wrote:

> Hi Ayehsa,
>
> [1] is the nested category for SSO. If you are installing directly from UI
> installing this category should do it.
>
> Otherwise if you are installing it through p2 plugin, according to [1] you
> need to install,
> 1. org.wso2.carbon.identity.application.authentication.framework.server
> 2. org.wso2.carbon.identity.application.mgt
>
> Along with this you may need to install identity.core.feautre,
> claim.mgt.feature, and there can be other features required when installing
> p2. If so it will fail installation and give you an error and you can find
> out. I am not sure if this can be  listed down in advance.
>
> [1]
> https://github.com/wso2/identity-framework/blob/master/features/categories/inbound-authentication/pom.xml
>
> On Mon, Apr 18, 2016 at 7:13 PM, Ayesha Dissanayaka 
> wrote:
>
>> Hi all,
>>
>> I am trying to enable managing Service Providers from GREG-5.1.0
>> management console to use Federated authentication for Store/Publisher.
>> Currently it seems GREG-5.1.0 does not have necessary features.
>>
>> Can someone point me which feature(s) need to be installed from [2] in
>> order to enable this.
>>
>> [1] https://docs.wso2.com/display/IS510/Federated+Authentication
>> [2] http://product-dist.wso2.com/p2/carbon/releases/wilkes/
>>
>> Thanks!
>> Ayesha
>> --
>> *Ayesha Dissanayaka*
>> Software Engineer,
>> WSO2, Inc : http://wso2.com
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>> 20, Palmgrove Avenue, Colombo 3
>> E-Mail: aye...@wso2.com 
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Technical Lead & Product Lead of WSO2 Identity Server
> Governance Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] What are the features that enable federated authentication

2016-04-18 Thread Ayesha Dissanayaka
Hi all,

I am trying to enable managing Service Providers from GREG-5.1.0 management
console to use Federated authentication for Store/Publisher. Currently it
seems GREG-5.1.0 does not have necessary features.

Can someone point me which feature(s) need to be installed from [2] in
order to enable this.

[1] https://docs.wso2.com/display/IS510/Federated+Authentication
[2] http://product-dist.wso2.com/p2/carbon/releases/wilkes/

Thanks!
Ayesha
-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [GREG-5.2.0] Writing extension to replicate more artifact metadata in Store

2016-04-11 Thread Ayesha Dissanayaka
Hi,

I have written this blog-post
<http://asadistechspace.blogspot.com/2016/04/wso2greg-520-writing-extension-to.html#.Vwu0Dl4hv7A>[1]
on how to extend  WSO2GREG-5.2.0 - using Store extensions to replicate more
artifact metadata in Store other than the default fields.

@Praneesha: Please, include content in GREG-5.2.0 docs as relevant.

[1]
http://asadistechspace.blogspot.com/2016/04/wso2greg-520-writing-extension-to.html#.Vwu0Dl4hv7A

Thanks!
-Ayesha


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Login and Logout error in Store

2016-02-22 Thread Ayesha Dissanayaka
Hi Dinusha,

jaggery 0.12.0 should be fine, since it has pretty much the same jaggery
code content as of jaggery-0.11.2 which is used in greg-5.1.0.  However, we
couldn't completely resolve the issues in some edge cases at
login/logout[2] such as, accessing store/publisher with IP instead of
domain name (ex:localhost) because of some constrains in identity
components.
Are you also getting above error in such scenario?

[1]
https://github.com/wso2/jaggery/compare/release-0.11.2...release-0.12.1?expand=1
[2] G-Reg 5.1.0 code freeze keep delaying ? WAS { Re: Login and Logout
error in Store}

Thanks!
-Ayesha


On Mon, Feb 22, 2016 at 3:07 PM, Dinusha Senanayaka 
wrote:

> Hi Ayesha,
>
> Is there a released version available now with the above fix ? Getting
> same issue in AppM with jaggery.js.feature-0.12.0.
>
> Regards,
> Dinusha.
>
> On Wed, Oct 28, 2015 at 11:21 AM, Ayesha Dissanayaka 
> wrote:
>
>> Hi,
>>
>> On Tue, Oct 27, 2015 at 5:53 PM, Manuranga Perera  wrote:
>>
>>>
>>> add logic to check if instance of session object and set it to session
>>> obj if true else set to request obj
>>>
>>
>> Chanaka and myself tested this fix and it works as expected.
>> Greg team will continue further testing the login/logout scenarios before
>> releasing jaggery and jaggery-extension.
>>
>> Thanks!
>> -Ayesha
>>
>>
>> --
>> *Ayesha Dissanayaka*
>> Software Engineer,
>> WSO2, Inc : http://wso2.com
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>> 20, Palmgrove Avenue, Colombo 3
>> E-Mail: aye...@wso2.com 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Dinusha Dilrukshi
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Selenium UI Testing [GREG/ES - Publisher]

2016-02-09 Thread Ayesha Dissanayaka
Hi Lahiru,

As Rajeenthini has mentioned above, in product-es also we have written a
method *isElementPresent* to check the existence of an element by wrapping
the try-catch at *findElement *method.

Further, Below mail threads may be helpful for you while writing Selenium
UI test.

   - [ES- Integration Test] Custom WebDriver Class for UI test Automation
   -
   [Dev][ES] Selenium UI Integration Test Generation
   - Dev] Reduce the execution speed of Web Driver

[1]
https://github.com/wso2/product-es/blob/514b439c0b608bca4cca81f7c588a7dfeec598ad/modules/integration/tests-ui-integration/ui-test-utils/src/main/java/org/wso2/es/ui/integration/util/ESWebDriver.java#L74

Thanks!
-Ayesha



On Tue, Feb 9, 2016 at 3:34 PM, Lahiru J Ekanayake  wrote:

> Hi ,
>
> I have already tried with wait.until method. It will also return timeout
> exception searching after given timeout.  I think anyway we have to use try
> block to check existences of  an element. I have looked for a method that
> returns ture/false on a given element existence . I'm not sure that kind of
> method already in selenium.
> Thank you for your help.
>
> Regards
>
> On Tue, Feb 9, 2016 at 3:13 PM, Rajeenthini Satkunam  > wrote:
>
>> Hi lahiru,
>>
>> If you need to check that element is present in the current UI, You can
>> go with this method *isElementPresent(By by)*.
>>
>> for example in your case *driver.**isElementPresent*
>> *(By.id("elemnt_id")) *will return true if the element is present in
>> current UI or else it will return false.Hope it will help you.
>>
>> For your reference
>>
>> [1] -
>> https://github.com/wso2/product-ds/blob/master/modules/integration/tests-ui-integration/ui-test-utils/src/main/java/org/wso2/ds/ui/integration/util/DSWebDriver.java#L47
>>
>> On Tue, Feb 9, 2016 at 3:01 PM, Lahiru J Ekanayake 
>> wrote:
>>
>>> Hi ,
>>>
>>> I'm writing selenium tests for GREG publisher UI. When implementing UI
>>> test cases, some situations we need to check whether some elements exists,
>>> before click or make any operations on them.
>>> Selenium provides, *driver.findElement(By.id("elemnt_id")) *
>>> method to find any element by id. Problem is if that element is not
>>> exist , it will return an error, saying
>>> *org.openqa.selenium.NoSuchElementException: Unable to locate
>>> element:{"method":"id","selector":"elemnt_id"}*
>>>
>>> Is there any way to check the existence of any element , without
>>> catching the error? .
>>>
>>>
>>>
>>>
>>> Regards
>>>
>>>
>>>
>>> --
>>>
>>>
>>>
>>> *Lahiru J Ekanayake**Software Engineer*
>>> Mobile : +94 (0) 77 8812629 / +94(0) 778509547
>>> Email : lahi...@wso2.com
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middleware.
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Thank You.*
>>
>> *Rajeenthini Satkunam*
>>
>> *Associate Software Engineer | WSO2*
>>
>>
>> *E:rajeenth...@wso2.com *
>>
>> *M :+94770832823 <%2B94770832823>   *
>>
>>
>
>
> --
>
>
>
> *Lahiru J Ekanayake**Software Engineer*
> Mobile : +94 (0) 77 8812629 / +94(0) 778509547
> Email : lahi...@wso2.com
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middleware.
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Requesting pull request to be merged into app-manager-4.4.1-kernel branch in carbon-store

2016-02-02 Thread Ayesha Dissanayaka
Hi Thilini,

Merged the pull request.


Thanks,
-Ayesha

On Tue, Feb 2, 2016 at 3:01 PM, Thilini Shanika  wrote:

> Hi ES team,
>
> During the integration test run in App Manager, we get a Connection pool
> exhausted exception [1] which has been triggered from social component in
> Enterprise Store. This occurs due to a failure in closing DB connections
> created in warmUpRatingCache method in SQLActivityPublisher.
>
> The issue is already fixed in ES master branch and we need to get the fix
> [2] applied into app-manager-4.4.1-kernel branch also.
>
> [1] - https://wso2.org/jira/browse/APPM-1268
> [2] - https://github.com/wso2/carbon-store/pull/301
>
> Thanks,
> Thilini
>
> --
> Thilini Shanika
> Software Engineer
> WSO2, Inc.; http://wso2.com
> 20, Palmgrove Avenue, Colombo 3
>
> E-mail: tgtshan...@gmail.com
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Requesting a new jenkins build for jaggery-extensions

2016-01-19 Thread Ayesha Dissanayaka
Thanks a lot Maheshika :)

On Tue, Jan 19, 2016 at 1:25 PM, Maheshika Goonetilleke 
wrote:

> Hi Ayesha
>
> Created [1] as requested. Please check.
>
> [1] https://wso2.org/jenkins/job/jaggery-extensions_1.4.x/
>
> On Tue, Jan 19, 2016 at 12:40 PM, Sagara Gunathunga 
> wrote:
>
>>
>>
>> On Tue, Jan 19, 2016 at 12:34 PM, Ayesha Dissanayaka 
>> wrote:
>>
>>> Hi Maheshika,
>>>
>>> Can we get a new jenkins build job for the "1.4.5-SNAPSHOT-temp" branch
>>> of jaggery-extensions repository [1].
>>>
>>
>> Please don't use "-temp" use something meaningful so that others can
>> understand the purpose of this job.
>>
>> Thanks !
>>
>>>
>>> This is because, as of now we are maintaining two active branches of
>>> jaggery-extensions [2].
>>>
>>>-master
>>>   - depend on 0.12.0
>>>-1.4.5-SNAPSHOT-temp
>>>   - depend on 0.11.2
>>>
>>>
>>> For repositories product-greg[3] and product-es[4], we are pointing to
>>> 1.4.5-SNAPSHOT-temp since these repositories are not yet moved to jaggery
>>> 0.12.0 which depends on identity major version- 5.x.x
>>>
>>> [1] https://github.com/wso2/jaggery-extensions/tree/1.4.5-SNAPSHOT-temp
>>> [2] https://github.com/wso2/jaggery-extensions/
>>> [3] https://github.com/wso2/product-greg
>>> [4] https://github.com/wso2/product-es
>>>
>>> Thanks!
>>> -Ayesha
>>>
>>> --
>>> *Ayesha Dissanayaka*
>>> Software Engineer,
>>> WSO2, Inc : http://wso2.com
>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>>> 20, Palmgrove Avenue, Colombo 3
>>> E-Mail: aye...@wso2.com 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Architect; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
>
> --
>
> Thanks & Best Regards,
>
> Maheshika Goonetilleke
> Engineering Process Coordinator
>
> *WSO2 Inc*
> *email   : mahesh...@wso2.com *
> *mobile : +94 773 596707 <%2B94%20773%20596707>*
> *www: :http://wso2.com <http://wso2.com/>*lean . enterprise . middleware
>
>
>
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Requesting a new jenkins build for jaggery-extensions

2016-01-18 Thread Ayesha Dissanayaka
Hi Maheshika,

On Tue, Jan 19, 2016 at 12:34 PM, Ayesha Dissanayaka 
wrote:

> Can we get a new jenkins build job for the "1.4.5-SNAPSHOT-temp" branch of
> jaggery-extensions repository [1].


Branch to be pointed by new jenkins build should be 1.4.x [5]
Sorry about the mistake.

[5] https://github.com/wso2/jaggery-extensions/tree/1.4.x

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Requesting a new jenkins build for jaggery-extensions

2016-01-18 Thread Ayesha Dissanayaka
Hi Maheshika,

Can we get a new jenkins build job for the "1.4.5-SNAPSHOT-temp" branch of
jaggery-extensions repository [1].

This is because, as of now we are maintaining two active branches of
jaggery-extensions [2].

   -master
  - depend on 0.12.0
   -1.4.5-SNAPSHOT-temp
  - depend on 0.11.2


For repositories product-greg[3] and product-es[4], we are pointing to
1.4.5-SNAPSHOT-temp since these repositories are not yet moved to jaggery
0.12.0 which depends on identity major version- 5.x.x

[1] https://github.com/wso2/jaggery-extensions/tree/1.4.5-SNAPSHOT-temp
[2] https://github.com/wso2/jaggery-extensions/
[3] https://github.com/wso2/product-greg
[4] https://github.com/wso2/product-es

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [dev] DS test fixes after UI changes.

2015-12-17 Thread Ayesha Dissanayaka
Created ui-test-fixes branch in carbon-dashboards as well.

[2] https://github.com/wso2/carbon-dashboards/tree/ui-test-fixes

Thanks!
-Ayesha

On Fri, Dec 18, 2015 at 10:41 AM, Ayesha Dissanayaka 
wrote:

> Hi all,
>
> I have created new branch *ui-test-fixes* in product-ds repo in-order to
> perform test fixes. All the PRs related to these test fixes, please send
> them to this branch. As discussed once all the test related changes are
> done, we'll merge this branch to the master.
>
> [1] https://github.com/wso2/product-ds/tree/ui-test-fixes
>
> Thanks!
> -Ayesha
> --
> *Ayesha Dissanayaka*
> Software Engineer,
> WSO2, Inc : http://wso2.com
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
> 20, Palmgrove Avenue, Colombo 3
> E-Mail: aye...@wso2.com 
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [dev] DS test fixes after UI changes.

2015-12-17 Thread Ayesha Dissanayaka
Hi all,

I have created new branch *ui-test-fixes* in product-ds repo in-order to
perform test fixes. All the PRs related to these test fixes, please send
them to this branch. As discussed once all the test related changes are
done, we'll merge this branch to the master.

[1] https://github.com/wso2/product-ds/tree/ui-test-fixes

Thanks!
-Ayesha
-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DS][DAS] Error in Dashboard deployment for CApp

2015-12-14 Thread Ayesha Dissanayaka
Hi Sachith,

Possible cause for this might be the changes that we introduced to the
dashboard editor layout format. Since we have introduced dynamic layouts in
portal app, there should be changes in dashboard JSON definition. Hence,
previously created dashboard json may not be compatible with new rendering
logic.

Please login to portal app and create the dashboard from the scratch to
meet new changes and use the new dashboard json definition to in your Capp.

Thanks!
-Ayesha


On Tue, Dec 15, 2015 at 9:50 AM, Sachith Withana  wrote:

> Hi all,
>
> I upgraded the carbon dashboard version from 1.0.7 to 1.0.9.
>
> And when I try to deploy a certain CApp and load the Dashboard, the server
> shows the following error,
>
> [2015-12-15 09:42:05,298] ERROR {JAGGERY.modules.dashboards:js} -  errors:
> Cannot read property "blocks" from undefined_ (Sanitized)
>
> Any idea what might be causing the issue ?
>
>
> Thanks,
> Sachith
>
> --
> Sachith Withana
> Software Engineer; WSO2 Inc.; http://wso2.com
> E-mail: sachith AT wso2.com
> M: +94715518127
> Linked-In: <http://goog_416592669>
> https://lk.linkedin.com/in/sachithwithana
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What's the recommended Dashboard designer component to be used?

2015-12-08 Thread Ayesha Dissanayaka
Hi Prabath,

These dashboard related component are coming from carbon-dashboards.
And please note that we have renamed UES to DS (Dashboard Server) hence UES
1.0 code base is bit outdated.

You can find the carbon-dashboards component source at [01] and DS product
at [2].

[01] https://github.com/wso2/carbon-dashboards
[02] https://github.com/wso2/product-ds

Thanks!
-Ayesha


On Tue, Dec 8, 2015 at 2:23 PM, Prabath Abeysekera 
wrote:

> Hi Manu/UES team,
>
> I'm seeing two different versions of dashboard designers are being used in
> UES 1.0 and CEP 4.0.0. Which one do I pick to be shipped with EMM 2.0?
>
> Cheers,
> Prabath
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GREG][ES] Validating regex in RXT input values

2015-11-23 Thread Ayesha Dissanayaka
Hi,

Correct behavior is observed when carbon.governance.version is updated to
4.6.1, earlier it was 4.6.0.

Thanks!
-Ayesha

On Mon, Nov 23, 2015 at 2:00 PM, Chandana Napagoda 
wrote:

> Hi Ayesha,
>
> No, it's not. Governance API doesn't validate the fields when a value is
> not present. You can check it in latest G-Reg pack. We(Chanaka and me)
> implemented this for G-Reg 5.1.0 release.
>
> Regards,
> Chandana
>
> On Mon, Nov 23, 2015 at 1:43 PM, Ayesha Dissanayaka 
> wrote:
>
>> Hi all,
>>
>> As of now, governance API validates all the fields which has
>> validate="" attribute in the field, and throws an exception
>> whenever regex is not matched with input value. Hence, such fields get
>> required by default even thought required="true" is not set to the field
>> definition in RXT.
>>
>> ex:
>> 
>> Age
>> 
>>
>> Should this be the default behavior or should we only check regex match
>> for fields which are explicitly defined to be required.
>>
>>
>> Thanks!
>> -Ayesha
>>
>> --
>> *Ayesha Dissanayaka*
>> Software Engineer,
>> WSO2, Inc : http://wso2.com
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>> 20, Palmgrove Avenue, Colombo 3
>> E-Mail: aye...@wso2.com 
>>
>
>
>
> --
> *Chandana Napagoda*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.org
>
> *Email  :  chand...@wso2.com **Mobile : +94718169299
> <%2B94718169299>*
>
> *Blog  :http://cnapagoda.blogspot.com <http://cnapagoda.blogspot.com>*
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GREG][ES] Validating regex in RXT input values

2015-11-23 Thread Ayesha Dissanayaka
On Mon, Nov 23, 2015 at 1:47 PM, Manuranga Perera  wrote:

> "^.*$"


Nope, this doesn't throw an error if the input is empty.

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [GREG][ES] Validating regex in RXT input values

2015-11-23 Thread Ayesha Dissanayaka
Hi all,

As of now, governance API validates all the fields which has
validate="" attribute in the field, and throws an exception
whenever regex is not matched with input value. Hence, such fields get
required by default even thought required="true" is not set to the field
definition in RXT.

ex:

Age


Should this be the default behavior or should we only check regex match for
fields which are explicitly defined to be required.


Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES 2.0.0] Issue about creating and editing Unbounded Tables

2015-11-19 Thread Ayesha Dissanayaka
e as thumbnail.
>
> Both assets have the same values for all the other fields, and in
> particular the unbounded table was filled with the values “Item_1”,
> “Item_2” and “Item_3”.
>
> The two assets would have to be identical, but from the Overview screen
> you can see that “*Test_withFile* “, the one with the custom thumbnail,
> has only the last item in the unbounded table, while the “*Test_noFile*”
> asset shows correctly the whole table because no file was loaded.
>
>
>
>*Test_noFile
> Test_withFile*
>
>
>
>
>
>
>
>
>
> b)  *Results of two further tests performed on the previous assets:*
>
>
>
> Using the ES Publisher we edited the “*Test_noFile*” asset (in which the
> unbounded table worked as expected). We added a custom thumbnail without
> modifying any other field, then we saved the asset and re-loaded the detail
> view.
>
>
>
> Result: Unbounded table does not work anymore.
>
>
>
>
>
> From the ES Publisher we edited the “*Test_withFile*” (in which the
> unbounded table did not work). We re-inserted “Item_1”, “Item_2”, and
> “Item_3” in the unbounded table without loading any file (keeping the
> previous custom thumbnail), then we saved the asset and re-loaded the
> detail view.
>
>
>
> Result: Unbounded table works.
>
>
>
>
>
>
>
> *__________*
>
>
>
> *Luca Mastrangelo*
>
>
>
> Mobile *+39  3401542377 <%2B39%C2%A0%203401542377>*
>
> Office   *+39 0223954 312*
>
> Email luca.mastrang...@cefriel.com
>
> Web www.cefriel.com
>
>
>
> CEFRIEL - Politecnico di Milano
>
> Via R.Fucini, 2 - 20133 Milano - Italy
>
> [image: Cefriel logo]
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
> --
>
> Regards,
>
> UdaraR
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DS code refactoring

2015-11-16 Thread Ayesha Dissanayaka
On Mon, Nov 16, 2015 at 12:59 PM, Ayesha Dissanayaka 
wrote:

> @Team, please test the functionalities of the features/fixes that you are
> working on with above changes. Changes are merged to master branched of
> dasboard-server and product-ds repositories.
>
Should be
 *master branches of carbon-dashboard and product-ds repositories.

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] DS code refactoring

2015-11-15 Thread Ayesha Dissanayaka
Hi all,

I have done few refactoring to the code base including following major
changes.

   - All the handlebars are moved to /portal/js/ds-handlebar-helpers.js
   - All the locale files are moved to /portal/extensions/locales/ location.
   So that dev-ops can drop their custom locale definition files to this
   location.
   - Moved extensions/themes/basic/js/dashboard.js →
   apps/portal/js/dashboard.js.
   - Added /extensions/themes/basic/js/dashboard-extensions.js extension
   point, where dev-ops can extend dashboard view page's Scripts along with
   the theme.

@Team, please test the functionalities of the features/fixes that you are
working on with above changes. Changes are merged to master branched of
dasboard-server and product-ds repositories.

Thanks!

-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SAML 2.0 based Single Sign-On error when trying to login into secured extension page of ES

2015-11-08 Thread Ayesha Dissanayaka
Hi Manu,

This is NOT the exact issue that we reproduced with GREG.

Thanks!
-Ayesha

On Mon, Nov 9, 2015 at 6:32 AM, Manuranga Perera  wrote:

> hi Ayesha/Denuwanthi,
> is this the same issue you were looking at?
>
> On Fri, Oct 9, 2015 at 5:54 AM, Charitha Goonetilleke 
> wrote:
>
>> Hi All,
>>
>> I was able to overcome this issue by
>> overriding sso-auth-login-controller.jag in ES with custom. Also I
>> specified, *ignoreReferer* parameter and *requestedPage* parameter in
>> redirect request which made when authorization required for extension page.
>> In custom sso-auth-login-controller.jag[2], I used *requestedPage* as
>> *relayState* of the sso request. Please refer diff[3] with original[4]
>> for the modifications.
>>
>> @Manu,
>>
>> I believe those changes[3] in sso-auth-login-controller.jag should be
>> applied to both sso-auth-login-controller jags, available in store and
>> publisher. WDYT?
>>
>> [1]
>> https://github.com/wso2-incubator/device-cloud/commit/53bff1876de54d0a38a5e43531f2c8e38a3a6674
>> [2]
>> https://github.com/wso2-incubator/device-cloud/blob/53bff1876de54d0a38a5e43531f2c8e38a3a6674/features/iotserver-feature/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/jaggeryapps/store/extensions/app/store-device-type/pages/sso-auth-login-controller.jag
>> [3] http://www.mergely.com/31XzH1zo/
>> [4]
>> https://github.com/wso2/carbon-store/blob/a994f4973dbd9728fc5532dbeed3ae029aa79a0f/apps/store/extensions/app/store-common/pages/sso-auth-login-controller.jag
>>
>> On Thu, Oct 8, 2015 at 6:49 PM, Charitha Goonetilleke > > wrote:
>>
>>> Hi All,
>>>
>>> I'm experiencing $subject after logged out. It seems, *Referer* header
>>> value changed to https://localhost:9443/samlsso?sessionDataKey=
>>> some how during the logout process. When I'm trying to login again, it is
>>> giving me SAML 2.0 based Single Sign-On error. In the same time console
>>> printing "ERROR
>>> {org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet} -
>>>  Failed to retrieve sessionDTO from the cache for key
>>> 52ca4cfa-823c-4b4c-8462-bb59c94d1e5c".
>>>
>>> Do you have any idea, how *Referer* header value set to that? Or if any
>>> one know possible work around to eliminate this issue, please let me know.
>>>
>>> Please refer the following sso trace for complete scenario.
>>>
>>> +
>>> GET https://localhost:9443/store/pages/groups HTTP/1.1
>>> Host: localhost:9443
>>> User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:41.0) Gecko/20100101 
>>> Firefox/41.0
>>> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
>>> Accept-Language: en-US,en;q=0.5
>>> Accept-Encoding: gzip, deflate
>>> Referer: https://localhost:9443/store/assets/deviceType/list
>>> Cookie: JSESSIONID=3EE609CF217CA096FE8F9ADA74793BFE; 
>>> samlssoTokenId=5277eb7e-e3c9-46ef-b762-98dc80e7eaca; 
>>> JSESSIONID=1C3D7204305BF8D305C2B8788BE047AA; 
>>> commonAuthId=9928ae2b-89a9-41a8-aaca-ddeb9ecee7be
>>>
>>> HTTP/?.? 200 OK
>>> Content-Type: text/html
>>> Transfer-Encoding: chunked
>>> Content-Encoding: gzip
>>> Vary: Accept-Encoding
>>> Date: Thu, 08 Oct 2015 13:08:54 GMT
>>> Server: WSO2 Carbon Server
>>>
>>>
>>> +
>>> GET 
>>> https://localhost:9443/store/extensions/app/store-device-type/themes/store/css/navigation-custom.css
>>>  HTTP/1.1
>>> Host: localhost:9443
>>> User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:41.0) Gecko/20100101 
>>> Firefox/41.0
>>> Accept: text/css,*/*;q=0.1
>>> Accept-Language: en-US,en;q=0.5
>>> Accept-Encoding: gzip, deflate
>>> Referer: https://localhost:9443/store/pages/groups
>>> Cookie: JSESSIONID=3EE609CF217CA096FE8F9ADA74793BFE; 
>>> samlssoTokenId=5277eb7e-e3c9-46ef-b762-98dc80e7eaca; 
>>> JSESSIONID=1C3D7204305BF8D305C2B8788BE047AA; 
>>> commonAuthId=9928ae2b-89a9-41a8-aaca-ddeb9ecee7be
>>>
>>> HTTP/?.? 304 Not Modified
>>> Etag: W/"2212-1444293524000"
>>> Date: Thu, 08 Oct 2015 13:08:54 GMT
>>> Server: WSO2 Carbon Server
>>>
>>>
>>> +
>>> GET 
>>> https://localhost:9443/store/extensions/app/store-device-type/themes/store/js/libs/utils.js
>>>  HTTP/1.1
>>> Host: localhost:9443
>>> User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:41.0) Gecko/20100101 
>>> Firefox/41.0
>>> Accept: */*
>>> Accept-Language: en-US,en;q=0.5
>>> Accept-Encoding: gzip, deflate
>>> Referer: https://localhost:9443/store/pages/groups
>>> Cookie: JSESSIONID=3EE609CF217CA096FE8F9ADA74793BFE; 
>>> samlssoTokenId=5277eb7e-e3c9-46ef-b762-98dc80e7eaca; 
>>> JSESSIONID=1C3D7204305BF8D305C2B8788BE047AA; 
>>> commonAuthId=9928ae2b-89a9-41a8-aaca-ddeb9ecee7be
>>>
>>> HTTP/?.? 304 Not Modified
>>> Etag: W/"961-1444293524000"
>>> Date: Thu, 08 Oct 2015 13:08:54 GMT
>>> Server: WSO2 Carbon Server
>>>
>>>
>>> +
>>> GET 
>>> https://localhost:9443/store/extensions/app/store-device-type/themes/store/js/group-listing.js
>>>  HTTP/1.1
>>> Host: localhost:9443
>>> User-Agent: Mozilla/5.0 (X11; Fedora; Lin

Re: [Dev] Plan for next DS -M6 release.

2015-11-06 Thread Ayesha Dissanayaka
Hi all,

We have completed following components for M6 release.

   - Merged Lalanke's SAML auth token retrieving feature
   - Merged Lasantha's per user level dashboard theming feature
   - Merged Marcus's dashboard sample along with sample packing component
   for the product
   - Merged test related fixes done by Rajeenthini.
   - Fixed few other bugs

We have to resolve below concerns.

   - The dynamic layout editor feature that Lasantha is working on
   overrides per user level dashboard theming feature at the moment. I suggest
   that we include this new feature in M7 with the improvements to meet user
   level dashboard theming feature.

Other than above there are few other non-critical bugs we need to fix, can
we release them as known issues for M6.

WDYT?

Thanks!

-Ayesha

On Wed, Nov 4, 2015 at 4:29 PM, Nipuna Chandradasa  wrote:

> Hi all,
>
> When we are shipping the sample dashboard what we gonna do is:
>
> 1. Create a another .sh specifically to run the sample configuration as
> ESB team has done. File name will be like wso2server-sample.sh
> 2. This will copy the gadgets needed for the dashboard from samples folder
> to gadget folder in portal
> 3. Then using jaggery.conf we'll add dashboard json data to registry...
>
> Thank you.
>
> On Wed, Nov 4, 2015 at 2:13 PM, Ayesha Dissanayaka 
> wrote:
>
>> +Waruna and dev-group.
>>
>> On Wed, Nov 4, 2015 at 10:53 AM, Ayesha Dissanayaka 
>> wrote:
>>
>>> Hi all,
>>> As of now we can go for next milestone release tommorow.
>>>
>>>- Marcus is working on few UES fixes and he'll be able to complete
>>>them today.
>>>
>>>
>>>- We are looking into how to ship dashboard sample.
>>>   - we decided to run a cmd from corresponding samples folder so
>>>   that sample gadgets get copied to /store/carbon.super/gadgets 
>>> location and
>>>   ready-made dashboard to the relevant registry location.
>>>   - users are given another script command to remove the sample
>>>   gadgets from gadget location along with the sample dashboard from 
>>> registry.
>>>   - Hopefully we can finish this off tomorrow.
>>>
>>>
>>>- Lalanke is working including IS components to DS which are
>>>required by his feature. If we could get this done before tomorrow we can
>>>include it in the release.
>>>
>>>
>>>- Custom Banner feature implemented by Lasantha can be merged and
>>>include in M6. Can Manu please create a redmine entry for this one.
>>>
>>>
>>>- Lasantha's dashboard editor needs some improvement to be done for
>>>dashboard view support from dynamic layouts and needs further testing. 
>>> Can
>>>we include this in M7 release?
>>>- Rajeenthini is continuing to work on tests.
>>>
>>>
>>>- I am currently looking to the product-es build failure.
>>>
>>> Manu please add Marcus, Lasantha and Lalanke to jira project so that we
>>> can close the issues they have fixed before the release.
>>>
>>> Any other inputs?
>>>
>>> Thanks!
>>>
>>> -Ayesha
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> *Ayesha Dissanayaka*
>>> Software Engineer,
>>> WSO2, Inc : http://wso2.com
>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>>> 20, Palmgrove Avenue, Colombo 3
>>> E-Mail: aye...@wso2.com 
>>>
>>
>>
>>
>> --
>> *Ayesha Dissanayaka*
>> Software Engineer,
>> WSO2, Inc : http://wso2.com
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>> 20, Palmgrove Avenue, Colombo 3
>> E-Mail: aye...@wso2.com 
>>
>
>
>
> --
> Nipuna Marcus
> *Software Engineer*
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
> Mobile : +94 (0) 713 667906
> nipu...@wso2.com
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Builder] Jenkins build became unstable: product-es #7768

2015-11-04 Thread Ayesha Dissanayaka
The reason for this test failure is the change in the order of query
parameters in an autogenerated twitter url, which was used for assert check.

On Wed, Nov 4, 2015 at 1:55 PM, Ayesha Dissanayaka  wrote:

>
> On Tue, Nov 3, 2015 at 11:20 PM, Nipuna Chandradasa 
> wrote:
>
>>
>> org.wso2.es.ui.integration.test.store.ESStoreSocialSharingTestCase.testTwitterSharing
>> <https://wso2.org/jenkins/job/product-es/org.wso2.es$test-ui/7768/testReport/junit/org.wso2.es.ui.integration.test.store/ESStoreSocialSharingTestCase/testTwitterSharing/>
>
>
> This should be fixed by [1]. Let's wait for a jenkins build.
>
> [1]
> https://github.com/wso2/product-es/commit/2cb1262503fd88c91a451234769be091baf4759a
>
> Thanks!
> -Ayesha
>
> --
> *Ayesha Dissanayaka*
> Software Engineer,
> WSO2, Inc : http://wso2.com
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
> 20, Palmgrove Avenue, Colombo 3
> E-Mail: aye...@wso2.com 
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Plan for next DS -M6 release.

2015-11-04 Thread Ayesha Dissanayaka
+Waruna and dev-group.

On Wed, Nov 4, 2015 at 10:53 AM, Ayesha Dissanayaka  wrote:

> Hi all,
> As of now we can go for next milestone release tommorow.
>
>- Marcus is working on few UES fixes and he'll be able to complete
>them today.
>
>
>- We are looking into how to ship dashboard sample.
>   - we decided to run a cmd from corresponding samples folder so that
>   sample gadgets get copied to /store/carbon.super/gadgets location and
>   ready-made dashboard to the relevant registry location.
>   - users are given another script command to remove the sample
>   gadgets from gadget location along with the sample dashboard from 
> registry.
>   - Hopefully we can finish this off tomorrow.
>
>
>- Lalanke is working including IS components to DS which are required
>by his feature. If we could get this done before tomorrow we can include it
>in the release.
>
>
>- Custom Banner feature implemented by Lasantha can be merged and
>include in M6. Can Manu please create a redmine entry for this one.
>
>
>- Lasantha's dashboard editor needs some improvement to be done for
>dashboard view support from dynamic layouts and needs further testing. Can
>we include this in M7 release?
>- Rajeenthini is continuing to work on tests.
>
>
>- I am currently looking to the product-es build failure.
>
> Manu please add Marcus, Lasantha and Lalanke to jira project so that we
> can close the issues they have fixed before the release.
>
> Any other inputs?
>
> Thanks!
>
> -Ayesha
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> *Ayesha Dissanayaka*
> Software Engineer,
> WSO2, Inc : http://wso2.com
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
> 20, Palmgrove Avenue, Colombo 3
> E-Mail: aye...@wso2.com 
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Builder] Jenkins build became unstable: product-es #7768

2015-11-04 Thread Ayesha Dissanayaka
On Tue, Nov 3, 2015 at 11:20 PM, Nipuna Chandradasa 
wrote:

>
> org.wso2.es.ui.integration.test.store.ESStoreSocialSharingTestCase.testTwitterSharing
> <https://wso2.org/jenkins/job/product-es/org.wso2.es$test-ui/7768/testReport/junit/org.wso2.es.ui.integration.test.store/ESStoreSocialSharingTestCase/testTwitterSharing/>


This should be fixed by [1]. Let's wait for a jenkins build.

[1]
https://github.com/wso2/product-es/commit/2cb1262503fd88c91a451234769be091baf4759a

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Builder] Jenkins build became unstable: product-es #7768

2015-11-03 Thread Ayesha Dissanayaka
Hi all,

I just tried running above test cases locally in a clean build and they get
successfully executed.
Shall we trigger another build to see whether the issue still persists
since there are no any recent changes to the code base.

Thanks!
-Ayesha

On Tue, Nov 3, 2015 at 5:32 PM, Udara Rathnayake  wrote:

> please check
>
>
> -- Forwarded message --
> From: 
> Date: Tue, Nov 3, 2015 at 12:35 AM
> Subject: [Builder] Jenkins build became unstable: product-es #7768
> To: buil...@wso2.org
>
>
> See <https://wso2.org/jenkins/job/product-es/7768/>
>
> ___
> Builder mailing list
> buil...@wso2.org
> https://wso2.org/cgi-bin/mailman/listinfo/builder
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UX] [DS] Users able to create dashboards and pages inside dashboards with same title

2015-11-02 Thread Ayesha Dissanayaka
Hi all,

On Mon, Nov 2, 2015 at 7:40 PM, Nipuna Chandradasa  wrote:

> There is a scenario which users can create multiple dashboards with same
> titles. But in any scenario they cannot create a dashboard with same URL (
> Dashboard ID).
>

To address this issue, we will need to go through all the available
dashboards in order to check whether the title exists and it will be an
unnecessary overhead. We also considered few other options, such as
changing resource path to a value which contains title. But it also leads
to unnecessary complications of the design.

URL is unique for a dashboard and it becomes the dashboard "id". We are
validating existing dashboards for 'id' at creation. Hence, an user cannot
create multiple dashboards with same url.
Therefore we decided to allow users to change the dashboard title to an
existing one and in-order to distinguish such dashboards , show dashboard
'url' in dashboard listing page (above the description) next to title.


> Also there is another similar scenario with Pages inside dashboards, which
> user can create multiple pages with same title. But in any scenario they
> cannot create pages with same URL (Page ID).
>

We can do a simple check for page titles and show a validation failure here.

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Login and Logout error in Store

2015-10-27 Thread Ayesha Dissanayaka
Hi,

On Tue, Oct 27, 2015 at 5:53 PM, Manuranga Perera  wrote:

>
> add logic to check if instance of session object and set it to session obj
> if true else set to request obj
>

Chanaka and myself tested this fix and it works as expected.
Greg team will continue further testing the login/logout scenarios before
releasing jaggery and jaggery-extension.

Thanks!
-Ayesha


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DS] Adding separate landing pages for default and anonymous view

2015-10-20 Thread Ayesha Dissanayaka
Hi all,

On Tue, Oct 20, 2015 at 6:15 PM, Nipuna Chandradasa 
wrote:

> So what we came up with was to add an option to define landing pages for
> anonymous state and the default state of the dashboard. So there will be
> two landing pages when it comes to a anonymous dashboard. One landing page
> is for anonymous state and other landing page for default state.


Above is what suggested by UX team during the off-line discussion we
had.(Nipuna, Dakshika and Myself).
There are some valid use cases where an user only need to create one page
in dashboard anon view and multiple pages in logged in view. In that case
by forcing to make the landing page anonymous, user has to recreate the
anon page again. And will have to repeat that every time landing page is
switched.

Thanks!
-Ayesha


On Wed, Oct 21, 2015 at 8:49 AM, Nipuna Chandradasa 
wrote:

> +1 for manu  so basically we can inform user using a warning or info
> message . whether he can make the page anon or not and inform the
> reason if he cannot, when he clicking on the check box.
>
> On Wed, Oct 21, 2015 at 6:06 AM, Manuranga Perera  wrote:
>
>> That is also a good idea, but we need to inform user this
>> On Oct 20, 2015 10:28 AM, "Udara Rathnayake"  wrote:
>>
>>> To make it simple,
>>>
>>> Once user select anon option in a page we can programmatically make
>>> landing page anon. This is what I initially thought of doing.
>>>
>>> On Tue, Oct 20, 2015 at 7:48 PM, Manuranga Perera  wrote:
>>>
>>>> wouldn't this be complex. we shouldn't bring any new features if it's
>>>> not realy necessary, will just add to maintenance cost.
>>>>
>>>> how about making it mandatory for landing page to be anon if user make
>>>> any page anon.
>>>>
>>>> that is, you can't make any page anon before making landing anon.
>>>>
>>>>
>>>> UX team what do you think?
>>>>
>>>> On Tue, Oct 20, 2015 at 6:15 PM, Nipuna Chandradasa 
>>>> wrote:
>>>>
>>>>> Hi team,
>>>>>
>>>>> There was a problem which came up during the discussion about
>>>>> anonymous view in dashboard server.
>>>>>
>>>>> Discussion was about restricting the user creating an anonymous page
>>>>> without making the landing page (Home page) of the dashboard anonymous.
>>>>>
>>>>> But this way user always have to make the landing page anonymous in
>>>>> order to make the other pages anonymous even user does not want to make 
>>>>> the
>>>>> landing page anonymous.
>>>>>
>>>>> So what we came up with was to add an option to define landing pages
>>>>> for anonymous state and the default state of the dashboard. So there will
>>>>> be two landing pages when it comes to a anonymous dashboard. One landing
>>>>> page is for anonymous state and other landing page for default state.
>>>>>
>>>>> Appreciate any suggestions and comments on this.
>>>>>
>>>>> Thank you.
>>>>> --
>>>>> Nipuna Marcus
>>>>> *Software Engineer*
>>>>> WSO2 Inc.
>>>>> http://wso2.com/ - "lean . enterprise . middleware"
>>>>> Mobile : +94 (0) 713 667906
>>>>> nipu...@wso2.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> With regards,
>>>> *Manu*ranga Perera.
>>>>
>>>> phone : 071 7 70 20 50
>>>> mail : m...@wso2.com
>>>>
>>>
>>>
>
>
> --
> Nipuna Marcus
> *Software Engineer*
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
> Mobile : +94 (0) 713 667906
> nipu...@wso2.com
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge

2015-10-06 Thread Ayesha Dissanayaka
Hi Sajith,

I am referring to user not logged in sate. In that case if we directly
access
https://10.100.7.19:9443/portal/dashboards/ano-db01/landing?isAnonView=false
URL then we will see the default view.

And when there a logged in user viewing
https://10.100.7.19:9443/portal/dashboards/ano-db01/landing?isAnonView=false
and logout then also default view is shown since the URL has
isAnonView=false

Thanks!
-Ayesha


On Wed, Oct 7, 2015 at 11:02 AM, Sajith Abeywardhana 
wrote:

> If the user removes the isAnonView param from the url, next time browser
> will show url as 
> *https://10.100.7.19:9443/portal/dashboards/ano-db01/landing?isAnonView=null
> <https://10.100.7.19:9443/portal/dashboards/ano-db01/landing?isAnonView=null>.
> *Since null value is a bit ugly I fixed it and committed it to the PR.
>
> *Sajith Abeywardhana* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka.
> Mobile: +94772260485
> Email: saji...@wso2.com | Web: www.wso2.com
>
> On Wed, Oct 7, 2015 at 10:50 AM, Udara Rathnayake  wrote:
>
>> Had a chat with Sajith. Current implementation seems fine..
>>
>> On Wed, Oct 7, 2015 at 10:40 AM, Sajith Abeywardhana 
>> wrote:
>>
>>> Hi Ayesha,
>>>
>>> Small clarification?
>>>
>>>
>>>> I observed that even *anonymous users* can view the logged in view by
>>>> setting query parameter "isAnonView=false" or without setting it at all in
>>>> the browser.
>>>>
>>>
>>> I think you mean in here when the *logged in user* viewing anonymous
>>> view he can view logged in view by setting query parameter
>>> "isAnonView=false" or without setting it at all in the browser.
>>>
>>> Anonymous user(with out logging) never able to view logged in view. Am I
>>> right?
>>>
>>>
>>> *Sajith Abeywardhana* | Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka.
>>> Mobile: +94772260485
>>> Email: saji...@wso2.com | Web: www.wso2.com
>>>
>>>
>>>
>>>> Can you check this.
>>>>
>>>> Further, instead of having this reflected in the URL can we try keep it
>>>> internally?
>>>>
>>>> Thanks!
>>>> -Ayesha
>>>>
>>>>
>>>> On Tue, Oct 6, 2015 at 6:42 PM, Sajith Abeywardhana 
>>>> wrote:
>>>>
>>>>> Both jira's[1][2] which relevant  to anon view committed under one
>>>>> PR[3]. Please review and merge.
>>>>>
>>>>> [1]. https://wso2.org/jira/browse/UES-597
>>>>> [2]. https://wso2.org/jira/browse/UES-599
>>>>> [3]. https://github.com/wso2/carbon-dashboards/pull/66
>>>>>
>>>>> *Sajith Abeywardhana* | Software Engineer
>>>>> WSO2, Inc | lean. enterprise. middleware.
>>>>> #20, Palm Grove, Colombo 03, Sri Lanka.
>>>>> Mobile: +94772260485
>>>>> Email: saji...@wso2.com | Web: www.wso2.com
>>>>>
>>>>> On Tue, Oct 6, 2015 at 2:16 PM, Sajith Abeywardhana 
>>>>> wrote:
>>>>>
>>>>>> Fixed the code according to [Dev] [UES][Dashboard Server] Dashboard
>>>>>> anonymous view landing page. Please merge the PR.
>>>>>>
>>>>>> *Sajith Abeywardhana* | Software Engineer
>>>>>> WSO2, Inc | lean. enterprise. middleware.
>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka.
>>>>>> Mobile: +94772260485
>>>>>> Email: saji...@wso2.com | Web: www.wso2.com
>>>>>>
>>>>>> On Tue, Oct 6, 2015 at 10:59 AM, Sajith Abeywardhana <
>>>>>> saji...@wso2.com> wrote:
>>>>>>
>>>>>>> Please hold this merge. Page link rendering logic should be changed.
>>>>>>> We can't check *!user *after the jira -
>>>>>>> https://wso2.org/jira/browse/UES-597
>>>>>>>
>>>>>>> *Sajith Abeywardhana* | Software Engineer
>>>>>>> WSO2, Inc | lean. enterprise. middleware.
>>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka.
>>>>>>> Mobile: +94772260485
>>>>>>> Email: saji...@wso2.com | Web: www.wso2.com
>>>>>>>
>>>>>>> On Tue, Oct 6, 2015 at 10:38 AM, Sajith Abeywardhana <
>>>>>>> saji...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Please review and merge
>>>>>>>> https://github.com/wso2/carbon-dashboards/pull/66 for
>>>>>>>> https://wso2.org/jira/browse/UES-599
>>>>>>>>
>>>>>>>>
>>>>>>>> *Sajith Abeywardhana* | Software Engineer
>>>>>>>> WSO2, Inc | lean. enterprise. middleware.
>>>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka.
>>>>>>>> Mobile: +94772260485
>>>>>>>> Email: saji...@wso2.com | Web: www.wso2.com
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Ayesha Dissanayaka*
>>>> Software Engineer,
>>>> WSO2, Inc : http://wso2.com
>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>>>> 20, Palmgrove Avenue, Colombo 3
>>>> E-Mail: aye...@wso2.com 
>>>>
>>>
>>>
>>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge

2015-10-06 Thread Ayesha Dissanayaka
Hi Sajith,

Thanks for the fixes. I've merged the changes locally and testing the
functionality.

I observed that even anonymous users can view the logged in view by setting
query parameter "isAnonView=false" or without setting it at all in the
browser.

Can you check this.

Further, instead of having this reflected in the URL can we try keep it
internally?

Thanks!
-Ayesha


On Tue, Oct 6, 2015 at 6:42 PM, Sajith Abeywardhana 
wrote:

> Both jira's[1][2] which relevant  to anon view committed under one PR[3].
> Please review and merge.
>
> [1]. https://wso2.org/jira/browse/UES-597
> [2]. https://wso2.org/jira/browse/UES-599
> [3]. https://github.com/wso2/carbon-dashboards/pull/66
>
> *Sajith Abeywardhana* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka.
> Mobile: +94772260485
> Email: saji...@wso2.com | Web: www.wso2.com
>
> On Tue, Oct 6, 2015 at 2:16 PM, Sajith Abeywardhana 
> wrote:
>
>> Fixed the code according to [Dev] [UES][Dashboard Server] Dashboard
>> anonymous view landing page. Please merge the PR.
>>
>> *Sajith Abeywardhana* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka.
>> Mobile: +94772260485
>> Email: saji...@wso2.com | Web: www.wso2.com
>>
>> On Tue, Oct 6, 2015 at 10:59 AM, Sajith Abeywardhana 
>> wrote:
>>
>>> Please hold this merge. Page link rendering logic should be changed. We
>>> can't check *!user *after the jira -
>>> https://wso2.org/jira/browse/UES-597
>>>
>>> *Sajith Abeywardhana* | Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka.
>>> Mobile: +94772260485
>>> Email: saji...@wso2.com | Web: www.wso2.com
>>>
>>> On Tue, Oct 6, 2015 at 10:38 AM, Sajith Abeywardhana 
>>> wrote:
>>>
>>>> Please review and merge
>>>> https://github.com/wso2/carbon-dashboards/pull/66 for
>>>> https://wso2.org/jira/browse/UES-599
>>>>
>>>>
>>>> *Sajith Abeywardhana* | Software Engineer
>>>> WSO2, Inc | lean. enterprise. middleware.
>>>> #20, Palm Grove, Colombo 03, Sri Lanka.
>>>> Mobile: +94772260485
>>>> Email: saji...@wso2.com | Web: www.wso2.com
>>>>
>>>
>>>
>>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UES][Dashboard Server] Dashboard anonymous view landing page

2015-10-06 Thread Ayesha Dissanayaka
Hi Udara/Manu,

Have we considered multi-tenant scenarios while designing anonymous view of
dashboards.

For instance what will be the dashboard view rendered for an user who has
logged into super tenant and trying to access a dashboard view URL of
another tenant domain.( ex. wso2.com).

In that case should we still show the anonymous view of the dashboard or
default view?

In my opinion we should show the anonymous view and disable the dashboard
edit options. WDYT?

Thanks!
-Ayesha


On Fri, Oct 2, 2015 at 6:43 PM, Udara Rathnayake  wrote:

> Thanks for the feedback lasantha and nipuna.
> I'm +1 to make the landing page anon if there are any anon views defined
> in other pages. Let's stick to that.
>
> On Fri, Oct 2, 2015 at 9:15 AM, Nipuna Chandradasa 
> wrote:
>
>> Hi Udara,
>>
>> As Lasantha said that making the landing page an anon view should be
>> mandatory if there are anon views available under the that landing page
>> even the landing page doesn't have anon content to view.
>>
>> I think this is a good idea because it is not that great to have child
>> pages which has anon view but the user cannot access the main view. At
>> Least if there are no content to show under the landing page to a user (
>> Which is not that great if it mandatory to make the landing page anon view)
>> at least we can show a message saying which pages are anon views and have
>> the anon content.
>>
>> Thanks.
>>
>> On Fri, Oct 2, 2015 at 8:46 AM, Lasantha Samarakoon 
>> wrote:
>>
>>> Hi Udara,
>>>
>>> Can't we show the actual landing page even though the anon view is not
>>> defined? So if the landing page doesn't have a anon view, then we can show
>>> some message with all other links to accessible pages (Same as what we have
>>> in regular websites. Once you logged in you have more features, otherwise
>>> limited. But the home page is home page).
>>>
>>> In your first option, the problem is that if the developer couldn't
>>> define the anon view landing page, ultimately the dashboard is not
>>> accessible for any anon user unless he knows the direct url for a page.
>>> Then there's no point of introducing the anon view for such scenarios.
>>>
>>> In the second option, as you mentioned it actually breaks the concept
>>> behind a landing page. And know one can define what will be the actual
>>> landing page in such situation.
>>>
>>> Or else we can emphasis (or make it mandatory) the developer to define a
>>> anon view for the landing page in the designer if there are any anon pages
>>> for the dashboard.
>>>
>>>
>>> Regards,
>>>
>>>
>>> *Lasantha Samarakoon* | Software Engineer
>>> WSO2, Inc.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 (71) 214 1576
>>> Email:  lasant...@wso2.com
>>> Web:www.wso2.com
>>>
>>> lean . enterprise . middleware
>>>
>>> On Thu, Oct 1, 2015 at 8:10 PM, Udara Rathnayake 
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> At the moment we have a landing page (which developer can select while
>>>> creating the dashboard) and this is the page end-user will initially get
>>>> once he/she browse the dashboard.
>>>>
>>>> So for the anonymous view of the dashboard, we are going to use the
>>>> same landing page's anon view(if exists) else user will be redirected to
>>>> the login page.
>>>> This approach will basically need developer to have a anon view within
>>>> the landing page if there are anon views for other pages.
>>>>
>>>> Otherwise we can go through existing pages and check existence of anon
>>>> views first and then render. This approach will deviate from the landing
>>>> page concept a bit.
>>>>
>>>> Any thoughts?
>>>>
>>>> Regards,
>>>> UdaraR
>>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Nipuna Marcus
>> *Software Engineer*
>> WSO2 Inc.
>> http://wso2.com/ - "lean . enterprise . middleware"
>> Mobile : +94 (0) 713 667906
>> nipu...@wso2.com
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] UES - Changing Gadget/widget's UserPref settings from dashboard view page

2015-09-30 Thread Ayesha Dissanayaka
Hi all,

The $Subject is available in *WSO2 UES 2.0.0 Milestone 3 *onwards.

Users can change user-preps of a gadget by clicking the settings toggle
button next each gadget.


​
Once the toggle button is clicked for the second time changes will be saved
to the registry and gadget will be updated accordingly.

For the users who have only dashboard view permissions, a customized copy
of original dashboard will be maintained. They are given the rest option to
to view the latest version of original dashboard.

Further, gadget authors are given the ability to extend this toggle buttons
behavior to change the gadget's view. For gadgets which have defined a
Content view with the name 'settings", instead of default *UserPref* option
discussed above, defined view(settings) will be rendered into the
gadget.This extension is to be further improved.
Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Adding id Attribute for the Main UI elements for User Engagement Server

2015-09-18 Thread Ayesha Dissanayaka
Hi Rajeenthini,

You don't need to add a explicit wait here, since the extended webdriver we
use in our tests has that wait condition inside findElement method.

We have extended it in that way to prevent the need of adding this kind of
waits when we call driver.findElement

Thanks!
-Ayesha

On Fri, Sep 18, 2015 at 3:40 PM, Rajeenthini Satkunam 
wrote:

> Hi chanaka,
>
> I have tried as you suggest me and as well as I have used by cssSelector.
>
> wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("[href='create-dashboard']")));
> driver.findElement(By.cssSelector("[href='create-dashboard']")).click();
>
> Now it's works fine for me.Thank you for your prompt reply.
>
> On Fri, Sep 18, 2015 at 3:12 PM, Chanaka Jayasena 
> wrote:
>
>> Hi Rajinthini,
>>
>> The element might not be available when you are trying to read it. You
>> can try adding a wait until the element is available.
>>
>> WebDriverWait wait = new WebDriverWait(driver, 60);
>>
>> wait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText(assetName)));
>>
>> thanks,
>> Chanaka
>>
>>
>>
>>
>> On Fri, Sep 18, 2015 at 3:03 PM, Rajeenthini Satkunam <
>> rajeenth...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I am currently working on a task that writing UI test-cases for user
>>> engagement server using selenium.AFAIK element on User Interface can
>>> identified by several ways using selenium web driver.I have referred
>>> link[1] below.
>>>
>>> [1] -
>>> http://www.softwaretestinghelp.com/using-selenium-xpath-and-other-locators-selenium-tutorial-5/
>>>
>>>
>>> I have tried to write a test-case for Adding new Dashboard for UES. Here
>>> the selenium web driver cannot find the element 'Create Dashboard' on a
>>> interface.
>>> this is code segment I have written to find the 'create dashboard'
>>> element
>>>
>>> driver.findElement(By.linkText("Create Dashboard")).click();
>>>
>>> I have added the screen shot of failed test-case below.
>>>
>>>
>>>
>>> Thus currently the UES elements does not have id attribute,I tried to
>>> identify the element by linkText().And there is a drawback of identifying
>>> the element by linkText() that is empty spaces included inside the words
>>> will be the cause for test failure,IMHO it will be easy to identify the
>>> elements by using id of it.
>>>
>>> And I have faced similar issue when I tried to fix the UI test-cases of
>>> Enterprise Store.As I remember now we are identifying those elements by
>>> id[2].
>>> [2] -
>>> https://github.com/wso2/product-es/blob/master/modules/integration/tests-ui-integration/tests-ui/src/test/java/org/wso2/es/ui/integration/test/publisher/ESPublisherAddEditAssetTestCase.java#L97
>>> In my point of view it is more unique when we identify the element by
>>> it's id.WDYT? And suggest any ways to overcome this issue.
>>> --
>>>
>>> *Thank You.*
>>>
>>> *Rajeenthini Satkunam*
>>>
>>> *Associate Software Engineer | WSO2*
>>>
>>>
>>> *E:rajeenth...@wso2.com *
>>>
>>> *M :+94770832823 <%2B94770832823>   *
>>>
>>>
>>
>>
>> --
>> Chanaka Jayasena
>> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
>> email: chan...@wso2.com; cell: +94 77 785 5565
>> blog: http://chanaka3d.blogspot.com
>>
>
>
>
> --
>
> *Thank You.*
>
> *Rajeenthini Satkunam*
>
> *Associate Software Engineer | WSO2*
>
>
> *E:rajeenth...@wso2.com *
>
> *M :+94770832823 <%2B94770832823>   *
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] What is the feature that enable user management UI section in management console.

2015-09-09 Thread Ayesha Dissanayaka
Hi all,

Since I need to enable* add and manage users* via management console, I
need to enable this particular UI component in UES.
Can you please mention which feature should I include for that.

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release ES-2.0.0 RC

2015-09-07 Thread Ayesha Dissanayaka
On Mon, Sep 7, 2015 at 1:19 PM, Ayesha Dissanayaka  wrote:

> Hi All,
>
> *This is the RC release candidate of ES-2.0.0. *
>
> Please download, test and vote. Please refer the release verification
> guide for detailed information on verifying this release.
>
> *Source & binary distribution files:*
>
>
> http://maven.wso2.org/nexus/content/repositories/orgwso2es-047/org/wso2/es/wso2es/2.0.0/
>
> <http://maven.wso2.org/nexus/content/repositories/orgwso2greg-026/org/wso2/greg/wso2greg/5.0.0/>
>
> *Maven staging repo:*
>
> http://maven.wso2.org/nexus/content/repositories/orgwso2es-047/
> <http://www.google.com/url?q=http%3A%2F%2Fmaven.wso2.org%2Fnexus%2Fcontent%2Frepositories%2Forgwso2es-047%2F&sa=D&sntz=1&usg=AFQjCNEJ-AHsSm9J1h9helWZLLI4437C8Q>
>
> *The tag to be voted upon:*
>
> https://github.com/wso2/product-es/releases/tag/v2.0.0
>
> [*+*] Stable - go ahead and release
> [*-*]  Broken - do not release (explain why)
>
> Thanks!
> -Ayesha
>
> --
> *Ayesha Dissanayaka*
> Software Engineer,
> WSO2, Inc : http://wso2.com
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
> 20, Palmgrove Avenue, Colombo 3
> E-Mail: aye...@wso2.com 
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release ES-2.0.0 RC

2015-09-07 Thread Ayesha Dissanayaka
Hi All,

*This is the RC release candidate of ES-2.0.0. *

Please download, test and vote. Please refer the release verification guide
for detailed information on verifying this release.

*Source & binary distribution files:*

http://maven.wso2.org/nexus/content/repositories/orgwso2es-047/org/wso2/es/wso2es/2.0.0/
<http://maven.wso2.org/nexus/content/repositories/orgwso2greg-026/org/wso2/greg/wso2greg/5.0.0/>

*Maven staging repo:*

http://maven.wso2.org/nexus/content/repositories/orgwso2es-047/
<http://www.google.com/url?q=http%3A%2F%2Fmaven.wso2.org%2Fnexus%2Fcontent%2Frepositories%2Forgwso2es-047%2F&sa=D&sntz=1&usg=AFQjCNEJ-AHsSm9J1h9helWZLLI4437C8Q>

*The tag to be voted upon:*

https://github.com/wso2/product-es/releases/tag/v2.0.0

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

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] fault in validateRequiredFeilds method

2015-09-03 Thread Ayesha Dissanayaka
Hi Lakshman,

The value of provider in below line refers to the user who is adding the
particular asset.

*var provider = rxtManager.getProviderAttribute(type);*

The intended behavior is not allowing users to change that provider value
other than to the username value of the user who is trying to add the asset.
That is why above code overrides the provider value. Also, provider is a
required field at the time asset is added to the registry, but since we
already have the username of the user who is adding the asset we don't need
to make it mandatory in the user request.

It might be wrong to have this particular code snippet inside this validate
method, if so we can take that out.

Thanks!
-Ayesha



On Thu, Sep 3, 2015 at 5:17 PM, Lakshman Udayakantha 
wrote:

> I can see some value is assigning to *provider* field rather validating
> it in *validateRequiredFeilds* method in publisher/modules/asset-api.js.
> This happens in 2.3.4 code version.see below code in that method
>
>
>
>
> *var provider = rxtManager.getProviderAttribute(type);if(provider &&
> provider.length >1 &&
> assetReq.hasOwnProperty('attributes')){assetReq.attributes[provider] =
> user.username;}*
>
> shouldn't this be changed to
>
>
>
>
> *var provider = rxtManager.getProviderAttribute(type);if(provider &&
> provider.length >1 &&
> assetReq.hasOwnProperty('attributes')){validateRequiredFeild(provider,
> assetReq);}*
>
> WDYT?
> Thanks
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0711241005*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSDL, Swagger and Policies upload failed in G-Reg-5.0.0-SNAPSHOT

2015-08-27 Thread Ayesha Dissanayaka
 at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
> at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
> at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
>
> Thanks
> Prasanna Dangalla
> Software Engineer, WSO2, Inc.; http://wso2.com/
> lean.enterprise.middleware
>
> cell: +94 777 55 80 30 | +94 718 11 27 51
> twitter: @prasa77
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   >