[Dev] Please review and merge

2015-07-19 Thread Isura Karunaratne
Hi Johann,

Please review and merge following PRs [1][2] for the public jira [3]

[1] https://github.com/wso2/carbon4-kernel/pull/309
[2] https://github.com/wso2/carbon-identity/pull/643
[3] https://wso2.org/jira/browse/IDENTITY-3147

Thanks
Isura
-- 
Isura Dilhara Karunaratne
Senior Software Engineer

Mob +94 772 254 810
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] GREG Reporting Sample Error (Maven dependencies)

2015-07-19 Thread Pubudu Priyashan
Hi there,

I was trying to run the GREG sample for reporting section [1]. When I did
'mvn clean install' It's giving me the error provided below. Also I found a
similar issue logged in JIRA[2], although I'm not 100% sure if these two
issues are related. Can someone please look into this please? Thanks!

[1] https://docs.wso2.com/display/Governance460/Custom+Report+Sample
[2] https://wso2.org/jira/browse/REGISTRY-2118

*Error Log:*

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

Missing:
--
1) jasperreports:jasperreports:jar:3.7.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=jasperreports
-DartifactId=jasperreports -Dversion=3.7.1 -Dpackaging=jar
-Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there:
  mvn deploy:deploy-file -DgroupId=jasperreports
-DartifactId=jasperreports -Dversion=3.7.1 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
   1)
org.wso2.governance:org.wso2.carbon.registry.samples.handler:bundle:4.6.0
   2) org.wso2.carbon:org.wso2.carbon.reporting.api:jar:4.2.0
   3) jasperreports.wso2:jasperreports:jar:3.7.1.wso2v1
   4) jasperreports:jasperreports:jar:3.7.1

--
1 required artifact is missing.

for artifact:
  org.wso2.governance:org.wso2.carbon.registry.samples.handler:bundle:4.6.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/)



[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 8 seconds
[INFO] Finished at: Fri Jul 17 16:43:14 IST 2015
[INFO] Final Memory: 43M/333M
[INFO]


Cheers,
Pubudu D.P
Senior Software Engineer - QA Team | WSO2 inc.
Mobile : +94775464547
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] WSO2 Data Analytics Server 3.0.0 Beta Released!

2015-07-19 Thread Dunith Dhanushka
Hi Nirdesha,

+1 to use "data source" since it doesn't represent a connection to a
database. It merely lists down the places where a chart can read data from.


Thanks,
Dunith

On Mon, Jul 20, 2015 at 12:11 PM, Nirdesha Munasinghe 
wrote:

> Hi Dunith,
>
> If it's a source of data, then it is best renamed as data source (two
> words). A datasource means a connection to a database. +1 for help tips in
> the UI.
>
> Cheers,
> -Nirdesha
>
> On Sat, Jul 18, 2015 at 7:15 PM, Praneesha Chandrasiri  > wrote:
>
>> We can put a note in the doc to mention that we need to have a source of
>> data as a prerequisite for the gadget generation wizard, and link it to the
>> page where content on creating streams is documented.
>>
>> On Mon, Jul 13, 2015 at 8:33 AM, Dunith Dhanushka 
>> wrote:
>>
>>> Hi Manoj,
>>>
>>> What we meant by the term 'datasource' is any object that provides data
>>> for the visualization gadget. According to the dashboard context there are
>>> two datasources types, DAL tables and event streams.
>>> I agree with that  the wording 'datasource' is already associated with
>>> Carbon datasources and quite misleading in the dashboard's context.
>>> Probably we can rename it to something else and add some context sensitive
>>> help text to guide users.
>>>
>>> Thanks,
>>> Dunith
>>>
>>> On Sat, Jul 11, 2015 at 2:46 AM, Gimantha Bandara 
>>> wrote:
>>>
 [Adding Dunith]

 On Sat, Jul 11, 2015 at 2:44 AM, Manoj Kumara  wrote:

> Hi Gimantha,
>
> Previously I thought its related to the datasouces we are define
> instead of the streams we create. Anyway I think the 'datasource' term is
> bit misleading WDYT ?
>
> Thanks for the support.
>
> Regards,
> Manoj
>
>
> *Manoj Kumara |* Senior Software Engineer
>  Inc. *| **lean. enterprise. middleware.*
> #20, Palm Grove, Colombo 03, Sri Lanka
> *Mobile:* +94 713 448188 *|** Work:* +94 112 145345
>
>
> On Fri, Jul 10, 2015 at 3:25 PM, Gimantha Bandara 
> wrote:
>
>> Hi Manoj,
>>
>> Can you check if you can see the tables through message console in
>> management console under Interactive Analytics?
>>
>> On Sat, Jul 11, 2015 at 1:43 AM, Manoj Kumara  wrote:
>>
>>> Hi Gokul,
>>>
>>> I tried create a gadget but it dose not show the available
>>> datasouces. Reported a issue [2].
>>>
>>> [1]
>>> https://docs.wso2.com/display/DAS300/Adding+Gadgets+to+a+Layout#AddingGadgetstoaLayout-Selectingadatasource
>>> [2] https://wso2.org/jira/browse/BAM-2094
>>>
>>> Regards,
>>> Manoj
>>>
>>>
>>> *Manoj Kumara |* Senior Software Engineer
>>>  Inc. *| **lean. enterprise. middleware.*
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> *Mobile:* +94 713 448188 *|** Work:* +94 112 145345
>>>
>>>
>>> On Wed, Jul 8, 2015 at 10:10 AM, Gokul Balakrishnan 
>>> wrote:
>>>
 Hi all,

 The WSO2 DAS team is pleased to announce the beta release of WSO2
 DAS 3.0.0. The distribution is available for download here
 
 .

 The release includes the following bug fixes, improvements, and
 tasks:

 Bug Fixes

- [BAM-1962 ] - License
issue in org.wso2.carbon.analytics.message.tracer.handler.feature
- [BAM-2033 ] - Graceful
Shutdown and Graceful Restart not working
- [BAM-2034 ] - WSO2 DAS
doesnt work properly when started with an offset
- [BAM-2035 ] - Event
Stream simulator doesn't work and throwing 
 java.lang.ClassCastException in
console
- [BAM-2036 ] - Date and
other fields are showing as null in application and system logs
- [BAM-2037 ] - Cannot
login to the Dashboard when server start with offset
- [BAM-2038 ] - Table
Name, By Date Range, By Query fields are getting moved when select 
 the By
Facet values
- [BAM-2043 ] - Need to
change the deployment directory folder structure
- [BAM-2045 ] - NPE when
starting Gadget generation wizard
- [BAM-2046 ] - Persist
attribute ticks are not retain in the UI
- [BAM-2047 ] - Unused
folders inside dep/server folder
- [BAM-2050 

Re: [Dev] Can't login as tenant in publisher

2015-07-19 Thread Udara Rathnayake
On Mon, Jul 20, 2015 at 12:06 PM, Lalaji Sureshika  wrote:

> UseAuthenticatedUserDomainCrypto



I think this is set to false by default. Please update identity.xml if you
are not getting it though the feature.

[1]
https://github.com/wso2/carbon-identity/blob/362cb660d0a50dcfb073a790268426c5ad11371d/features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/identity.xml#L235
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] WSO2 Data Analytics Server 3.0.0 Beta Released!

2015-07-19 Thread Nirdesha Munasinghe
Hi Dunith,

If it's a source of data, then it is best renamed as data source (two
words). A datasource means a connection to a database. +1 for help tips in
the UI.

Cheers,
-Nirdesha

On Sat, Jul 18, 2015 at 7:15 PM, Praneesha Chandrasiri 
wrote:

> We can put a note in the doc to mention that we need to have a source of
> data as a prerequisite for the gadget generation wizard, and link it to the
> page where content on creating streams is documented.
>
> On Mon, Jul 13, 2015 at 8:33 AM, Dunith Dhanushka  wrote:
>
>> Hi Manoj,
>>
>> What we meant by the term 'datasource' is any object that provides data
>> for the visualization gadget. According to the dashboard context there are
>> two datasources types, DAL tables and event streams.
>> I agree with that  the wording 'datasource' is already associated with
>> Carbon datasources and quite misleading in the dashboard's context.
>> Probably we can rename it to something else and add some context sensitive
>> help text to guide users.
>>
>> Thanks,
>> Dunith
>>
>> On Sat, Jul 11, 2015 at 2:46 AM, Gimantha Bandara 
>> wrote:
>>
>>> [Adding Dunith]
>>>
>>> On Sat, Jul 11, 2015 at 2:44 AM, Manoj Kumara  wrote:
>>>
 Hi Gimantha,

 Previously I thought its related to the datasouces we are define
 instead of the streams we create. Anyway I think the 'datasource' term is
 bit misleading WDYT ?

 Thanks for the support.

 Regards,
 Manoj


 *Manoj Kumara |* Senior Software Engineer
  Inc. *| **lean. enterprise. middleware.*
 #20, Palm Grove, Colombo 03, Sri Lanka
 *Mobile:* +94 713 448188 *|** Work:* +94 112 145345


 On Fri, Jul 10, 2015 at 3:25 PM, Gimantha Bandara 
 wrote:

> Hi Manoj,
>
> Can you check if you can see the tables through message console in
> management console under Interactive Analytics?
>
> On Sat, Jul 11, 2015 at 1:43 AM, Manoj Kumara  wrote:
>
>> Hi Gokul,
>>
>> I tried create a gadget but it dose not show the available
>> datasouces. Reported a issue [2].
>>
>> [1]
>> https://docs.wso2.com/display/DAS300/Adding+Gadgets+to+a+Layout#AddingGadgetstoaLayout-Selectingadatasource
>> [2] https://wso2.org/jira/browse/BAM-2094
>>
>> Regards,
>> Manoj
>>
>>
>> *Manoj Kumara |* Senior Software Engineer
>>  Inc. *| **lean. enterprise. middleware.*
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> *Mobile:* +94 713 448188 *|** Work:* +94 112 145345
>>
>>
>> On Wed, Jul 8, 2015 at 10:10 AM, Gokul Balakrishnan 
>> wrote:
>>
>>> Hi all,
>>>
>>> The WSO2 DAS team is pleased to announce the beta release of WSO2
>>> DAS 3.0.0. The distribution is available for download here
>>> 
>>> .
>>>
>>> The release includes the following bug fixes, improvements, and
>>> tasks:
>>>
>>> Bug Fixes
>>>
>>>- [BAM-1962 ] - License
>>>issue in org.wso2.carbon.analytics.message.tracer.handler.feature
>>>- [BAM-2033 ] - Graceful
>>>Shutdown and Graceful Restart not working
>>>- [BAM-2034 ] - WSO2 DAS
>>>doesnt work properly when started with an offset
>>>- [BAM-2035 ] - Event
>>>Stream simulator doesn't work and throwing 
>>> java.lang.ClassCastException in
>>>console
>>>- [BAM-2036 ] - Date and
>>>other fields are showing as null in application and system logs
>>>- [BAM-2037 ] - Cannot
>>>login to the Dashboard when server start with offset
>>>- [BAM-2038 ] - Table
>>>Name, By Date Range, By Query fields are getting moved when select 
>>> the By
>>>Facet values
>>>- [BAM-2043 ] - Need to
>>>change the deployment directory folder structure
>>>- [BAM-2045 ] - NPE when
>>>starting Gadget generation wizard
>>>- [BAM-2046 ] - Persist
>>>attribute ticks are not retain in the UI
>>>- [BAM-2047 ] - Unused
>>>folders inside dep/server folder
>>>- [BAM-2050 ] - Unable to
>>>start two DAS instances in the same machine with offset
>>>- [BAM-2053 ] - [UI] Data
>>>purging lands browser on blank page
>>>- [BAM-2054 ] - Purging
>>>Data Failed with OutOfMemoryError
>>>- [BAM-2055 

Re: [Dev] Refactoring asts to assets in carbon-store and product-es

2015-07-19 Thread Manuranga Perera
Hi Prasanna,

Renaming *asts * to *assets* has already been done. please create a JIRA if
there is any place this change is not reflected.

On Mon, Jul 20, 2015 at 11:32 AM, Prasanna Dangalla 
wrote:

>
>
> On Mon, Jul 20, 2015 at 10:18 AM, Sameera Medagammaddegedara <
> samee...@wso2.com> wrote:
>
>> Hi Prasanna,
>>
>> We have started working on this feature.However, this will not be merged
>> to the carbon-store master branch until after the ES 2.0.0 release as it
>> will require extensive testing.
>>
>>
> Hi SameeraM/ ES team,
>
> Adding m...@wso2.com
>
> As we have planned, G-Reg 5.0.0-beta is scheduled to be release on 22nd
> July(Wednesday). This is a road block for us to release G-Reg 5.0.0 beta.
> What is the possibility getting this fix before 22nd July ?
>
>
>> Thank You,
>> Sameera
>>
>> On Mon, Jul 20, 2015 at 12:37 AM, Prasanna Dangalla 
>> wrote:
>>
>>> Hi ES team,
>>>
>>> It has been nearly one month. Any Update on STORE-817[1] ?
>>>
>>> [1] - https://wso2.org/jira/browse/STORE-817
>>>
>>> Thanks
>>> Prasanna
>>>
>>> On Fri, Jun 26, 2015 at 2:17 PM, Chandana Napagoda 
>>> wrote:
>>>
 Hi Ruchira,

 Can we get this fixed by at least one week before beta release(14th
 July)?

 Regards,
 Chandana

 On Fri, Jun 26, 2015 at 1:58 PM, Ruchira Wageesha 
 wrote:

>
>
> On Fri, Jun 26, 2015 at 11:30 AM, Shazni Nazeer 
> wrote:
>
>> Hi Tanya,
>>
>> I did the change from "asts" to "assets" and build it against
>> 2.3.0-SNAPSHOT and found nothing broken as of yet.
>>
>> @Ruchira,
>>
>> Can we have 2.3.0 carbon-store released along with the following
>> fixes on or before Monday.
>>
>> [1] https://wso2.org/jira/browse/STORE-789
>>
>> [2] https://wso2.org/jira/browse/STORE-821
>>
>> Above two can be fixed by Monday, but not the STORE-817 which might
> need more time.
>
>
>> [3] https://wso2.org/jira/browse/STORE-817
>>
>>
>>
>> Shazni Nazeer
>> Mob : +94 37331
>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>> Blog : http://shazninazeer.blogspot.com
>>
>> On Mon, Jun 15, 2015 at 6:36 PM, Tanya Madurapperuma 
>> wrote:
>>
>>> Hi APIM / Greg teams and all,
>>>
>>> As informed offline (to greg and apim teams) we have refactored *asts
>>>  *in carbon store and product-es to *assets *to fix the jira [1].
>>>
>>> Since this will break your extensions, we haven't merged the changes
>>> to master, instead have pushed the changes to a branch called *store_769
>>> *in both repos.
>>>
>>> Please refactor your extensions accrodingly and test against the
>>> branch *store_769*.
>>>
>>> We will be releasing carbon-store 2.2.0 without these fixes and will
>>> be merging these changes for the 2.3.0 release. Appreciate if you could
>>> make necessary changes at your end for the 2.3.0.
>>>
>>> Please reply to this thread if you have faced any issues.
>>>
>>> [1] https://wso2.org/jira/browse/STORE-769
>>>
>>> Thanks,
>>> Tanya
>>>
>>> --
>>> Tanya Madurapperuma
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94718184439
>>> Blog : http://tanyamadurapperuma.blogspot.com
>>>
>>
>>
>
>
> --
>
> *Ruchira Wageesha**Technical Lead*
> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com
> *
>
> *email: ruch...@wso2.com ,   blog:
> ruchirawageesha.blogspot.com ,
> mobile: +94 77 5493444 <%2B94%2077%205493444>*
>



 --
 *Chandana Napagoda*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.org

 *Email  :  chand...@wso2.com **Mobile :
 +94718169299 <%2B94718169299>*

 *Blog  :http://cnapagoda.blogspot.com
 *


>>>
>>>
>>> --
>>> 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
>>>
>>
>>
>>
>> --
>> Sameera Medagammaddegedara
>> Software Engineer
>>
>> Contact:
>> Email: samee...@wso2.com
>> Mobile: + 94 077 255 3005
>>
>
>
>
> --
> 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
>



-- 
With regards,
*Manu*ranga Perera.

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


Re: [Dev] Can't login as tenant in publisher

2015-07-19 Thread Lalaji Sureshika
Hi Manu,

I checked APIM identity.xml and the value of  UseAuthenticatedUserDomainCryp
to is set to true as below.

true

And additionally in publisher.json, *useTenantKey* attribute exists with
the value 'false'.

Thanks;


On Mon, Jul 20, 2015 at 2:23 AM, Manuranga Perera  wrote:

> Hi Sazni/Lalaji,
> Please look at your identity.xml and see if it's the the same as latest
> IS, specially the value of UseAuthenticatedUserDomainCrypto might be
> different.
>
>
> On Sun, Jul 19, 2015 at 5:14 PM, Lalaji Sureshika  wrote:
>
>> Hi Udara,
>>
>> We didn't test the tenant scenarios yet as those are decided to move with
>> APIM 2.0.0. However I checked tenant login in publisher  & store and
>> getting the same issue as Shazni mentioned.
>>
>> Thanks;
>>
>> On Sat, Jul 18, 2015 at 1:42 AM, Udara Rathnayake 
>> wrote:
>>
>>> Hi Lalaji/Dhanuka/Harsha,
>>>
>>> Have you guys tried out tenant scenarios with the new extension model?
>>> Asking this to narrow down possible issues since we haven't encounted this
>>> issue within ES pack.
>>>
>>> Regards,
>>> UdaraR
>>>
>>> On Sat, Jul 18, 2015 at 5:33 AM, Shazni Nazeer  wrote:
>>>
 Hi Sameera,

 Thanks for the response. The problem in concern is to have the ability
 to login into tenants in the default pack. Setting useTenantKey true
 manually also solves the problem of inability to login to tenants (But
 not the issue of inability to login to publisher after an unsuccessful
 attempt, needing a restart) Therefore, appreciate if this could be
 incorporated into es-feature by default, so that either the above 
 mentioned useTenantKey attribute set
 to true or with your above mentioned work around.

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

 On Fri, Jul 17, 2015 at 9:12 PM, Sameera Medagammaddegedara <
 samee...@wso2.com> wrote:

> Hi Shazni,
>
> As a temporary work around please set the active authentication method
> to basic in order to continue with development and QA. You can do this by:
>
> 1. Edit the publisher.json and change activeMethod to "basic" [1]
> 2. Edit the store.json and change activeMethod to "basic" [2]
>
> *Reference*
> [1]
> https://github.com/wso2/carbon-store/blob/master/apps/publisher/config/publisher.json#L50
> [2]
> https://github.com/wso2/carbon-store/blob/master/apps/store/config/store.json#L27
>
> On Fri, Jul 17, 2015 at 10:34 AM, Shazni Nazeer 
> wrote:
>
>> Hi ES-team,
>>
>> In G-Reg publisher default pack, we are unable to login as a tenant.
>> We get the exception shown in [3] in the console. And subsequently it's 
>> not
>> possible to login to publisher by any means unless restarting the server.
>> This turned out be due to "useTenantKey" attribute in
>> repository/deployment/server/jaggeryapps/publisher/config/publisher.json
>> and repository/deployment/server/jaggeryapps/store/config/store.json in
>> publisher and store respectively being false. Unable to login into
>> publisher and store as tenants in default pack is an issue for us. 
>> Further,
>> after a failed attempt to login as a tenant, needing a restart is also an
>> issue [1]
>>
>> Appreciate we could get this resolved so that a tenant can login in
>> the default pack?
>>
>> [1] https://wso2.org/jira/browse/STORE-922
>>
>> [2] https://wso2.org/jira/browse/REGISTRY-2687
>>
>> [3]
>>
>> org.opensaml.xml.validation.ValidationException: Signature did not
>> validate against the credential's key
>> at
>> org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:78)
>> at
>> org.jaggeryjs.modules.sso.common.util.Util.validateSignature(Util.java:290)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>> at
>> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
>> at
>> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>> at
>> org.jaggeryjs.rhino..scripts.c0._c_anonymous_3(/scripts/sso.client.js:55)
>> at
>> org.jaggeryjs.rhino..scripts.c0.call(/scripts/sso.client.js)
>> at
>> org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
>> at
>> org.jaggeryjs.rhino.publisher.controllers.c2._c_anonymous_1(/publisher/controllers/acs.jag:68)
>> at
>> org.jaggeryjs.rhino.publisher.controllers.c2.call(/publisher/controllers/acs.jag)
>> at
>> org.mozilla.javascript.optimizer.O

Re: [Dev] Can't login as tenant in publisher

2015-07-19 Thread Manuranga Perera
Hi Sazni/Lalaji,
Please look at your identity.xml and see if it's the the same as latest IS,
specially the value of UseAuthenticatedUserDomainCrypto might be different.


On Sun, Jul 19, 2015 at 5:14 PM, Lalaji Sureshika  wrote:

> Hi Udara,
>
> We didn't test the tenant scenarios yet as those are decided to move with
> APIM 2.0.0. However I checked tenant login in publisher  & store and
> getting the same issue as Shazni mentioned.
>
> Thanks;
>
> On Sat, Jul 18, 2015 at 1:42 AM, Udara Rathnayake  wrote:
>
>> Hi Lalaji/Dhanuka/Harsha,
>>
>> Have you guys tried out tenant scenarios with the new extension model?
>> Asking this to narrow down possible issues since we haven't encounted this
>> issue within ES pack.
>>
>> Regards,
>> UdaraR
>>
>> On Sat, Jul 18, 2015 at 5:33 AM, Shazni Nazeer  wrote:
>>
>>> Hi Sameera,
>>>
>>> Thanks for the response. The problem in concern is to have the ability
>>> to login into tenants in the default pack. Setting useTenantKey true
>>> manually also solves the problem of inability to login to tenants (But
>>> not the issue of inability to login to publisher after an unsuccessful
>>> attempt, needing a restart) Therefore, appreciate if this could be
>>> incorporated into es-feature by default, so that either the above mentioned 
>>> useTenantKey attribute set
>>> to true or with your above mentioned work around.
>>>
>>> Shazni Nazeer
>>> Mob : +94 37331
>>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>>> Blog : http://shazninazeer.blogspot.com
>>>
>>> On Fri, Jul 17, 2015 at 9:12 PM, Sameera Medagammaddegedara <
>>> samee...@wso2.com> wrote:
>>>
 Hi Shazni,

 As a temporary work around please set the active authentication method
 to basic in order to continue with development and QA. You can do this by:

 1. Edit the publisher.json and change activeMethod to "basic" [1]
 2. Edit the store.json and change activeMethod to "basic" [2]

 *Reference*
 [1]
 https://github.com/wso2/carbon-store/blob/master/apps/publisher/config/publisher.json#L50
 [2]
 https://github.com/wso2/carbon-store/blob/master/apps/store/config/store.json#L27

 On Fri, Jul 17, 2015 at 10:34 AM, Shazni Nazeer 
 wrote:

> Hi ES-team,
>
> In G-Reg publisher default pack, we are unable to login as a tenant.
> We get the exception shown in [3] in the console. And subsequently it's 
> not
> possible to login to publisher by any means unless restarting the server.
> This turned out be due to "useTenantKey" attribute in
> repository/deployment/server/jaggeryapps/publisher/config/publisher.json
> and repository/deployment/server/jaggeryapps/store/config/store.json in
> publisher and store respectively being false. Unable to login into
> publisher and store as tenants in default pack is an issue for us. 
> Further,
> after a failed attempt to login as a tenant, needing a restart is also an
> issue [1]
>
> Appreciate we could get this resolved so that a tenant can login in
> the default pack?
>
> [1] https://wso2.org/jira/browse/STORE-922
>
> [2] https://wso2.org/jira/browse/REGISTRY-2687
>
> [3]
>
> org.opensaml.xml.validation.ValidationException: Signature did not
> validate against the credential's key
> at
> org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:78)
> at
> org.jaggeryjs.modules.sso.common.util.Util.validateSignature(Util.java:290)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
> at
> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
> at
> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
> at
> org.jaggeryjs.rhino..scripts.c0._c_anonymous_3(/scripts/sso.client.js:55)
> at
> org.jaggeryjs.rhino..scripts.c0.call(/scripts/sso.client.js)
> at
> org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
> at
> org.jaggeryjs.rhino.publisher.controllers.c2._c_anonymous_1(/publisher/controllers/acs.jag:68)
> at
> org.jaggeryjs.rhino.publisher.controllers.c2.call(/publisher/controllers/acs.jag)
> at
> org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
> at
> org.jaggeryjs.rhino.publisher.controllers.c2._c_script_0(/publisher/controllers/acs.jag:20)
> at
> org.jaggeryjs.rhino.publisher.controllers.c2.call(/publisher/controllers/acs.jag)
> at
> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
> at
> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3

Re: [Dev] Input parameter values are not assigning in the server side (using SoapUI)

2015-07-19 Thread Chathura Priyankara
Hi Bimali,

Check whether the wadl link that you are using in SoapUI is correct.
And make sure that the wadl is accessible.

Thanks,
Chathura.

On Mon, Jul 20, 2015 at 11:34 AM, Bimali Dayananda  wrote:

> Hi,
>
> I'm testing a jax-rs web service (GET method) using SoapUI. I set
> parameter values in the request.
> But from the server side it always takes null values as parameter values.
>
> Any idea about this problem?
>
> Thanks.
>
> --
> Bimali Dayananda
> Intern-Software Engineering
> Mobile : +94(77) 571 6618
> bim...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge PRs

2015-07-19 Thread Chamila Wijayarathna
Hi,

Please review and merge following PRs.
https://github.com/wso2/carbon4-kernel/pull/306
https://github.com/wso2/charon/pull/21

Thanks

-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Input parameter values are not assigning in the server side (using SoapUI)

2015-07-19 Thread Bimali Dayananda
Hi,

I'm testing a jax-rs web service (GET method) using SoapUI. I set parameter
values in the request.
But from the server side it always takes null values as parameter values.

Any idea about this problem?

Thanks.

-- 
Bimali Dayananda
Intern-Software Engineering
Mobile : +94(77) 571 6618
bim...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] UX team feedback on social UI

2015-07-19 Thread Nadeesha Meegoda
Hi Jerad/Udara,

I agree with the colors Jerad suggested, Regarding the tooltip thing I
prefer what Jerad suggested. Anyway the thumbs up is for "I like this"
that's obvious. But the tooltip makes it more clear and looks more
clickable/descriptive as per my view. Just saw the exact thing in YouTube
videos.


[image: Inline image 1]

Regards,
Nadeesha


On Mon, Jul 20, 2015 at 10:03 AM, Jerad Rutnam  wrote:

> Hi Udara,
>
> Then it's ok. We can just have blue (theme color) for "like" active state
> and red/black etc ... color for "dislike" state. :)
>
> Cheers,
> Jerad
>
> --
> *Jerad Rutnam*
> *Software Engineer*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Nadeesha Meegoda*
Software Engineer - QA
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
email : nadees...@wso2.com
mobile: +94783639540
<%2B94%2077%202273555>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Is it mandatory to send Assertion Consumer Service URL in a Passive Auth request?

2015-07-19 Thread Malintha Amarasinghe
Hi all.

According to my understanding, Passive Auth requests can be used to allow a
user to access some specified pages anonymously. For that I've tried to
send the request [1] but got the error [2] from the IS side.

According to the error it's required to send the ACS url with auth request.
The request [3] after adding the ACS url was succeeded. Is it mandatory to
send ACS url when sending a Passive auth request?

Thanks & Regards.
MalinthaA.

[1]



   SOME_ISSUER
   

[2]

[2015-07-20 10:13:46,984] ERROR
{org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet} -  ACS
Url is Null
[2015-07-20 10:13:46,984] ERROR
{org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet} -  Error
when processing the authentication request!
org.wso2.carbon.identity.base.IdentityException: Unexpected error in
sending message out
at
org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet.sendResponse(SAMLSSOProviderServlet.java:480)
at
org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet.handleAuthenticationReponseFromFramework(SAMLSSOProviderServlet.java:587)
at
org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet.handleRequest(SAMLSSOProviderServlet.java:174)
at
org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet.doGet(SAMLSSOProviderServlet.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)


[3]


https://localhost/someapp/acs.jag";
ID="ahpdbphlocicklighkgcnhnfmfgcemegknlojohp" IsPassive="true"
IssueInstant="2015-07-20T04:53:44.704Z" Version="2.0">
   SOME_ISSUER
   



-- 
Malintha Amarasinghe
Software Engineer
*WSO2, Inc. - lean | enterprise | middleware*
http://wso2.com/

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


Re: [Dev] kafka UI improvement (ESBJAVA-3915)

2015-07-19 Thread Shakila Sivagnanarajah
Hi Malaka,

I have modified the code according to your comment. Please find the PR [1].
[1] https://github.com/wso2/carbon-mediation/pull/294

Thank you

On Fri, Jul 17, 2015 at 5:21 PM, Malaka Silva  wrote:

> Hi Shakila,
>
> Added some comments.
>
> Did you check other inbound protocols with this change?
>
> Don't we need to apply the same for update page as well?
>
> On Fri, Jul 17, 2015 at 4:55 PM, Shakila Sivagnanarajah 
> wrote:
>
>> Hi Malaka,
>>
>> Please review and merge PR[1] for $subject.
>>
>> [1] https://github.com/wso2/carbon-mediation/pull/294
>>
>>
>> Thank you
>> --
>> Shakila Sivagnanarajah
>> Associate Software Engineer
>> Mobile :+94 (0) 770 760240
>> shak...@wso2.com
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :+94 (0) 770 760240
shak...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] UX team feedback on social UI

2015-07-19 Thread Jerad Rutnam
Hi Udara,

Then it's ok. We can just have blue (theme color) for "like" active state
and red/black etc ... color for "dislike" state. :)

Cheers,
Jerad

-- 
*Jerad Rutnam*
*Software Engineer*

WSO2 Inc.
lean | enterprise | middleware
M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppM] App manager-1.1.0 with Carbon 4.4.0 upgrade status

2015-07-19 Thread Ruwan Abeykoon
Hi Prabath,
The problem is isolated. Issue is having wadl and jaxb jars as bundles.
Removing one of the bundles causes the problem disappear.
I will work with governance/carbon teams to get a resolution.

Cheers,
Ruwan



On Sat, Jul 18, 2015 at 11:18 AM, Prabath Abeysekera 
wrote:

> Hi Ruwan,
>
> Did we manage to fix this?
>
> Cheers,
> Prabath
>
> On Wed, Jul 15, 2015 at 7:54 PM, Ruwan Abeykoon  wrote:
>
>> Hi All,
>> Yet another update on $subject
>> The intermittent classloader issue could not be resolved yet. Here are
>> few observations.
>>
>> The jaggery application calls the CarbonWebappClassloader to lookup a
>> class in governance API bundle. This fails.
>> However the same class is properly loaded via different bundle (Say
>> WebappManagment) classloader which is not initially loaded via
>> Tomcat/Jaggary app.
>> No issue found in "launch.ini". No apparent conflicting bundles or
>> unsatisfied dependencies. There were few duplicate packaged exported by
>> different bundles, but seems they are not causing the issue.
>>
>> I am working with Sameera  to find the underlying cause.
>>
>> I am unable to create a PR with the version change due to above issue.
>>
>> Cheers,
>> Ruwan
>>
>> On Wed, Jul 8, 2015 at 11:28 AM, Ruwan Abeykoon  wrote:
>>
>>> Hi Team,
>>> I would like to update you on $subject
>>>
>>> 1. All the module versions are bumped up to 1.1.0-SNAPSHOT
>>> 2. Removed all the carbon 4.2.0 and related features which depend on C
>>> 4.2.0 and added Carbon 4.4.0 kernel and other features compatible with
>>> Carbon 4.4.0 (registry, governance, mediation, Jaggery, etc).
>>> 3. Forked ES for C 4.4.0 version bump up, upgraded the dependencies, Had
>>> to change few classes in ES to be able to get it compatible with governance
>>> 4.5.1.
>>> 4. Changed few classes and jaggery files which needed to be changed due
>>> to method signature changes in registry
>>> (e.g. GenericArtifact.invokeAction(...)).
>>>
>>> Current Status with Carbon 4.4.0
>>> 1. AppM builds and starts successfully
>>> 2. Can create web applications, publish and subscribe.
>>>
>>> Present Issues which I am working on.
>>> 1. Intermittent, Classloader or similar issue in loading
>>> org.wso2.carbon.governance.api.generic [1]
>>> 2. Need to test most of other areas(mobile apps, policy, throttling)
>>> 3. At the moment, update synapse config to the gateway is failing.
>>> 4. Clean up the code which had experimental/debug code
>>> 5. Remove unwanted/duplicate jaggery modules [2]
>>>
>>> None of the changes are committed to any public repository yet.
>>>
>>>
>>> [1] Mail thread "[Dev]Class Loading issue in Jaggery, Carbon 4.4.0"
>>> [2] Mail thread  "[Dev][AppM] Removing multiple "modules" directories"
>>>
>>> --
>>>
>>> *Ruwan Abeykoon*
>>> *Architect,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: ruw...@wso2.com
>>> phone:(+94) 39736
>>>
>>
>>
>>
>> --
>>
>> *Ruwan Abeykoon*
>> *Architect,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ruw...@wso2.com
>> phone:(+94) 39736
>>
>
>
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>



-- 

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

email: ruw...@wso2.com
phone:(+94) 39736
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] UX team feedback on social UI

2015-07-19 Thread Udara Rathnayake
sent from my nexus4, ignore any typos
On Jul 20, 2015 09:08, "Jerad Rutnam"  wrote:
>
> Hi Udara,
>
> So there is an use case where users rate and like/dislike comments.
>
> Just for clarifications, Is it necessary for giving a feature for users
to rate comments?
Just like/dislike no way to rate a comment.
>
> And I believe in this use case each comments can have many likes and
dislikes. But any particular reason that we indicates the user that a
person who liked or disliked is online?
You got it wrong I think. This is to indicate "I like this comment" or "I
dislike this comment".
>
> Regards,
> Jerad
>
> On Sat, Jul 18, 2015 at 8:52 PM, Udara Rathnayake  wrote:
>>
>> Hi Jerad,
>>
>>
>> On Sat, Jul 18, 2015 at 8:41 PM, Jerad Rutnam  wrote:
>>>
>>> Hi Udara,
>>>
>>> I think something like this would be nice if it's for the asset.
>>
>> This(like or dislike) is not for a asset(gadget or site) but for a user
review on a asset.
>>
>>>
>>> And i'm not sure where that green icons are showing. I think we can
have some simple single color like grey and give a low prominence to it.
Because I believe it's not anything to highlight/prominent. WDYT?
>>
>> At the moment we use a green colored thumbs up/down image to indicate
whether the logged in user liked or disliked particular user review.
>>
>> ​
>>>
>>>
>>> Regards,
>>> Jerad
>>>
>>> On Sat, Jul 18, 2015 at 7:15 PM, Udara Rathnayake 
wrote:

 Hi UX team,

 There are two jiras[1][2] reported by QA team. These are more like
UI/UX improvements hence we are looking for your input.

 I'm +1 to change the thumbs down image color. But I believe we don't
need to bring complexity by putting a tooltip on these two simple yet self
expressive icons.

 WDYT?

 [1] https://wso2.org/jira/browse/STORE-826
 [2] https://wso2.org/jira/browse/STORE-803

 Regards,
 UdaraR

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

>>>
>>>
>>>
>>> --
>>> Jerad Rutnam
>>> Software Engineer
>>>
>>> WSO2 Inc.
>>> lean | enterprise | middleware
>>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>
>>
>
>
>
> --
> Jerad Rutnam
> Software Engineer
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge

2015-07-19 Thread Prabath Ariyarathna
Hi Chanaka.

Sure. I will arrange the code review.


Thanks.

On Mon, Jul 20, 2015 at 9:26 AM, Chanaka Fernando  wrote:

> Hi Prabath,
>
> Please arrange a code review with the team such that we can quickly go
> through the code and put more eyes to catch any issues if there are.
>
> Thanks,
> Chanaka
>
> On Mon, Jul 20, 2015 at 9:22 AM, Prabath Ariyarathna 
> wrote:
>
>> Hi All.
>>
>> Please review and merge following PRs[1][2] for the public jira[3].
>>
>> [1] = https://github.com/wso2/wso2-synapse/pull/269
>> [2] = https://github.com/wso2/carbon-mediation/pull/296
>> [3] = https://wso2.org/jira/browse/ESBJAVA-3852
>>
>> Thanks.
>>
>> --
>>
>> *Prabath Ariyarathna*
>>
>> *Associate Technical Lead*
>>
>> *WSO2, Inc. *
>>
>> *lean . enterprise . middleware *
>>
>>
>> *Email: prabat...@wso2.com *
>>
>> *Blog: http://prabu-lk.blogspot.com *
>>
>> *Flicker : https://www.flickr.com/photos/47759189@N08
>> *
>>
>> *Mobile: +94 77 699 4730 *
>>
>>
>>
>>
>>
>>
>
>
> --
> --
> Chanaka Fernando
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
> Wordpress:http://chanakaudaya.wordpress.com
>
>
>
>


-- 

*Prabath Ariyarathna*

*Associate Technical Lead*

*WSO2, Inc. *

*lean . enterprise . middleware *


*Email: prabat...@wso2.com *

*Blog: http://prabu-lk.blogspot.com *

*Flicker : https://www.flickr.com/photos/47759189@N08
*

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


Re: [Dev] Please review and merge

2015-07-19 Thread Chanaka Fernando
Hi Prabath,

Please arrange a code review with the team such that we can quickly go
through the code and put more eyes to catch any issues if there are.

Thanks,
Chanaka

On Mon, Jul 20, 2015 at 9:22 AM, Prabath Ariyarathna 
wrote:

> Hi All.
>
> Please review and merge following PRs[1][2] for the public jira[3].
>
> [1] = https://github.com/wso2/wso2-synapse/pull/269
> [2] = https://github.com/wso2/carbon-mediation/pull/296
> [3] = https://wso2.org/jira/browse/ESBJAVA-3852
>
> Thanks.
>
> --
>
> *Prabath Ariyarathna*
>
> *Associate Technical Lead*
>
> *WSO2, Inc. *
>
> *lean . enterprise . middleware *
>
>
> *Email: prabat...@wso2.com *
>
> *Blog: http://prabu-lk.blogspot.com *
>
> *Flicker : https://www.flickr.com/photos/47759189@N08
> *
>
> *Mobile: +94 77 699 4730 *
>
>
>
>
>
>


-- 
--
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
Wordpress:http://chanakaudaya.wordpress.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge

2015-07-19 Thread Prabath Ariyarathna
Hi All.

Please review and merge following PRs[1][2] for the public jira[3].

[1] = https://github.com/wso2/wso2-synapse/pull/269
[2] = https://github.com/wso2/carbon-mediation/pull/296
[3] = https://wso2.org/jira/browse/ESBJAVA-3852

Thanks.

-- 

*Prabath Ariyarathna*

*Associate Technical Lead*

*WSO2, Inc. *

*lean . enterprise . middleware *


*Email: prabat...@wso2.com *

*Blog: http://prabu-lk.blogspot.com *

*Flicker : https://www.flickr.com/photos/47759189@N08
*

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


Re: [Dev] [ES] UX team feedback on social UI

2015-07-19 Thread Jerad Rutnam
Hi Udara,

So there is an use case where users rate and like/dislike comments.

Just for clarifications, Is it necessary for giving a feature for users to
rate comments?

And I believe in this use case each comments can have many likes and
dislikes. But any particular reason that we indicates the user that a
person who liked or disliked is online?

Regards,
Jerad

On Sat, Jul 18, 2015 at 8:52 PM, Udara Rathnayake  wrote:

> Hi Jerad,
>
>
> On Sat, Jul 18, 2015 at 8:41 PM, Jerad Rutnam  wrote:
>
>> Hi Udara,
>>
>> I think something like this would be nice if it's for the asset.
>>
> This(like or dislike) is not for a asset(gadget or site) but for a user
> review on a asset.
>
>
>> And i'm not sure where that green icons are showing. I think we can have
>> some simple single color like grey and give a low prominence to it. Because
>> I believe it's not anything to highlight/prominent. WDYT?
>>
> At the moment we use a green colored thumbs up/down image to indicate
> whether the logged in user liked or disliked particular user review.
>
> ​
>
>>
>> Regards,
>> Jerad
>>
>> On Sat, Jul 18, 2015 at 7:15 PM, Udara Rathnayake 
>> wrote:
>>
>>> Hi UX team,
>>>
>>> There are two jiras[1][2] reported by QA team. These are more like UI/UX
>>> improvements hence we are looking for your input.
>>>
>>> I'm +1 to change the thumbs down image color. But I believe we don't
>>> need to bring complexity by putting a tooltip on these two simple yet self
>>> expressive icons.
>>>
>>> WDYT?
>>>
>>> [1] https://wso2.org/jira/browse/STORE-826
>>> [2] https://wso2.org/jira/browse/STORE-803
>>>
>>> Regards,
>>> UdaraR
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Jerad Rutnam*
>> *Software Engineer*
>>
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>
>
>


-- 
*Jerad Rutnam*
*Software Engineer*

WSO2 Inc.
lean | enterprise | middleware
M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fetch Email Id from Wso2 Store user signup section

2015-07-19 Thread rohit
Hello All,
Can anyone please guide me on how to fetch the email id from the Wso2 Store
user sign up section. A generic way so that every time user signs up that id
can be captured and can be provided in the workflow-extensions.xml in wso2
API Manager.
Thanks in advance!



--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/Fetch-Email-Id-from-Wso2-Store-b-user-signup-section-b-tp121955.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC-2015] Data Wrangler extension for WSO2 Machine Learner

2015-07-19 Thread Danula Eranjith
Hi Nirmal,

Would it be possible to get some sample data sets which are more likely to
be pre-processed using wrangler. I am currently testing my implementations
against small and more general data sets.

I have checked datasets available at [1]
 as well.
But there is nothing much to be processed as they are ready to be fed to ML.

[1] - https://github.com/wso2/product-ml/tree/master/modules/samples

Thanks,
Danula

On Thu, Jul 16, 2015 at 10:15 PM, Nirmal Fernando  wrote:

> Thanks Danula.
>
> On Thu, Jul 16, 2015 at 10:07 PM, Danula Eranjith 
> wrote:
>
>> Hi all,
>>
>> Sorry for not keeping you in the loop.
>>
>> After considering and experimenting with several options. I am using the
>> javascript code generated by wrangler to implement them using spark. I have
>> used regular expressions to extract the operations, parameters and values
>> and mapped them to spark transformations I previously developed.
>>
>> The code generated by wrangler for certain functions have nested
>> operations.
>>
>> (1)
>>
>> /* Fill split3  with values from above */
>> w.add(dw.fill().column(["split3"])
>> .table(0)
>> .status("active")
>> .drop(false)
>> .direction("down")
>> .method("copy")
>> .row(undefined)
>> )
>>
>> (2)
>>
>> /* Delete  rows where split1 is null */
>> w.add(dw.filter().column([])
>> .table(0)
>> .status("active")
>> .drop(false)
>> .row(dw.row().column([])
>> .table(0)
>> .status("active")
>> .drop(false)
>> .conditions([dw.is_null().column([])
>> .table(0)
>> .status("active")
>> .drop(false)
>> .lcol("split1")
>> .value(undefined)
>> .op_str("is null")
>> ])
>> )
>> )
>>
>> I have succeeded in parsing the operations similar to (1) above and
>> currently working on extending it to work on operations similar to (2).
>>
>> Next step would be automating the process of spark transformation
>> generation.
>>
>> Thanks,
>> Danula
>>
>> On Wed, Jul 15, 2015 at 7:32 PM, Nirmal Fernando  wrote:
>>
>>> Hi Danula,
>>>
>>> Please send an update at least every week.
>>>
>>> On Wed, Jul 15, 2015 at 5:51 PM, Supun Sethunga  wrote:
>>>
 Hi Danula,

 Any update on the progress? Were you managed to integrate the
 transformations with the wrangler?

 Thanks,

 On Thu, Jul 2, 2015 at 11:38 AM, Danula Eranjith 
 wrote:

> Hi all,
>
> Update on the current progress of the project and future activities as
> we discussed at the recent meeting.
>
> *Current Progress*
>
> I have completed the phase of creating spark transformations relevant
> to operations available in wrangler.
>
> Operations implemented
> - Fill
> - Split
> - Drop
> - Delete
> - Extract
>
> *Future activities*
>
> - Modify the wrangler interface to suit the current implementation
> - Automate the process of generating Spark transformations
> - Integrating wrangler to the ML workflow
>
> Thanks,
> Danula
>
> On Sun, Jun 28, 2015 at 9:31 AM, Danula Eranjith 
> wrote:
>
>> Hi all,
>>
>> No, We haven't done a review yet.
>> It would be great if we could have one so that I can discuss with you
>> all and clarify the next steps of the implementation as you mentioned.
>>
>> Thanks
>> Danula
>>
>> On Sun, Jun 28, 2015 at 9:25 AM, Supun Sethunga 
>> wrote:
>>
>>> Hi Danula,
>>>
>>> Did we have a review for the work done so far? If not, shall we have
>>> a one? We can clear out any doubts and issues as well..
>>>
>>> Thanks,
>>> Supun
>>>
>>> On Wed, Jun 24, 2015 at 6:42 AM, Nirmal Fernando 
>>> wrote:
>>>
 Hi Danula,

 Thanks for the update, keep them coming.

 On a JavaRDD you can perform a collect() to get a list, AFAIR. Yes,
 this is costly, since it would load whole dataset into memory. So, is 
 this
 an operation which involves multiple rows?

 On Tue, Jun 23, 2015 at 2:15 PM, Danula Eranjith <
 hmdanu...@gmail.com> wrote:

> Hi Supun,
>
> I modified the "Fill" operation to add what you mentioned.
>
> I used a workaround to to implement certain parts of the
> operations such as filling with values from rows above and below.
> I created a List Implementation using toArray() method in JavaRDD
> and then converted it back to a JavaRDD after the operation.
>
> This will be inefficient (in terms of both memory and time) when
> working with very large data sets. But I think its important to have 
> these
> features included. Otherwise a user would be left with very limited 
> set of
> operations.
>
> Please let me know if you have a different opinion on this.
>
> Thanks,
> Danula
>
> On Tue, Ju

Re: [Dev] [AF] Problem with building CAR files in jenkins with custom repo location

2015-07-19 Thread Danushka Fernando
Hi Samith
Ad I previously mentioned I am using the default AF dev setup (jenkins
configurations) so its already there. This is an issue with the
wso2-genaral-project-plugin AFAIU. Because all other artifacts are there in
the custom repo and when building the car its looking in the correct place
but its installed in to wrong location.

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

On Sun, Jul 19, 2015 at 7:38 PM, Samith Dassanayake  wrote:

> Hi Danushka,
> By setting "localRepository" value as I have mentioned above, jenkins
> will set the "Dmaven.repo.local"(local repository location) option using
> the above method. I think in your case, wso2 project plugin is using the
> localRepository[1] defined in the the global
> configuration($M2_HOME/conf/setting.xml) even it is passed as a maven
> option "Dmaven.repo.local".
>
> [1] https://maven.apache.org/guides/mini/guide-configuring-maven.html
>
> Regards,
> Samith
>
> On Sun, Jul 19, 2015 at 6:34 PM, Danushka Fernando 
> wrote:
>
>> Hi Samith
>> I am using AF dev setup. So its using the custom location as repo.
>> Problem is wso2 project plugin installs the artifact to .m2 rather than to
>> the custom repo. So when it's building the car its looking for the artifact
>> in custom repo and its not there so build fails. So if I copy .m2 artifact
>> and trigger Jenkins build its building without an issue. Problem is with
>> the plugin. Setup is working correctly.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>>
>> On Jul 19, 2015 5:57 PM, "Samith Dassanayake"  wrote:
>>
>>> Hi Danushka,
>>>
>>> You have to set the "class" attribute of the "localRepository" element
>>> of the job config to
>>> "org.wso2.carbon.appfactory.jenkins.extentions.AFLocalRepositoryLocator" to
>>> use the tenant specific m2 Repo as in [1]. Then when a build is triggered,
>>> "locate"[2][3] method of the AFLocalRepositoryLocator will be invoked and
>>> it will choose the .m2 repo location accordingly
>>>
>>> [1]
>>> https://github.com/wso2/product-af/blob/master/modules/components/org.wso2.carbon.appfactory.core/src/main/resources/jenkins-config.xml#L104
>>> [2]
>>> https://github.com/wso2/product-af/blob/master/modules/webapps/appfactory-plugin/src/main/java/org/wso2/carbon/appfactory/jenkins/extentions/AFLocalRepositoryLocator.java#L49
>>> [3]
>>> http://buddycode.blogspot.com/2015/06/jenkins-deployment-in-wso2-appfactory.html
>>>
>>> Regards,
>>> Samith
>>>
>>> On Sat, Jul 18, 2015 at 6:30 PM, Danushka Fernando 
>>> wrote:
>>>
 Hi All

 Currently I am working on [1]. While working on it I faced $subject.

 In AF we are using jenkins as the default build server and for each
 tenant we point to a custom repository (maven repository) location so all
 tenant artifacts are installed their own repository. But when I build the
 Resources Project with these settings it install the artifacts to the basic
 .m2 folder of the afpuppet user (owner of the jenkins process). I guess
 this is a bug in some plugin we developed. Can some one shed some light on
 this since I am stuck on this.


 [1] [Architecture] [AF] Adding CAR application type to App Factory

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

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


>>>
>>>
>>> --
>>> Best Regards
>>>
>>> Samith Dassanayake
>>> Software Engineer | Cloud TG
>>> WSO2, Inc. | http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> Mobile : +947 76207351
>>>
>>
>
>
> --
> Best Regards
>
> Samith Dassanayake
> Software Engineer | Cloud TG
> WSO2, Inc. | http://wso2.com
> lean. enterprise. middleware
>
> Mobile : +947 76207351
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Problem with building CAR files in jenkins with custom repo location

2015-07-19 Thread Samith Dassanayake
Hi Danushka,
By setting "localRepository" value as I have mentioned above, jenkins will
set the "Dmaven.repo.local"(local repository location) option using the
above method. I think in your case, wso2 project plugin is using the
localRepository[1] defined in the the global
configuration($M2_HOME/conf/setting.xml) even it is passed as a maven
option "Dmaven.repo.local".

[1] https://maven.apache.org/guides/mini/guide-configuring-maven.html

Regards,
Samith

On Sun, Jul 19, 2015 at 6:34 PM, Danushka Fernando 
wrote:

> Hi Samith
> I am using AF dev setup. So its using the custom location as repo. Problem
> is wso2 project plugin installs the artifact to .m2 rather than to the
> custom repo. So when it's building the car its looking for the artifact in
> custom repo and its not there so build fails. So if I copy .m2 artifact and
> trigger Jenkins build its building without an issue. Problem is with the
> plugin. Setup is working correctly.
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
>
> On Jul 19, 2015 5:57 PM, "Samith Dassanayake"  wrote:
>
>> Hi Danushka,
>>
>> You have to set the "class" attribute of the "localRepository" element of
>> the job config to
>> "org.wso2.carbon.appfactory.jenkins.extentions.AFLocalRepositoryLocator" to
>> use the tenant specific m2 Repo as in [1]. Then when a build is triggered,
>> "locate"[2][3] method of the AFLocalRepositoryLocator will be invoked and
>> it will choose the .m2 repo location accordingly
>>
>> [1]
>> https://github.com/wso2/product-af/blob/master/modules/components/org.wso2.carbon.appfactory.core/src/main/resources/jenkins-config.xml#L104
>> [2]
>> https://github.com/wso2/product-af/blob/master/modules/webapps/appfactory-plugin/src/main/java/org/wso2/carbon/appfactory/jenkins/extentions/AFLocalRepositoryLocator.java#L49
>> [3]
>> http://buddycode.blogspot.com/2015/06/jenkins-deployment-in-wso2-appfactory.html
>>
>> Regards,
>> Samith
>>
>> On Sat, Jul 18, 2015 at 6:30 PM, Danushka Fernando 
>> wrote:
>>
>>> Hi All
>>>
>>> Currently I am working on [1]. While working on it I faced $subject.
>>>
>>> In AF we are using jenkins as the default build server and for each
>>> tenant we point to a custom repository (maven repository) location so all
>>> tenant artifacts are installed their own repository. But when I build the
>>> Resources Project with these settings it install the artifacts to the basic
>>> .m2 folder of the afpuppet user (owner of the jenkins process). I guess
>>> this is a bug in some plugin we developed. Can some one shed some light on
>>> this since I am stuck on this.
>>>
>>>
>>> [1] [Architecture] [AF] Adding CAR application type to App Factory
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Senior Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Best Regards
>>
>> Samith Dassanayake
>> Software Engineer | Cloud TG
>> WSO2, Inc. | http://wso2.com
>> lean. enterprise. middleware
>>
>> Mobile : +947 76207351
>>
>


-- 
Best Regards

Samith Dassanayake
Software Engineer | Cloud TG
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

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


Re: [Dev] [AF] Problem with building CAR files in jenkins with custom repo location

2015-07-19 Thread Danushka Fernando
Hi Samith
I am using AF dev setup. So its using the custom location as repo. Problem
is wso2 project plugin installs the artifact to .m2 rather than to the
custom repo. So when it's building the car its looking for the artifact in
custom repo and its not there so build fails. So if I copy .m2 artifact and
trigger Jenkins build its building without an issue. Problem is with the
plugin. Setup is working correctly.

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


On Jul 19, 2015 5:57 PM, "Samith Dassanayake"  wrote:

> Hi Danushka,
>
> You have to set the "class" attribute of the "localRepository" element of
> the job config to
> "org.wso2.carbon.appfactory.jenkins.extentions.AFLocalRepositoryLocator" to
> use the tenant specific m2 Repo as in [1]. Then when a build is triggered,
> "locate"[2][3] method of the AFLocalRepositoryLocator will be invoked and
> it will choose the .m2 repo location accordingly
>
> [1]
> https://github.com/wso2/product-af/blob/master/modules/components/org.wso2.carbon.appfactory.core/src/main/resources/jenkins-config.xml#L104
> [2]
> https://github.com/wso2/product-af/blob/master/modules/webapps/appfactory-plugin/src/main/java/org/wso2/carbon/appfactory/jenkins/extentions/AFLocalRepositoryLocator.java#L49
> [3]
> http://buddycode.blogspot.com/2015/06/jenkins-deployment-in-wso2-appfactory.html
>
> Regards,
> Samith
>
> On Sat, Jul 18, 2015 at 6:30 PM, Danushka Fernando 
> wrote:
>
>> Hi All
>>
>> Currently I am working on [1]. While working on it I faced $subject.
>>
>> In AF we are using jenkins as the default build server and for each
>> tenant we point to a custom repository (maven repository) location so all
>> tenant artifacts are installed their own repository. But when I build the
>> Resources Project with these settings it install the artifacts to the basic
>> .m2 folder of the afpuppet user (owner of the jenkins process). I guess
>> this is a bug in some plugin we developed. Can some one shed some light on
>> this since I am stuck on this.
>>
>>
>> [1] [Architecture] [AF] Adding CAR application type to App Factory
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards
>
> Samith Dassanayake
> Software Engineer | Cloud TG
> WSO2, Inc. | http://wso2.com
> lean. enterprise. middleware
>
> Mobile : +947 76207351
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AS platform test automation for clustering

2015-07-19 Thread KasunG Gajasinghe
It should be 404, but since the management console is registered as the
ROOT webapp, the requests to non-existing webapps gets redirected to that.
Hence, you are seeing a 302 redirect rather than a 404.

If you need to get rid of this behavior, you need to set the WebContextRoot
under carbon.xml to change the context of the mgt console webapp.

On Sun, Jul 19, 2015 at 3:46 PM, Suhan Dharmasuriya  wrote:

> Hi,
>
> We are running a cluster test automation for an AS cluster to test the Dep
> Sync functionality.
> In AS cluster we have a manger node and two worker nodes fronted by an
> Nginx load balancer.
>
> When testing the web app undeployment, we are following the below steps.
>
> 1. Undeploy the webapp from the manager node; webapp removed from svn repo
> and cluster
> message is sent.
> 2. Worker node receive the cluster message and undeploy the web app with
> an svn update.
> 3. At this point, we are sending an HTTP request to the webapp in a worker
> node to see whether
> the undeployment has taken place as expected in worker nodes.
> 4. We are expecting an HTTP 404 (Not Found) response from the worker node.
>
> This test was passing initially and now got failed the reason being that
> worker node response
> sending the HTTP 302 (Moved Temporarily) response instead of HTTP 404.
>
> What should be the correct behaviour?
> After undeploying the webapp and further HTTP requests are received to the
> removed webapp,
> what should be the node response; HTTP 302 or HTTP 404?
>
> Thanks,
> Suhan
>
> --
> Suhan Dharmasuriya
> Software Engineer - Test Automation
>
> *WSO2, Inc. *
>
> lean . enterprise . middleware
> Tel: +94 112 145345
> Mob: +94 779 869138
> Blog: http://suhan-opensource.blogspot.com/
>



-- 

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


Re: [Dev] charon-v2.0.0-wso2v4 released to staging

2015-07-19 Thread Prasad Tissera
Thanks ...

Sent from my mobile
On Jul 19, 2015 10:55 AM, "KasunG Gajasinghe"  wrote:

> Hi Prasad,
>
> Released the repo.
>
> Thanks.
>
> On Sat, Jul 18, 2015 at 1:18 PM, Prasad Tissera  wrote:
>
>> charon-v2.0.0-wso2v4 released to staging [1]  and verified the fixes.
>> Please review and move to public.
>>
>> [1]. http://maven.wso2.org/nexus/content/repositories/orgwso2charon-005/
>>
>> Regards,
>> Prasad.
>>
>> --
>> Prasad Tissera
>> Software Engineer.
>> Mobile : +94777223444
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Problem with building CAR files in jenkins with custom repo location

2015-07-19 Thread Samith Dassanayake
Hi Danushka,

You have to set the "class" attribute of the "localRepository" element of
the job config to
"org.wso2.carbon.appfactory.jenkins.extentions.AFLocalRepositoryLocator" to
use the tenant specific m2 Repo as in [1]. Then when a build is triggered,
"locate"[2][3] method of the AFLocalRepositoryLocator will be invoked and
it will choose the .m2 repo location accordingly

[1]
https://github.com/wso2/product-af/blob/master/modules/components/org.wso2.carbon.appfactory.core/src/main/resources/jenkins-config.xml#L104
[2]
https://github.com/wso2/product-af/blob/master/modules/webapps/appfactory-plugin/src/main/java/org/wso2/carbon/appfactory/jenkins/extentions/AFLocalRepositoryLocator.java#L49
[3]
http://buddycode.blogspot.com/2015/06/jenkins-deployment-in-wso2-appfactory.html

Regards,
Samith

On Sat, Jul 18, 2015 at 6:30 PM, Danushka Fernando 
wrote:

> Hi All
>
> Currently I am working on [1]. While working on it I faced $subject.
>
> In AF we are using jenkins as the default build server and for each tenant
> we point to a custom repository (maven repository) location so all tenant
> artifacts are installed their own repository. But when I build the
> Resources Project with these settings it install the artifacts to the basic
> .m2 folder of the afpuppet user (owner of the jenkins process). I guess
> this is a bug in some plugin we developed. Can some one shed some light on
> this since I am stuck on this.
>
>
> [1] [Architecture] [AF] Adding CAR application type to App Factory
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards

Samith Dassanayake
Software Engineer | Cloud TG
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

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


Re: [Dev] Can't login as tenant in publisher

2015-07-19 Thread Lalaji Sureshika
Hi Udara,

We didn't test the tenant scenarios yet as those are decided to move with
APIM 2.0.0. However I checked tenant login in publisher  & store and
getting the same issue as Shazni mentioned.

Thanks;

On Sat, Jul 18, 2015 at 1:42 AM, Udara Rathnayake  wrote:

> Hi Lalaji/Dhanuka/Harsha,
>
> Have you guys tried out tenant scenarios with the new extension model?
> Asking this to narrow down possible issues since we haven't encounted this
> issue within ES pack.
>
> Regards,
> UdaraR
>
> On Sat, Jul 18, 2015 at 5:33 AM, Shazni Nazeer  wrote:
>
>> Hi Sameera,
>>
>> Thanks for the response. The problem in concern is to have the ability to
>> login into tenants in the default pack. Setting useTenantKey true
>> manually also solves the problem of inability to login to tenants (But
>> not the issue of inability to login to publisher after an unsuccessful
>> attempt, needing a restart) Therefore, appreciate if this could be
>> incorporated into es-feature by default, so that either the above mentioned 
>> useTenantKey attribute set
>> to true or with your above mentioned work around.
>>
>> Shazni Nazeer
>> Mob : +94 37331
>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>> Blog : http://shazninazeer.blogspot.com
>>
>> On Fri, Jul 17, 2015 at 9:12 PM, Sameera Medagammaddegedara <
>> samee...@wso2.com> wrote:
>>
>>> Hi Shazni,
>>>
>>> As a temporary work around please set the active authentication method
>>> to basic in order to continue with development and QA. You can do this by:
>>>
>>> 1. Edit the publisher.json and change activeMethod to "basic" [1]
>>> 2. Edit the store.json and change activeMethod to "basic" [2]
>>>
>>> *Reference*
>>> [1]
>>> https://github.com/wso2/carbon-store/blob/master/apps/publisher/config/publisher.json#L50
>>> [2]
>>> https://github.com/wso2/carbon-store/blob/master/apps/store/config/store.json#L27
>>>
>>> On Fri, Jul 17, 2015 at 10:34 AM, Shazni Nazeer  wrote:
>>>
 Hi ES-team,

 In G-Reg publisher default pack, we are unable to login as a tenant. We
 get the exception shown in [3] in the console. And subsequently it's not
 possible to login to publisher by any means unless restarting the server.
 This turned out be due to "useTenantKey" attribute in
 repository/deployment/server/jaggeryapps/publisher/config/publisher.json
 and repository/deployment/server/jaggeryapps/store/config/store.json in
 publisher and store respectively being false. Unable to login into
 publisher and store as tenants in default pack is an issue for us. Further,
 after a failed attempt to login as a tenant, needing a restart is also an
 issue [1]

 Appreciate we could get this resolved so that a tenant can login in the
 default pack?

 [1] https://wso2.org/jira/browse/STORE-922

 [2] https://wso2.org/jira/browse/REGISTRY-2687

 [3]

 org.opensaml.xml.validation.ValidationException: Signature did not
 validate against the credential's key
 at
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:78)
 at
 org.jaggeryjs.modules.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
 at
 org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
 at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
 at
 org.jaggeryjs.rhino..scripts.c0._c_anonymous_3(/scripts/sso.client.js:55)
 at
 org.jaggeryjs.rhino..scripts.c0.call(/scripts/sso.client.js)
 at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at
 org.jaggeryjs.rhino.publisher.controllers.c2._c_anonymous_1(/publisher/controllers/acs.jag:68)
 at
 org.jaggeryjs.rhino.publisher.controllers.c2.call(/publisher/controllers/acs.jag)
 at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
 at
 org.jaggeryjs.rhino.publisher.controllers.c2._c_script_0(/publisher/controllers/acs.jag:20)
 at
 org.jaggeryjs.rhino.publisher.controllers.c2.call(/publisher/controllers/acs.jag)
 at
 org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
 at
 org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
 at
 org.jaggeryjs.rhino.publisher.controllers.c2.call(/publisher/controllers/acs.jag)
 at
 org.jaggeryjs.rhino.publisher.controllers.c2.exec(/publisher/controllers/acs.jag)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
 at

[Dev] AS platform test automation for clustering

2015-07-19 Thread Suhan Dharmasuriya
Hi,

We are running a cluster test automation for an AS cluster to test the Dep
Sync functionality.
In AS cluster we have a manger node and two worker nodes fronted by an
Nginx load balancer.

When testing the web app undeployment, we are following the below steps.

1. Undeploy the webapp from the manager node; webapp removed from svn repo
and cluster
message is sent.
2. Worker node receive the cluster message and undeploy the web app with an
svn update.
3. At this point, we are sending an HTTP request to the webapp in a worker
node to see whether
the undeployment has taken place as expected in worker nodes.
4. We are expecting an HTTP 404 (Not Found) response from the worker node.

This test was passing initially and now got failed the reason being that
worker node response
sending the HTTP 302 (Moved Temporarily) response instead of HTTP 404.

What should be the correct behaviour?
After undeploying the webapp and further HTTP requests are received to the
removed webapp,
what should be the node response; HTTP 302 or HTTP 404?

Thanks,
Suhan

-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev