Re: [Dev] GReg 5.0.1 tag is not available in Git repo

2016-05-11 Thread Sameera Kannangara
Hi Manoj,

v5.0.1-RC3 is the the tag for G-Reg 5.0.1 release.
I'll look in to creating a tag to represent 5.0.1 release.Thanks for
pointing out the missing tag.

Thank you,
SameeraK.

On Wed, May 11, 2016 at 12:05 PM, Manoj Kumara <ma...@wso2.com> wrote:

> Hi Greg Team,
>
> I'll looking into released tags of each product to issue an security patch
> and noticed that tag correspond to 5.1.0 version is not available in the
> repo.
>
> Can I assume the v5.0.0-rc3 tag contain the released version of each
> dependency repo's. IMO this tag need to be created as well for supporting
> purposes.
>
> Regards,
> Manoj
>



-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Governance Registry 5.2.0 RC 2

2016-04-22 Thread Sameera Kannangara
Hi all,

I tested following scenarios,

Getting started guide in Windows environment.
WADL GAR upload in windows environment.
Notification support in windows environment.
Lifecycle operations in windows environment.

[+] Stable.

Thank you,
SameeraK.



On Fri, Apr 22, 2016 at 4:38 PM, Lahiru J Ekanayake <lahi...@wso2.com>
wrote:

> Hi All,
>
> I tested following scenarios with G-Reg 5.2.0  RC2 pack
>
> Search History - Store .
> When having multiple lifecycles in asset, publisher will auto select last
> upadted lifecycle .
> Custom RXT lifecycle promote and demote , lifecycle history .
> Login page client side validation.
> Register new user with having @ mark in username - store user registration
> page.
> Consistent alert messages.
> Lifecycle promote demote notifications .
>
> [+] stable
>
> Thanks!
>
> On Tue, Apr 19, 2016 at 10:14 PM, Thushara Ranawaka <thusha...@wso2.com>
> wrote:
>
>> Hi Devs,
>>
>> WSO2 Governance Registry 5.2.0 RC2 Release Vote.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/browse/REGISTRY-3561?filter=13023
>> 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/G-Reg/5.2.0/rc2/
>>
>> Maven staging repo:
>> *https://maven.wso2.org/nexus/content/repositories/orgwso2greg-1002/
>> <https://maven.wso2.org/nexus/content/repositories/orgwso2greg-1002/>*
>>
>> The tag to be voted upon:
>> https://github.com/wso2/product-greg/tree/v5.2.0-rc2
>>
>> [+] Stable - go ahead and release
>> [-]  Broken - do not release (please explain why)
>>
>> Thanks and Regards
>> G-Reg team
>>
>> --
>> Thanks,
>> Thushara Kasun Ranawaka
>> Software Engineer
>> WSO2 Inc.; <http://www.wso2.com>
>> lean.enterprise.middleware
>> Mobile : *+94 (0) 773438949 <%2B94%20%280%29%20773438949>*
>> *thusha...@wso2.com <thusha...@wso2.com>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
>
>
> *Lahiru J Ekanayake**Software Engineer*
> Mobile : +94 (0) 77 8812629 / +94(0) 778509547
> Email : lahi...@wso2.com
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middleware.
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Governance Registry 5.2.0 RC 1

2016-04-18 Thread Sameera Kannangara
Hi all,

Canceling this vote due to issue[1] which we found in RC1 pack. Will fix
this issue and call for a RC2 ASAP.

Thanks and Regards,
G-Reg team.

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

On Tue, Apr 12, 2016 at 3:52 PM, Thushara Ranawaka <thusha...@wso2.com>
wrote:

> Hi Devs,
>
> WSO2 Governance Registry 5.2.0 RC1 Release Vote.
>
> This release fixes the following issues:
> https://wso2.org/jira/browse/REGISTRY-3561?filter=13023
> 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/G-Reg/5.2.0/rc1/
>
> Maven staging repo:
> https://maven.wso2.org/nexus/content/repositories/orgwso2greg-1001
>
> The tag to be voted upon:
> https://github.com/wso2/product-greg/tree/v5.2.0-rc1
>
> [+] Stable - go ahead and release
> [-]  Broken - do not release (please explain why)
>
> Thanks and Regards
> G-Reg team
>
> --
> Thanks,
> Thushara Kasun Ranawaka
> Software Engineer
> WSO2 Inc.; <http://www.wso2.com>
> lean.enterprise.middleware
> Mobile : *+94 (0) 773438949 <%2B94%20%280%29%20773438949>*
> *thusha...@wso2.com <thusha...@wso2.com>*
>
> ___________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GREG][PC] Reusing the feature of Viewing Dependencies of Artifacts in Store in to PC

2016-04-04 Thread Sameera Kannangara
Hi Samith,

G-Reg dependency view displays only governance artifacts and the registry
associations between them as a graph.
This feature is developed as an app extension to the ES publisher feature,
therefore user session management is done via publisher app.

If the processes and sub-processes described in your scenario are
represented as governance artifacts you can use G-Reg dependency graph
development code easily to create a solution for your scenario.
Even if those graph components are not stored as governance artifacts you
should be able to reuse dependency graph implementation code with a little
development effort.

Thank you,
SameeraK.



On Mon, Apr 4, 2016 at 2:12 PM, Samitha Chathuranga <sami...@wso2.com>
wrote:

> Hi All,
>
> I am going to add a feature into the PC to view associations between
> processes in a graphical illustration. So all the predecessors, successors,
> subprocesses of a selected process should be displayed in this view. This
> would be something like a graph with certain modifications. And when
> clicking on each item, it should be redirected into that process's detailed
> viewer page.
>
> Anyway I have seen that the GREG has such a this feature that view
> dependencies of artifacts in store, as follows.
>
> [image: view dependencies of the selected asset]
>
> So my question is can we re use this feature into the PC for the task I
> have described above. Or will it be good to adapt it to our purpose, rather
> than developing from the scratch, using D3 or something else. Will it be
> effective and efficient to re use/ adapt the same feature for my task? Your
> comments are appreciated.
>
> Thanks
>
> --
> Samitha Chathuranga
> Software Engineer, WSO2 Inc.
> lean.enterprise.middleware
> Mobile: +94715123761
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Two-way dependencies in G-REG 5.1

2015-11-06 Thread Sameera Kannangara
Hi John,

G-Reg associations are by design represents only one-way associations.
Reason behind  this design is that some use cases need only one way of
association not both ways.

But if a user wants associations to be added to reflect both ways of the
relation,
User has to add both associations separately from both asset views.

However there is a config file that needs to be updated in order add other
association type in to the system before deployment.

 config file - /repository/conf/governance.xml.

There is a section,


policy
restservice,soapservice,wsdl
restservice,soapservice,wsdl

restservice,soapservice,wsdl,endpoint


You need to add a new association type to "restservice" extension type by
adding

restservice,soapservice,wsdl

in to association element.
After adding new line config element will look like following.


policy
restservice,soapservice,wsdl
restservice,soapservice,wsdl

restservice,soapservice,wsdl,endpoint
*restservice,soapservice,wsdl*


With this config you can restart the G-reg server, and associate API2 with
API1 using "owns" association type.
This way you can represent 2 way association.

Thank you,
SameeraK.



On Wed, Nov 4, 2015 at 10:22 PM, John Hawkins <jo...@wso2.com> wrote:

> Hi Folks,
>
> I just downloaded and ran G-REG 5.1 - nice UI !!
>
> I then created two REST API's (API1 and API2)
> I associated API1 with API2 ( API1 is 'owned by' API2)
> I then drilled down from  API1  to the impact analysis which showed the
> dependency that correctly says API1 is owned by API2.
>
> However, when I drill down from API2 to the dependency analysis it doesn't
> show that API2 owns API1.
>
> To my mind it should, shouldn't it ? After all owner and ownee is a
> two-way relation?
>
> thanks,
> John.
>
> John Hawkins
> Director: Solutions Architecture
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ES REST API calls does not communicate exceptions to REST clients

2015-11-03 Thread Sameera Kannangara
Hi ES team,

Currently I'm working on test automating life-cycle operations done via ES
apis.

In order to check or uncheck an check item associated with a life-cycle
state user makes a POST REST call to the following URL,

https://localhost:9443/publisher/apis/asset/{UUID}/update-checklist?type={shortname}={lifecyclename}

ex -
https://localhost:9443/publisher/apis/asset/12ae928a-06b9-4662-8a2a-bd9fd2a51fd9/update-checklist?type=restservice=ServiceLifeCycle

with pay load

{"checklist":[{"index":{checkitem-index},"checked":{checkbox-state}}]}

ex -
{"checklist":[{"index":2,"checked":true}]}

Also note that "checklist" array object in payload can hold multiple check
items to be committed.

Currently I'm writing a test case associated with permissions on life-cycle
check items and state transition actions.
With above REST call even if user does not have permission to check a check
item REST call returns a 200 OK response.
When such an unauthorized action is performed we can see a stack trace
logged in back-end showing the exception case occurred.
But ES API layer does not communicate this problem to the REST client.
Due to this issue, tests written to validate check item permissions are
failing.

Not only this test case similar situation (exception condition occurs in
back end but is not propagated to front end) happens in subscription test
cases.

Please provide a solution for these scenarios.

Thank you,
SameeraK.


-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Governance Registry 5.1.0 RC 1

2015-10-31 Thread Sameera Kannangara
Hi all,

Verified the life cycle functionalities with role permissions, custom
validators and custom executors.

[+] Stable - go ahead and release.

Thank you,
SameeraK.


On Sat, Oct 31, 2015 at 6:05 PM, Chandana Napagoda <chand...@wso2.com>
wrote:

> Verified basic store and publisher functionality.
>
> +1, Go ahead with release process.
>
> Regards,
> Chandana
>
> On Fri, Oct 30, 2015 at 11:40 PM, Danesh Kuruppu <dan...@wso2.com> wrote:
>
>> Hi Devs,
>>
>> WSO2 Governance Registry 5.1.0 RC1 Release Vote.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/issues/?filter=12499
>> <https://wso2.org/jira/issues/?filter=12422>
>> 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/G-Reg/5.1.0/RC1/
>>
>> Maven staging repo:
>> http://maven.wso2.org/nexus/content/repositories/orgwso2greg-096/
>> <http://www.google.com/url?q=http%3A%2F%2Fmaven.wso2.org%2Fnexus%2Fcontent%2Frepositories%2Forgwso2greg-096%2F=D=1=AFQjCNHn187zs7NcAgrhAiIk2xQJX2WUKQ>
>>
>> The tag to be voted upon:
>> https://github.com/wso2/product-greg/tree/v5.1.0-RC1
>>
>>
>> [+] Stable - go ahead and release
>> [-]  Broken - do not release (explain why)
>>
>> Thanks and Regards
>> G-Reg team
>>
>> --
>>
>> Danesh Kuruppu
>> Software Engineer
>> WSO2 Inc,
>> Mobile: +94 (77) 1690552
>>
>> ___
>> 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 <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
>
>


-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APPM/APIM] AuthorizationFailedException when getting tags where webapp/api visibility is restricted by role

2015-10-13 Thread Sameera Kannangara
Hi All,

We are releasing Carbon-governance repo on 23rd oct.
This fix will be included in the new release.

Thank you,
SameeraK.


On Wed, Oct 14, 2015 at 10:52 AM, Sameera Kannangara <samee...@wso2.com>
wrote:

> Hi Jena,
>
> We have added a fix to governance API to validate permission when
> retrieving from registry.
> Please use current development governance version (4.5.10-SNAPSHOT) in
> your local build and verify that the issue is fixed.
>
> Thank you,
> SameeraK.
>
>
> On Sat, Oct 10, 2015 at 10:36 AM, Sameera Kannangara <samee...@wso2.com>
> wrote:
>
>> Hi Nuwan,
>>
>> We were able to reproduce this issue.
>> Problem seems to be there is no enforce of user permissions when
>> retrieving from UUID cache.
>> We are looking in to this.
>>
>> Thank you,
>> SameeraK.
>>
>>
>> On Fri, Oct 9, 2015 at 10:28 PM, Nuwan Dias <nuw...@wso2.com> wrote:
>>
>>> Hi Sameera,
>>>
>>> This is a very simple scenario. Something that was working fine all this
>>> time is now breaking. No client side code changes have happened. You can
>>> get an API Manager 1.9.1 and try this scenario and then compare the same
>>> behaviour with a 1.10.0-SNAPSHOT build. Here are the steps to try.
>>>
>>> 1. Create a role (manager-role) and assign that role to a user (manager).
>>> 2. Login to the Publisher using admin credentials and create an API with
>>> restricted visibility to the manager-role. Add a tag for this API as well.
>>> 3. Login to the API Store by the manager user. You will see this API.
>>> 4. Logout and access the Store as the anonymous user. You will see no
>>> error on 1.9.1 and you will see the error on 1.10.0.
>>>
>>> To me it looks like a bug has been introduced by the underlying
>>> governance code since no code changes have happened on the client side and
>>> this error is clearly visible on both API Manager and APP Manager products.
>>>
>>> Thanks,
>>> NuwanD.
>>>
>>> On Fri, Oct 9, 2015 at 10:00 PM, Sameera Kannangara <samee...@wso2.com>
>>> wrote:
>>>
>>>> Hi Jena,
>>>>
>>>> There seems to be a misunderstanding here.
>>>> Please confirm you are executing retrieveGovernanceArtifactById method
>>>> with a UserRegistry instance as the registry parameter.
>>>> Or is registry parameter here is a CacheBackedRegistry instance?
>>>>
>>>> Because UserRegistry is the registry implementation which enforces
>>>> permissions on registry calls.
>>>> After validating permissions for the registry call, user registry
>>>> internally calls cached backed registry.
>>>>
>>>> If you call cached back registry directly it will return data from
>>>> cache without validating permissions.
>>>> That could happen if registry parameter is some how a cache backed
>>>> registry.
>>>>
>>>> I tried out the scenario where a user who has not logged in to the
>>>> carbon context trying to retrieve a governance artifact
>>>> using retrieveGovernanceArtifactById, and method returns null for a
>>>> available UUID as user is not logged in.
>>>> When I checked user name and tenent ID of the not logged in user both
>>>> values turned out to be null.
>>>>
>>>> If you are passing a UserRegistry instance as the registry parameter
>>>> of retrieveGovernanceArtifactById,
>>>> Please provide user name and tenent ID of the carbon context when the
>>>> user is not logged in.
>>>>
>>>> Thank you,
>>>> SameeraK.
>>>>
>>>>
>>>> On Fri, Oct 9, 2015 at 3:36 PM, Jenananthan Yogendran <
>>>> jenanant...@wso2.com> wrote:
>>>>
>>>>> Hi Sameera,
>>>>>
>>>>> This is what I observed when debugged the code,
>>>>>
>>>>> method getArtifactPath is getting called in the method
>>>>> retrieveGovernanceArtifactById[1]. Before caching is introduced query[2] 
>>>>> in
>>>>> getArtifactPath returned null if unauthorized user try to get the
>>>>> atrifactpath. if path is null, then method retrieveGovernanceArtifactById
>>>>> will returned null for GovernanceArtifact. So if unauthorized user try to
>>>>> get atrifact from uuid ,null was returned. But now getArtifactPath returns
>>>>> artifact path to 

Re: [Dev] [APPM/APIM] AuthorizationFailedException when getting tags where webapp/api visibility is restricted by role

2015-10-13 Thread Sameera Kannangara
Hi Jena,

We have added a fix to governance API to validate permission when
retrieving from registry.
Please use current development governance version (4.5.10-SNAPSHOT) in your
local build and verify that the issue is fixed.

Thank you,
SameeraK.


On Sat, Oct 10, 2015 at 10:36 AM, Sameera Kannangara <samee...@wso2.com>
wrote:

> Hi Nuwan,
>
> We were able to reproduce this issue.
> Problem seems to be there is no enforce of user permissions when
> retrieving from UUID cache.
> We are looking in to this.
>
> Thank you,
> SameeraK.
>
>
> On Fri, Oct 9, 2015 at 10:28 PM, Nuwan Dias <nuw...@wso2.com> wrote:
>
>> Hi Sameera,
>>
>> This is a very simple scenario. Something that was working fine all this
>> time is now breaking. No client side code changes have happened. You can
>> get an API Manager 1.9.1 and try this scenario and then compare the same
>> behaviour with a 1.10.0-SNAPSHOT build. Here are the steps to try.
>>
>> 1. Create a role (manager-role) and assign that role to a user (manager).
>> 2. Login to the Publisher using admin credentials and create an API with
>> restricted visibility to the manager-role. Add a tag for this API as well.
>> 3. Login to the API Store by the manager user. You will see this API.
>> 4. Logout and access the Store as the anonymous user. You will see no
>> error on 1.9.1 and you will see the error on 1.10.0.
>>
>> To me it looks like a bug has been introduced by the underlying
>> governance code since no code changes have happened on the client side and
>> this error is clearly visible on both API Manager and APP Manager products.
>>
>> Thanks,
>> NuwanD.
>>
>> On Fri, Oct 9, 2015 at 10:00 PM, Sameera Kannangara <samee...@wso2.com>
>> wrote:
>>
>>> Hi Jena,
>>>
>>> There seems to be a misunderstanding here.
>>> Please confirm you are executing retrieveGovernanceArtifactById method
>>> with a UserRegistry instance as the registry parameter.
>>> Or is registry parameter here is a CacheBackedRegistry instance?
>>>
>>> Because UserRegistry is the registry implementation which enforces
>>> permissions on registry calls.
>>> After validating permissions for the registry call, user registry
>>> internally calls cached backed registry.
>>>
>>> If you call cached back registry directly it will return data from cache
>>> without validating permissions.
>>> That could happen if registry parameter is some how a cache backed
>>> registry.
>>>
>>> I tried out the scenario where a user who has not logged in to the
>>> carbon context trying to retrieve a governance artifact
>>> using retrieveGovernanceArtifactById, and method returns null for a
>>> available UUID as user is not logged in.
>>> When I checked user name and tenent ID of the not logged in user both
>>> values turned out to be null.
>>>
>>> If you are passing a UserRegistry instance as the registry parameter
>>> of retrieveGovernanceArtifactById,
>>> Please provide user name and tenent ID of the carbon context when the
>>> user is not logged in.
>>>
>>> Thank you,
>>> SameeraK.
>>>
>>>
>>> On Fri, Oct 9, 2015 at 3:36 PM, Jenananthan Yogendran <
>>> jenanant...@wso2.com> wrote:
>>>
>>>> Hi Sameera,
>>>>
>>>> This is what I observed when debugged the code,
>>>>
>>>> method getArtifactPath is getting called in the method
>>>> retrieveGovernanceArtifactById[1]. Before caching is introduced query[2] in
>>>> getArtifactPath returned null if unauthorized user try to get the
>>>> atrifactpath. if path is null, then method retrieveGovernanceArtifactById
>>>> will returned null for GovernanceArtifact. So if unauthorized user try to
>>>> get atrifact from uuid ,null was returned. But now getArtifactPath returns
>>>> artifact path to unauthorized user from cache(which has the entry since
>>>> authorized user accessed the app list before this step) and
>>>> registry.get(artifactPath) in retrieveGovernanceArtifactByPath throws
>>>> exception.
>>>>
>>>> can't we modify the caching key (uuid) by appending the username. This
>>>> will ensure unauhorized user will not get path from cache.(I am not sure
>>>> whether this will impact any other functionality)
>>>>
>>>> UserRegistry userRegistry = (UserRegistry) registry;
>>>> String userName = userRegistry.getUserName

Re: [Dev] [APPM/APIM] AuthorizationFailedException when getting tags where webapp/api visibility is restricted by role

2015-10-09 Thread Sameera Kannangara
Hi Nuwan,

According to my knowledge tags do not have a permissions attached.
But resources that are tagged with those tags have permissions.
Even if a user can get all the tags, user will be able to read only the
permitted resources even though they are tagged.

As the reported exception related to retrieving a resource path
(/_system/governance/appmgt/applicationdata/provider/admin/myapp/1/webapp)
by an unauthorized user (anonymous),
Resource retrieving process here should check permission before retrieving
the resource.

Caused by:
org.wso2.carbon.registry.core.secure.AuthorizationFailedException: User
wso2.anonymous.user is not authorized to read the resource
/_system/governance/appmgt/applicationdata/provider/admin/myapp/1/webapp.

Thank you,
SameeraK.



On Fri, Oct 9, 2015 at 2:07 PM, Nuwan Dias <nuw...@wso2.com> wrote:

> You means tags have permissions? Since tags are attached to artifacts,
> shouldn't it inherit the permissions of the artifact instead of having its
> own?
>
> On Fri, Oct 9, 2015 at 1:34 PM, Sameera Kannangara <samee...@wso2.com>
> wrote:
>
>> Hi Jena,
>>
>> I assume that anon user does not have access to these tags.
>> If so why does process try to retrieve tags which are not allowed to be
>> read by anon user?
>> Above exception is expected when a user tries to perform a restricted
>> operation.
>>
>> Problem seems to be trying to access a restricted resource using anon
>> user.
>> If that back end error occurs as soon as you log out, then may be the log
>> out operation redirects user (who is anon since he just logged out) to a
>> page containing a restricted operation.
>> If this is the situation, solution would be to redirect user to a common
>> page like landing page when logged out, or add a permission check before
>> performing the restricted operation (in here the read operation).
>>
>> Thank you,
>> SameeraK.
>>
>>
>>
>>
>> On Fri, Oct 9, 2015 at 1:17 PM, Jenananthan Yogendran <
>> jenanant...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I am getting following exception when try to view the web app as
>>> anonymous user in app manger(1.1.0 snapshot) store
>>>
>>> Steps to reproduce
>>> 1 . Create a web app with tags and restrict its visibility by role
>>> 2.  log in to store with user who has correct role and list the webapps
>>> (tags are retrieved without any problem)
>>> 3.  log out and view the web apps as anonymous user -> exception thrown
>>> in the backend
>>>
>>>
>>> In the tag retrieving process,
>>>
>>> 1. get all the tags
>>> 2. get resource(uuid) by tag
>>> 3. get webapp artifact related to uuid -> this will return null if user
>>> is not authorized to access that artifact. based on that only tags
>>> associated to visible webapps will be filtered.
>>>
>>>
>>> caching the artifact path in getArtifactPath(Registry registry, String
>>> artifactId) [1] method seems to cause this issue,
>>>
>>> 1. When authorized user access the store, path of artifact which is
>>> restricted by role will be cached in the tag retrieving process.
>>> 2. So when anonymous user try to view the store, in the tag retrieving
>>> process artifact path of role restricted artifact will be return from cache
>>> and exception will be thrown when try to get the artifact from this
>>> path.since anonymous user is not authorized to access that path.
>>>
>>> This issue was not there in appm1.0.0 which
>>> uses org.wso2.carbon.governance.api_4.2.1 ,which doesn't have this caching
>>> mechanism. So when try to get the   artifact path of role restricted
>>> artifact based on uuid, registry query written will return null and rest of
>>> the
>>> logic will return null for artifact..
>>>
>>> wso2appm-1.1.0-SNAPSHOT uses org.wso2.carbon.governance.api_4.5.1.
>>> Same issue is observed in APIM  wso2am-1.10.0-SNAPSHOT. where it
>>> uses org.wso2.carbon.governance.api_4.5.8.
>>>
>>>
>>>
>>> 1 .
>>> https://github.com/wso2/carbon-governance/blob/release-4.5.9/components/governance/org.wso2.carbon.governance.api/src/main/java/org/wso2/carbon/governance/api/util/GovernanceUtils.java
>>>
>>>
>>>
>>>
>>> [2015-10-09 11:55:42,502] ERROR - GovernanceUtils Error in retrieving
>>> governance artifact by path. path:
>>> /appmgt/applicationdata/provider/admin/myapp/1/webapp.
>>> org.wso2.carbon.registry.core.secure.AuthorizationFailedEx

Re: [Dev] [APPM/APIM] AuthorizationFailedException when getting tags where webapp/api visibility is restricted by role

2015-10-09 Thread Sameera Kannangara
There is no permission model for tags. Permission model is only associated
with the registry resources which may have tags.

I think Jena is referring [1] their own tag specific implementation,
because tag specific permissions are not supported by registry.

[1] "Create a web app with tags and restrict its visibility by role"


On Fri, Oct 9, 2015 at 3:05 PM, Nuwan Dias <nuw...@wso2.com> wrote:

>
>
> On Fri, Oct 9, 2015 at 2:34 PM, Sameera Kannangara <samee...@wso2.com>
> wrote:
>
>> Hi Nuwan,
>>
>> According to my knowledge tags do not have a permissions attached.
>> But resources that are tagged with those tags have permissions.
>> Even if a user can get all the tags, user will be able to read only the
>> permitted resources even though they are tagged.
>>
>> As the reported exception related to retrieving a resource path
>> (/_system/governance/appmgt/applicationdata/provider/admin/myapp/1/webapp)
>> by an unauthorized user (anonymous),
>> Resource retrieving process here should check permission before
>> retrieving the resource.
>>
>
> Are you expecting the client code (APIM, APPM and all others) to check
> permissions before retrieving an artifact?
>
>>
>> Caused by:
>> org.wso2.carbon.registry.core.secure.AuthorizationFailedException: User
>> wso2.anonymous.user is not authorized to read the resource
>> /_system/governance/appmgt/applicationdata/provider/admin/myapp/1/webapp.
>>
>> Thank you,
>> SameeraK.
>>
>>
>>
>> On Fri, Oct 9, 2015 at 2:07 PM, Nuwan Dias <nuw...@wso2.com> wrote:
>>
>>> You means tags have permissions? Since tags are attached to artifacts,
>>> shouldn't it inherit the permissions of the artifact instead of having its
>>> own?
>>>
>>> On Fri, Oct 9, 2015 at 1:34 PM, Sameera Kannangara <samee...@wso2.com>
>>> wrote:
>>>
>>>> Hi Jena,
>>>>
>>>> I assume that anon user does not have access to these tags.
>>>> If so why does process try to retrieve tags which are not allowed to be
>>>> read by anon user?
>>>> Above exception is expected when a user tries to perform a restricted
>>>> operation.
>>>>
>>>> Problem seems to be trying to access a restricted resource using anon
>>>> user.
>>>> If that back end error occurs as soon as you log out, then may be the
>>>> log out operation redirects user (who is anon since he just logged out) to
>>>> a page containing a restricted operation.
>>>> If this is the situation, solution would be to redirect user to a
>>>> common page like landing page when logged out, or add a permission check
>>>> before performing the restricted operation (in here the read operation).
>>>>
>>>> Thank you,
>>>> SameeraK.
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, Oct 9, 2015 at 1:17 PM, Jenananthan Yogendran <
>>>> jenanant...@wso2.com> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I am getting following exception when try to view the web app as
>>>>> anonymous user in app manger(1.1.0 snapshot) store
>>>>>
>>>>> Steps to reproduce
>>>>> 1 . Create a web app with tags and restrict its visibility by role
>>>>> 2.  log in to store with user who has correct role and list the
>>>>> webapps (tags are retrieved without any problem)
>>>>> 3.  log out and view the web apps as anonymous user -> exception
>>>>> thrown in the backend
>>>>>
>>>>>
>>>>> In the tag retrieving process,
>>>>>
>>>>> 1. get all the tags
>>>>> 2. get resource(uuid) by tag
>>>>> 3. get webapp artifact related to uuid -> this will return null if
>>>>> user is not authorized to access that artifact. based on that only tags
>>>>> associated to visible webapps will be filtered.
>>>>>
>>>>>
>>>>> caching the artifact path in getArtifactPath(Registry registry, String
>>>>> artifactId) [1] method seems to cause this issue,
>>>>>
>>>>> 1. When authorized user access the store, path of artifact which is
>>>>> restricted by role will be cached in the tag retrieving process.
>>>>> 2. So when anonymous user try to view the store, in the tag retrieving
>>>>> process artifact path of role restricted artifa

Re: [Dev] [APPM/APIM] AuthorizationFailedException when getting tags where webapp/api visibility is restricted by role

2015-10-09 Thread Sameera Kannangara
ke(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)
> Caused by:
> org.wso2.carbon.registry.core.secure.AuthorizationFailedException: User
> wso2.anonymous.user is not authorized to read the resource
> /_system/governance/appmgt/applicationdata/provider/admin/myapp/1/webapp.
> at
> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.get(CacheBackedRegistry.java:164)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.getInternal(UserRegistry.java:613)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.access$400(UserRegistry.java:60)
> at
> org.wso2.carbon.registry.core.session.UserRegistry$5.run(UserRegistry.java:596)
> at
> org.wso2.carbon.registry.core.session.UserRegistry$5.run(UserRegistry.java:593)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:593)
> at
> org.wso2.carbon.governance.api.util.GovernanceUtils.retrieveGovernanceArtifactByPath(GovernanceUtils.java:938)
> ... 141 more
>
> --
> Jenananthan Yogendran
> *Software Engineer,*
> *WSO2 inc., http://wso2.com <http://wso2.com>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APPM/APIM] AuthorizationFailedException when getting tags where webapp/api visibility is restricted by role

2015-10-09 Thread Sameera Kannangara
Hi Nuwan,

We were able to reproduce this issue.
Problem seems to be there is no enforce of user permissions when retrieving
from UUID cache.
We are looking in to this.

Thank you,
SameeraK.


On Fri, Oct 9, 2015 at 10:28 PM, Nuwan Dias <nuw...@wso2.com> wrote:

> Hi Sameera,
>
> This is a very simple scenario. Something that was working fine all this
> time is now breaking. No client side code changes have happened. You can
> get an API Manager 1.9.1 and try this scenario and then compare the same
> behaviour with a 1.10.0-SNAPSHOT build. Here are the steps to try.
>
> 1. Create a role (manager-role) and assign that role to a user (manager).
> 2. Login to the Publisher using admin credentials and create an API with
> restricted visibility to the manager-role. Add a tag for this API as well.
> 3. Login to the API Store by the manager user. You will see this API.
> 4. Logout and access the Store as the anonymous user. You will see no
> error on 1.9.1 and you will see the error on 1.10.0.
>
> To me it looks like a bug has been introduced by the underlying governance
> code since no code changes have happened on the client side and this error
> is clearly visible on both API Manager and APP Manager products.
>
> Thanks,
> NuwanD.
>
> On Fri, Oct 9, 2015 at 10:00 PM, Sameera Kannangara <samee...@wso2.com>
> wrote:
>
>> Hi Jena,
>>
>> There seems to be a misunderstanding here.
>> Please confirm you are executing retrieveGovernanceArtifactById method
>> with a UserRegistry instance as the registry parameter.
>> Or is registry parameter here is a CacheBackedRegistry instance?
>>
>> Because UserRegistry is the registry implementation which enforces
>> permissions on registry calls.
>> After validating permissions for the registry call, user registry
>> internally calls cached backed registry.
>>
>> If you call cached back registry directly it will return data from cache
>> without validating permissions.
>> That could happen if registry parameter is some how a cache backed
>> registry.
>>
>> I tried out the scenario where a user who has not logged in to the carbon
>> context trying to retrieve a governance artifact
>> using retrieveGovernanceArtifactById, and method returns null for a
>> available UUID as user is not logged in.
>> When I checked user name and tenent ID of the not logged in user both
>> values turned out to be null.
>>
>> If you are passing a UserRegistry instance as the registry parameter
>> of retrieveGovernanceArtifactById,
>> Please provide user name and tenent ID of the carbon context when the
>> user is not logged in.
>>
>> Thank you,
>> SameeraK.
>>
>>
>> On Fri, Oct 9, 2015 at 3:36 PM, Jenananthan Yogendran <
>> jenanant...@wso2.com> wrote:
>>
>>> Hi Sameera,
>>>
>>> This is what I observed when debugged the code,
>>>
>>> method getArtifactPath is getting called in the method
>>> retrieveGovernanceArtifactById[1]. Before caching is introduced query[2] in
>>> getArtifactPath returned null if unauthorized user try to get the
>>> atrifactpath. if path is null, then method retrieveGovernanceArtifactById
>>> will returned null for GovernanceArtifact. So if unauthorized user try to
>>> get atrifact from uuid ,null was returned. But now getArtifactPath returns
>>> artifact path to unauthorized user from cache(which has the entry since
>>> authorized user accessed the app list before this step) and
>>> registry.get(artifactPath) in retrieveGovernanceArtifactByPath throws
>>> exception.
>>>
>>> can't we modify the caching key (uuid) by appending the username. This
>>> will ensure unauhorized user will not get path from cache.(I am not sure
>>> whether this will impact any other functionality)
>>>
>>> UserRegistry userRegistry = (UserRegistry) registry;
>>> String userName = userRegistry.getUserName();
>>> String key = artifactId + "-" + userNam
>>>
>>>
>>> [1]
>>> public static GovernanceArtifact retrieveGovernanceArtifactById(Registry
>>> registry,
>>>
>>> String artifactId)
>>> throws GovernanceException {
>>> String artifactPath = getArtifactPath(registry, artifactId);
>>> if (artifactPath == null) {
>>> String msg = "Governance artifact is not found for id: " +
>>> artifactId + ".";
>>> if (log.isDebugEnabled()) {
>>> log.debug(msg);
>>> }
>>> 

Re: [Dev] [APPM/APIM] AuthorizationFailedException when getting tags where webapp/api visibility is restricted by role

2015-10-09 Thread Sameera Kannangara
Hi Jena,

There seems to be a misunderstanding here.
Please confirm you are executing retrieveGovernanceArtifactById method with
a UserRegistry instance as the registry parameter.
Or is registry parameter here is a CacheBackedRegistry instance?

Because UserRegistry is the registry implementation which enforces
permissions on registry calls.
After validating permissions for the registry call, user registry
internally calls cached backed registry.

If you call cached back registry directly it will return data from cache
without validating permissions.
That could happen if registry parameter is some how a cache backed registry.

I tried out the scenario where a user who has not logged in to the carbon
context trying to retrieve a governance artifact
using retrieveGovernanceArtifactById, and method returns null for a
available UUID as user is not logged in.
When I checked user name and tenent ID of the not logged in user both
values turned out to be null.

If you are passing a UserRegistry instance as the registry parameter
of retrieveGovernanceArtifactById,
Please provide user name and tenent ID of the carbon context when the user
is not logged in.

Thank you,
SameeraK.


On Fri, Oct 9, 2015 at 3:36 PM, Jenananthan Yogendran <jenanant...@wso2.com>
wrote:

> Hi Sameera,
>
> This is what I observed when debugged the code,
>
> method getArtifactPath is getting called in the method
> retrieveGovernanceArtifactById[1]. Before caching is introduced query[2] in
> getArtifactPath returned null if unauthorized user try to get the
> atrifactpath. if path is null, then method retrieveGovernanceArtifactById
> will returned null for GovernanceArtifact. So if unauthorized user try to
> get atrifact from uuid ,null was returned. But now getArtifactPath returns
> artifact path to unauthorized user from cache(which has the entry since
> authorized user accessed the app list before this step) and
> registry.get(artifactPath) in retrieveGovernanceArtifactByPath throws
> exception.
>
> can't we modify the caching key (uuid) by appending the username. This
> will ensure unauhorized user will not get path from cache.(I am not sure
> whether this will impact any other functionality)
>
> UserRegistry userRegistry = (UserRegistry) registry;
> String userName = userRegistry.getUserName();
> String key = artifactId + "-" + userNam
>
>
> [1]
> public static GovernanceArtifact retrieveGovernanceArtifactById(Registry
> registry,
> String
> artifactId)
> throws GovernanceException {
> String artifactPath = getArtifactPath(registry, artifactId);
> if (artifactPath == null) {
> String msg = "Governance artifact is not found for id: " +
> artifactId + ".";
> if (log.isDebugEnabled()) {
> log.debug(msg);
> }
> return null;
> }
> return retrieveGovernanceArtifactByPath(registry, artifactPath);
> }
>
>
> [2]
> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/governance/org.wso2.carbon.governance.api/4.2.1/src/main/java/org/wso2/carbon/governance/api/util/GovernanceUtils.java
>
> String sql = "SELECT REG_PATH_ID, REG_NAME FROM REG_RESOURCE WHERE
> REG_UUID = ?";
>
> String[] result;
> Map<String, String> parameter = new HashMap<String, String>();
> parameter.put("1", artifactId);
> parameter.put("query", sql);
> result = registry.executeQuery(null, parameter).getChildren();
>
> if (result != null && result.length == 1) {
> cache.put(artifactId, result[0]);
> return result[0];
> }
> return null;
>
>
>
>
> On Fri, Oct 9, 2015 at 3:20 PM, Jenananthan Yogendran <
> jenanant...@wso2.com> wrote:
>
>> Hi Sameera,
>>
>> What I meant is , when creating a  web app/api , add tags to it and
>>  restrict the webapp's/api's visibilty by role .
>>
>> On Fri, Oct 9, 2015 at 3:17 PM, Sameera Kannangara <samee...@wso2.com>
>> wrote:
>>
>>> There is no permission model for tags. Permission model is only
>>> associated with the registry resources which may have tags.
>>>
>>> I think Jena is referring [1] their own tag specific implementation,
>>> because tag specific permissions are not supported by registry.
>>>
>>> [1] "Create a web app with tags and restrict its visibility by role"
>>>
>>>
>>> On Fri, Oct 9, 2015 at 3:05 PM, Nuwan Dias <nuw...@wso2.com> wrote:
>>>
>>>>
>>>>
>>>> On Fri, Oct 9, 2015 at 2:34 PM, Sameera Kan

[Dev] WSO2 Governance Registry 5.0.1 Released !!

2015-10-06 Thread Sameera Kannangara
re
   2.0 <http://wso2.com/products/enterprise-store/> and WSO2 API Manager
   <http://wso2.com/api-management/try-it/>
   - Create and manage registry resources, APIs and Swagger instances with
   the newly introduced Governance Centre UI
   - Installation provision for API-M, enabling API publisher and store
   functionalities, including API creation, publishing, subscription, token
   generation and regeneration within WSO2 Governance Registry
   - Graphical differentiation view to compare two inter-related assets
   - New asset association UIs and extension point to perform add/remove
   associations based activities
   - Improved extension points to write tasks based on registry API and
   governance API

Lifecycle Management

   - Customizable lifecycle management with built-in best practices
   - Content introspection, validation and verification
   - Human interactions, notifications and checklists
   - Extensible with SCXML, WS-BPEL and Java
   - Monitor time duration of artifacts in specific lifecycle states
   - Ability to set specific lifecycle state checkpoints
   - Manage associations between assets as well as asset lifecycles
   - Set up notifications for subscribed assets at asset lifecycle state
   changes and for updates to assets

Design-time Governance

   - Discovery and managed reuse of schemas and other shared metadata
   supporting contract-first service design
   - Lifecycle management and approval for metadata
   - IDE integration with WSO2 Developer Studio
   <http://wso2.com/products/developer-studio/>, Eclipse plugin, Microsoft
   Visual Studio and WebDAV
   - Standards enforcement including all WS-I profiles
   - Built-in best practices for common metadata types

Run-Time Governance

   - Acts as Policy Store for any type of runtime policies including
   security policies, API policies, service contracts, SLAs and XACML
   authorization policies
   - Integrates with WSO2 Business Activity Monitor
   <http://wso2.com/products/business-activity-monitor/> to provide
   analytics, monitoring and business intelligence including custom KPIs
   - Service performance metrics management

Change Management

   - Role based separation of actions
   - Approval processes
   - Ability schedule tasks for future execution

Social Collaboration for Enterprise Governance

   - Empower the social enterprise
   - Human interaction with governance via tasks
   - Comments, ratings and tags on any type of resource or artifact

Lightweight, Developer Friendly and Easy to Deploy

   - Server customization via feature provisioning of any WSO2 middleware
   capability
   - Deployable standalone or as federated set of servers
   - Choice of deployment to on-premise servers, private cloud, or managed
   cloud <http://wso2.com/cloud/managed/>, without configuration changes
   - Integrated with SVN, Maven, Ant and other standard tools for
   development & deployment
   - Integrated to WSO2 Developer Studio
   <http://wso2.com/products/developer-studio/>, Eclipse-based IDE for all
   WSO2 products

Manage & Monitor

   - Comprehensive management & monitoring Web console with
   enterprise-level security
   - Built-in collection and monitoring of standard access and performance
   statistics
   - JMX MBeans for key metrics monitoring and management
   - Integrates with WSO2 Business Activity Monitor
   <http://wso2.com/products/business-activity-monitor/> for operational
   audit and KPI monitoring and management
   - Flexible logging support with integration to enterprise logging systems
   - Centralized configuration management across different environments
   with lifecycles and versioning


*Known Issues*

All the open issues pertaining to WSO2 Governance Registry are reported at
the following location:

   - Known Issues <https://wso2.org/jira/issues/?filter=12423>

How You Can ContributeMailing Lists

Join our mailing list and correspond with the developers directly.

   - Developer List : dev@wso2.org | Subscribe
   <dev-requ...@wso2.org?subject=subscribe> | Mail Archive
   <http://wso2.org/mailarchive/dev/>

Reporting Issues

We encourage you to report issues, documentation faults and feature
requests regarding WSO2 Governance Registry through the public JIRA
<https://wso2.org/jira/browse/REGISTRY>. You can use the Carbon JIRA
<http://www.wso2.org/jira/browse/CARBON> to report any issues related to
the Carbon base framework or associated Carbon components.
Support

We are committed to ensuring that your enterprise middleware deployment is
completely supported from evaluation to production. Our unique approach
ensures that all support leverages our open development methodology and is
provided by the very same engineers who build the technology.

For more details and to take advantage of this unique opportunity please
visit http://wso2.com/support.

To learn more about WSO2 Governance Registry and WSO2 support offerings

Re: [Dev] [DEV][GREG] Unable to import registry resources from a dump file

2015-10-06 Thread Sameera Kannangara
Hi Nuwan,

What is the WSO2 server type you are using? and what is the version?

In any case none of the users have ability to check-in to the root
directory.
Therefore you'll have to take the checkout from a collection that is closer
to the resource location you are trying to move.

Ex - sh checkin-client.sh co
https://localhost:9443/registry/_system/governance/trunk/A -u admin -p
admin -f A.dump

What is the use case here,
Are you trying to move an entire repo of a server, into another server?
Or trying to move a part of the repo?

Thank you,
SameeraK.



On Tue, Oct 6, 2015 at 3:23 PM, Nuwan Pallewela <nuw...@wso2.com> wrote:

> Hi,
>
> After i tried to checkout the dump file , following error is show in
> command line when i try to browse registry.
>
> [2015-10-06 15:20:27,354]  WARN
> {org.wso2.carbon.registry.core.caching.CacheBackedRegistry} -  User admin
> is not authorized to read the resource /.
>
> Thanks,
> Nuwan
>
> On Tue, Oct 6, 2015 at 3:16 PM, Nuwan Pallewela <nuw...@wso2.com> wrote:
>
>> Hi Devs,
>>
>> I'm trying to test importing registry files using a dump file. I have
>> created a dump file using following command [1].
>> [1] sh checkin-client.sh co https://localhost:9443/registry/ -u admin -p
>> admin -f 10-06-2015_test2.dump
>>
>> Dump file is successfully created in the bin folder.
>>
>> Then when I try to import it to another Greg server using [2] command, it
>> gives following error[3].
>> [2] sh checkin-client.sh ci https://localhost:9445/registry/ -u admin -p
>> admin -f 10-06-2015_test2.dump
>> [3]
>> Error in restoring the path. Make sure the registry is up and running Or
>> the username, password is correct! and check the user have the WRITE
>> permission to the path.
>> path: /
>> registry url: https://localhost:9443/registry
>> username: admin
>>
>> What would be causing this?
>>
>> Thanks,
>> Nuwan
>>
>> --
>> --
>>
>> *Nuwan Chamara Pallewela*
>>
>>
>> *Software Engineer*
>>
>> *WSO2, Inc. *http://wso2.com
>> *lean . enterprise . middleware*
>>
>> Email   *nuw...@wso2.com <nuw...@wso2.com>*
>> Mobile  *+94719079739 <%2B94719079739>*
>>
>>
>>
>
>
> --
> --
>
> *Nuwan Chamara Pallewela*
>
>
> *Software Engineer*
>
> *WSO2, Inc. *http://wso2.com
> *lean . enterprise . middleware*
>
> Email   *nuw...@wso2.com <nuw...@wso2.com>*
> Mobile  *+94719079739 <%2B94719079739>*
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Governance Registry 5.0.1 RC 2

2015-10-05 Thread Sameera Kannangara
Hi Devs,

Thanks for testing and verifying the WSO2 Governance Registry 5.0.1 RC2. We
are closing this vote now.

Thank you and Regards,
G-Reg Team


On Mon, Oct 5, 2015 at 7:11 PM, Danesh Kuruppu <dan...@wso2.com> wrote:

> Hi all,
>
> I tested the registry indexing and registry mounting with following:
>
>- with embedded solr for standalone and cluster setup
>- with external solr for standalone and cluster setup
>- disable indexing and tested with both external and embedded solr.
>- mounted database.
>
> Stable pack for release
>
> [+] stable
>
> On Mon, Oct 5, 2015 at 7:09 PM, Rajith Roshan <raji...@wso2.com> wrote:
>
>> Hi all,
>>
>> I tested following scenarios
>>
>>- RXT hot deployment
>>- Add artifacts (wsdl, wadl, restservice, soapservice and etc)
>>- Batch upload of the artifacts.
>>- Dependency graph
>>- Jira's which are fixed.
>>
>>
>> Stable pack for release
>>
>> [+] stable
>>
>>
>> Thanks!
>> Rajith
>>
>> On Mon, Oct 5, 2015 at 6:30 PM, Chandana Napagoda <chand...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> Tested some of the ES publisher and store specific JIRAs fixed for this
>>> release.
>>>
>>> Stable pack for release
>>>
>>> [+] stable
>>>
>>> Regards,
>>> Chandana
>>>
>>> On Sat, Oct 3, 2015 at 10:10 AM, Sameera Kannangara <samee...@wso2.com>
>>> wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> WSO2 Governance Registry 5.0.1 RC2 Release Vote.
>>>>
>>>> This release fixes the following issues:
>>>> https://wso2.org/jira/issues/?filter=12422
>>>>
>>>> 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/G-Reg/5.0.1/
>>>>
>>>> Maven staging repo:
>>>> http://maven.wso2.org/nexus/content/repositories/orgwso2greg-006/
>>>>
>>>> The tag to be voted upon:
>>>> https://github.com/wso2/product-greg/releases/tag/v5.0.1-RC2
>>>>
>>>>
>>>> [+] Stable - go ahead and release
>>>> [-]  Broken - do not release (explain why)
>>>>
>>>> Thanks and Regards
>>>> G-Reg team
>>>>
>>>> --
>>>> *Sameera Kannangara*
>>>> Software Engineer
>>>> Platform TG; WSO2 Inc. http://wso2.com
>>>> Contact:
>>>> phone: +94719541577
>>>> Lean . Enterprise . Middleware
>>>>
>>>> ___
>>>> 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 <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
>>>
>>>
>>
>>
>> --
>> Rajith Roshan
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Danesh Kuruppu
> Software Engineer
> WSO2 Inc,
> Mobile: +94 (77) 1690552
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Governance Registry 5.0.1 RC 2

2015-10-02 Thread Sameera Kannangara
Hi Devs,

WSO2 Governance Registry 5.0.1 RC2 Release Vote.

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

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/G-Reg/5.0.1/

Maven staging repo:
http://maven.wso2.org/nexus/content/repositories/orgwso2greg-006/

The tag to be voted upon:
https://github.com/wso2/product-greg/releases/tag/v5.0.1-RC2


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

Thanks and Regards
G-Reg team

-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Governance Registry 5.0.0 RC3

2015-09-07 Thread Sameera Kannangara
Hi all,

I tested the following,

   - Dependency graph creation.
   - Artifact filtering
  - Depth restricting
   - Clustering
   - DIstributed notifications
   - Permission application for a user to access a specific RXT type.

Stable pack to release,

[+] stable

Regards,
SameeraK.


On Mon, Sep 7, 2015 at 2:01 PM, Shazni Nazeer <sha...@wso2.com> wrote:

> Hi all,
>
> I tested the following,
>
>- Attaching multiple life-cycle
>- Deleting life-cycle
>- Basic searching in publisher and management console
>- Deleting artifacts in the publisher
>- Editing artifacts in the publisher
>- sso and basic login in publisher and store
>- Added a new rxt and checked by writing a custom extension in
>publisher
>- Created a new role and user and checked login and relevant
>permissions in the console and publisher
>
> Stable pack for release
>
> [+] stable
>
>
> Shazni Nazeer
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
> On Mon, Sep 7, 2015 at 8:57 AM, Prasanna Dangalla <prasa...@wso2.com>
> wrote:
>
>> Hi
>>
>> I tested,
>>
>>- Tags in publisher end
>>- Notes in publisher end
>>- Soap service creation in publisher end
>>- WSDL upload from URL and through a file in publisher end
>>- Diff view in publisher end
>>- Dependency graph in publisher end
>>- Asset listing in publisher, store end
>>- Asset rating in store end
>>- Lifecycle promote demote in publisher end
>>- Lifecycle addition from management console
>>- RXT addition from management console
>>
>>
>> Stable pack for release
>>
>> [+] stable
>>
>>
>>
>> On Fri, Sep 4, 2015 at 4:58 PM, Chandana Napagoda <chand...@wso2.com>
>> wrote:
>>
>>> Hi Devs,
>>>
>>> *This is the RC3 release candidate of WSO2 Governance Registry 5.0.0 *
>>>
>>> This release fixes the following issues:
>>>
>>> https://wso2.org/jira/browse/REGISTRY-2927?filter=12388
>>>
>>> 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/orgwso2greg-042/org/wso2/greg/wso2greg/5.0.0/
>>>
>>> *Maven staging repo:*
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2greg-042/
>>>
>>> *The tag to be voted upon:*
>>> https://github.com/wso2/product-greg/releases/tag/v5.0.0-rc3
>>>
>>>
>>> [+] Stable - go ahead and release
>>> [-]  Broken - do not release (explain why)
>>>
>>> Thanks and Regards
>>> G-Reg team
>>>
>>> --
>>> *Chandana Napagoda*
>>> Senior Software Engineer
>>> WSO2 Inc. - http://wso2.org
>>>
>>> *Email  :  chand...@wso2.com <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
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] G-Reg 5.0.0 nightly build pack - 03/08/2015

2015-08-03 Thread Sameera Kannangara
Hi all,

Please find $Subject at [1].
This pack contains updated solr version from 5.0.0 to 5.2.1.
This Change affects following functions,

   - Advanced search via management console, store and publisher
   - Artifact listing in management console, store and publisher
   - Artifact filtering in management console, store and publisher

Thank you,
SameeraK.

[1]
https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.0.0/nightlybuild/20150803/

-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Please merge the PR for Apache Solr 5.2.1 upgrade

2015-07-30 Thread Sameera Kannangara
Hi all,

G-Reg 5.0.0 now builds successfully with Solr 5.2.1 update.
Thank you for you support.

Regards,
SameeraK.



On Thu, Jul 30, 2015 at 2:29 PM, Maheshika Goonetilleke mahesh...@wso2.com
wrote:

 Hi Kasun

 Successfully deployed.


 On Thu, Jul 30, 2015 at 2:15 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi,

 Merged the PR. @Maheshika, please release the above two orbit bundles.

 On Thu, Jul 30, 2015 at 1:58 PM, Sameera Kannangara samee...@wso2.com
 wrote:

 Hi Carbon team,

 Please review and merge Orbit PR 113 [1].
 This PR contains updated versions of Solr (from 5.0.0 to 5.2.1) and
 restlet (2.2.1 to 2.3.0)

 These changes are necessary to fie the advanced search feature of DAS
 product.

 Thank you,
 SameeraK.

 [1] https://github.com/wso2/orbit/pull/113

 --
 *Sameera Kannangara*
 Software Engineer
 Platform TG; WSO2 Inc. http://wso2.com
 Contact:
 phone: +94719541577
 Lean . Enterprise . Middleware




 --

 *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






 --

 Thanks  Best Regards,

 Maheshika Goonetilleke
 Engineering Process Coordinator

 *WSO2 Inc*
 *email   : mahesh...@wso2.com mahesh...@wso2.com*
 *mobile : +94 773 596707 %2B94%20773%20596707*
 *www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware







-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Orbit] Please merge the PR for Apache Solr 5.2.1 upgrade

2015-07-30 Thread Sameera Kannangara
Hi Carbon team,

Please review and merge Orbit PR 113 [1].
This PR contains updated versions of Solr (from 5.0.0 to 5.2.1) and restlet
(2.2.1 to 2.3.0)

These changes are necessary to fie the advanced search feature of DAS
product.

Thank you,
SameeraK.

[1] https://github.com/wso2/orbit/pull/113

-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Building BAM with registry.indexing version 4.4.5-SNAPSHOT

2015-07-29 Thread Sameera Kannangara
Hi all,

G-Reg 5.0.0 is tested with Solr 5.2.1 integration both in embedded mode and
external mode.

Gihan was able to check the DAS pack I created yesterday and verified that
Registry indexing version used in DAS is 4.4.0 which uses Solr 5.0.0.wso2v1
We will check why registry indexing 4.4.5.SNAPSHOT (Which uses Solr
5.2.1.wso2v1) is not bundled in to DAS pack.

Thank you,
SameeraK.


On Wed, Jul 29, 2015 at 10:27 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Gihan,

 Did you attend to this? .. Please either you or Gimantha get the
 verification done ASAP.

 Cheers,
 Anjana.

 On Wed, Jul 29, 2015 at 6:09 PM, Sagara Gunathunga sag...@wso2.com
 wrote:

 Hi Anjana,

 As we discussed yesterday can we get some helps from DAS team to validate
 Lucene upgrade from DAS side ? We are more or less completed Lucene upgrade
 from G-Reg side and ATM continue on testing.

 Thanks !

 On Wed, Jul 29, 2015 at 6:01 PM, Sameera Kannangara samee...@wso2.com
 wrote:

 Hi BAM team,

 I'm trying to build $Subject.
 I cloned and updated the product-bam git repo [1] and updated root
 pom.xml

 -carbon.registry.version4.4.2/carbon.registry.version
 +
  carbon.registry.version4.4.5-SNAPSHOT/carbon.registry.version

 But still org.wso2.carbon.registry.indexing_4.4.0.jar is packed in to
 the product.

 Are there any other repositories that creates compoents for product-bam
 build that utilizes registry indexing?
 If so please provide these repo locations?

 Thank you,
 SameeraK.

 [1] https://github.com/wso2/product-bam

 --
 *Sameera Kannangara*
 Software Engineer
 Platform TG; WSO2 Inc. http://wso2.com
 Contact:
 phone: +94719541577
 Lean . Enterprise . Middleware




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




 --
 *Anjana Fernando*
 Senior Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Building BAM with registry.indexing version 4.4.5-SNAPSHOT

2015-07-29 Thread Sameera Kannangara
Hi Sagara,

It was discovered that content of the Swagger files added to the registry
are not indexed.
But that's not actually a issue related to Solr 5.2.1 integration.
It seems the problem is swagger content is not sent to the indexing
properly.
I checked with G-Reg 5.0.0 alpha pack and with that also we cannot perform
a content search for swaggers.
I have created G-Reg 5.0.0 jira entry at [1] to track this issue.

Other than this problem we are all good with Solr 5.2.1 integration.

Thank you,
SameeraK.

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


On Thu, Jul 30, 2015 at 10:25 AM, Sagara Gunathunga sag...@wso2.com wrote:



 On Thu, Jul 30, 2015 at 10:12 AM, Sameera Kannangara samee...@wso2.com
 wrote:

 Hi all,

 G-Reg 5.0.0 is tested with Solr 5.2.1 integration both in embedded mode
 and external mode.

 Are we good or any issue ?

 Thanks !



 Gihan was able to check the DAS pack I created yesterday and verified
 that Registry indexing version used in DAS is 4.4.0 which uses Solr
 5.0.0.wso2v1
 We will check why registry indexing 4.4.5.SNAPSHOT (Which uses Solr
 5.2.1.wso2v1) is not bundled in to DAS pack.

 Thank you,
 SameeraK.


 On Wed, Jul 29, 2015 at 10:27 PM, Anjana Fernando anj...@wso2.com
 wrote:

 Hi Gihan,

 Did you attend to this? .. Please either you or Gimantha get the
 verification done ASAP.

 Cheers,
 Anjana.

 On Wed, Jul 29, 2015 at 6:09 PM, Sagara Gunathunga sag...@wso2.com
 wrote:

 Hi Anjana,

 As we discussed yesterday can we get some helps from DAS team to
 validate Lucene upgrade from DAS side ? We are more or less completed
 Lucene upgrade from G-Reg side and ATM continue on testing.

 Thanks !

 On Wed, Jul 29, 2015 at 6:01 PM, Sameera Kannangara samee...@wso2.com
 wrote:

 Hi BAM team,

 I'm trying to build $Subject.
 I cloned and updated the product-bam git repo [1] and updated root
 pom.xml

 -carbon.registry.version4.4.2/carbon.registry.version
 +
  carbon.registry.version4.4.5-SNAPSHOT/carbon.registry.version

 But still org.wso2.carbon.registry.indexing_4.4.0.jar is packed in to
 the product.

 Are there any other repositories that creates compoents for
 product-bam build that utilizes registry indexing?
 If so please provide these repo locations?

 Thank you,
 SameeraK.

 [1] https://github.com/wso2/product-bam

 --
 *Sameera Kannangara*
 Software Engineer
 Platform TG; WSO2 Inc. http://wso2.com
 Contact:
 phone: +94719541577
 Lean . Enterprise . Middleware




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




 --
 *Anjana Fernando*
 Senior Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




 --
 *Sameera Kannangara*
 Software Engineer
 Platform TG; WSO2 Inc. http://wso2.com
 Contact:
 phone: +94719541577
 Lean . Enterprise . Middleware




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




-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] G-Reg 5.0.0 nightly build pack - 22/07/2015

2015-07-28 Thread Sameera Kannangara
Correction:
Hi all,

Please find 2015-07-29 nightly built pack at [1].
Please use this pack for QA work.

Thank you,
SameeraK.

[1]
https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.0.0/nightlybuild/20150728/


On Wed, Jul 29, 2015 at 10:33 AM, Sameera Kannangara samee...@wso2.com
wrote:

 Hi all,

 Please find 2015-07-29 at [1].

 Thank you,
 SameeraK.

 [1]
 https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.0.0/nightlybuild/20150728/

 On Wed, Jul 22, 2015 at 9:14 PM, Chandana Napagoda chand...@wso2.com
 wrote:

 Hi,

 Please find $subject from[1].

 [1].
 https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.0.0/nightlybuild/20150722/

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

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

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




 --
 *Sameera Kannangara*
 Software Engineer
 Platform TG; WSO2 Inc. http://wso2.com
 Contact:
 phone: +94719541577
 Lean . Enterprise . Middleware




-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] G-Reg 5.0.0 nightly build pack - 22/07/2015

2015-07-28 Thread Sameera Kannangara
Hi all,

Please find 2015-07-29 at [1].

Thank you,
SameeraK.

[1]
https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.0.0/nightlybuild/20150728/

On Wed, Jul 22, 2015 at 9:14 PM, Chandana Napagoda chand...@wso2.com
wrote:

 Hi,

 Please find $subject from[1].

 [1].
 https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.0.0/nightlybuild/20150722/

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

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

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




-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [G-Reg]Check-in client has an issue of conflicts detection

2015-02-18 Thread Sameera Kannangara
Hi Chaturanga,

On Wed, Feb 18, 2015 at 5:10 AM, Chathuranga Rajapaksha 
chathuran...@wso2.com wrote:

 Hi Sameera,

 I tried check-in client in many ways but it didn't catch any conflicts of
 files in local and remote repositories. I upload a file to remote
 repository and create the same file in local repository so that content of
 two file is different. when I update the local repository it just updated
 and didn't show any conflicts. Is this an issue?


In order to trigger a conflict, the file you are trying to update after
doing some local changes should be a checked out file from remote registry.
Therefore, what you are experiencing is the expected behavior.


 Can you tell me a use case to catch a conflict


In order to experience a conflict situation, follow below steps.

1. Create new collection and a reosurce in it via G-Reg management console.

   Ex-

   /_system/governance
  |
  |_test_collection
|
|_test.txt

2. Take a checkout of the newly created collection to file system (not to a
dump file).

   Ex -

   sh checkin-client.sh co
https://localhost:9443/registry/_system/governance/test_collection -u admin
-p admin --location ./test_collection/

3. Open test.txt with a text editor in local file system and change its
content.

4. Change the content of the test.txt in the registry via the management
console.

5. Navigate to checked out collection using terminal and take an update
using check-in client.

   Ex -

   sh ../checkin-client.sh up -u admin -p admin

6. You will get following terminal output indicating the conflict in local
file system.

   C ./test.txt
   No files were added.
   No files were updated
   1 file(s) found to be conflicting. (Marked as 'C')
   No files were deleted
   Operation invoked Successfully

And test.txt.mine and test.txt.server will be created containing local
content and registry content respectively.

Please note that conflict detection only occurs when updating a locally
changed resource via check-in client.
When you are checking in locally changed files over a changed files in the
registry they will be overwritten by local content.

Thank you,
SameeraK.




 Thanks

 --

 Best Regards,

 *Chathuranga Lakmal Rajapaksha*
 Software Engineering Intern, WSO2 Lanka (pvt) Ltd.


 *B. Sc. Eng. (Hons) Undergraduate*

 *Dept. of Computer Science and Engineering*
 *University of Moratuwa, Sri Lanka*
 Mobile:+94712894647




-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ IMPORTANT] G-Reg 5.0.0 Milestone plan

2015-01-09 Thread Sameera Kannangara
Hi Pulasthi,


 Regarding https://redmine.wso2.com/issues/468
 What is the status on this. What needs to be done to get it complete.
 And also please update the redmine with the progress


My self and Jerad are working on this.
Phase 1 (which is to be packed in M1) of the development will be completed
on 12-01-2015.

- Dependency graph UI.
- Locate resource functionality.
- Zoom in and out on dependency graph.
- Presenting detailed view of a resource.
- Highlighting resources connected to a desired resource.

Please note that developed feature is tested against a pack built after the
test hackathon on 15-11-2014.

redmine entry is updated.

Thank you,
SameeraK.


-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [G-Reg 5.0.0] Retrieving data related to governance artifacts

2015-01-06 Thread Sameera Kannangara
Hi Ajith,

Above artifacts treating as content artifacts.


Ok, point taken.

So proper way is , take the resource from the governance artifact then
 check the media type from that resource.


Problem is retrieved governance artifact does not contain a reference to
the related registry resource.
Therefore in order to get the media type of the related governance artifact
of given content artifact types,
I have to retrieve registry resource using registry.get(path),
and call resource.getMediaType() on retrieved registry resource.

This results in an additional registry call.
Isn't it, better to have media type parameter with the content artifacts,
like in other generic artifacts?

Thank you,
SameeraK.



 -Ajith

 On Thu, Jan 1, 2015 at 5:05 AM, Sameera Kannangara samee...@wso2.com
 wrote:

 Hi all,

 When retrieving governance artifacts of types,

 application/wsdl+xml
 application/x-xsd+xml
 application/policy+xml
 application/vnd.wso2.endpoint

 via governanceUtils.retrieveGovernanceArtifactByPath(),
 returned governance artifact does not contain the respective media type.

 All generic artifact types other than above four, contain their
 respective media types.

 Is this the expected behavior for artifacts of above four media types?

 Reason I'm asking this is, when retrieving governance artifacts for
 dependency graph generation of impact analysis feature,
 media type of the artifact is needed to determine the icon to be
 displayed for the artifact.

 Please note that respective media type is available for the registry
 resource relevant for the governance artifact.

 As we are retrieving governance artifacts to generate the dependency
 graph and
 graph generation process needs properties associated with the artifact to
 create the graph,
 process have to retrieve registry resource associated with the governance
 artifact to get necessary properties.

 Is there a better way to retrieve properties related to a governance
 artifact?

 Thank you,
 SameeraK

 --
 *Sameera Kannangara*
 Software Engineer
 Platform TG; WSO2 Inc. http://wso2.com
 Contact:
 phone: +94719541577
 Lean . Enterprise . Middleware

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




 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +1-812-360-5335




-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [G-Reg 5.0.0] Retrieving data related to governance artifacts

2015-01-01 Thread Sameera Kannangara
Hi all,

When retrieving governance artifacts of types,

application/wsdl+xml
application/x-xsd+xml
application/policy+xml
application/vnd.wso2.endpoint

via governanceUtils.retrieveGovernanceArtifactByPath(),
returned governance artifact does not contain the respective media type.

All generic artifact types other than above four, contain their respective
media types.

Is this the expected behavior for artifacts of above four media types?

Reason I'm asking this is, when retrieving governance artifacts for
dependency graph generation of impact analysis feature,
media type of the artifact is needed to determine the icon to be displayed
for the artifact.

Please note that respective media type is available for the registry
resource relevant for the governance artifact.

As we are retrieving governance artifacts to generate the dependency graph
and
graph generation process needs properties associated with the artifact to
create the graph,
process have to retrieve registry resource associated with the governance
artifact to get necessary properties.

Is there a better way to retrieve properties related to a governance
artifact?

Thank you,
SameeraK

-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Registry REST API for embedded registry

2014-11-17 Thread Sameera Kannangara
Hi Udara,

GREG, when started as a separate product(remote registry) exposes a REST
 API for registry operation.

Registry REST API wraps a UserRegistry instance to provide access to
registry operations.
There's another Registry interface implementation called RemoteRegistry
which can be used to access a remotely hosted G-Reg instance via ATOM.

 Is the same available for embedded registry of carbon products.

EmbeddedRegistry is used to maintain the atomicity of the registry
operations.
Can you please give more information about the scenario, where embedded
registry needs to be accessed through a REST API?

 AFAIU API is exposed via a web app, then is it possible to do $subject by
 deploying the web app in the carbon server?

G-Reg REST API is implemented as a web app, and it is exposed via an API
manager capabilities embedded in the G-Reg product distribution. You can
find more information at [1].

Thank you,
SameeraK.

[1] https://docs.wso2.com/display/Governance460/Registry+REST+API
-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [G-Reg]Management console notification generation fails in automation tests

2014-11-04 Thread Sameera Kannangara
Hi all,

I have created automation test class [1], for the jira reported at [2].

This scenario is fixed and can be easily tested manually and verify the fix.
However when running this test scenario using automation test class at [1]
management console notifications are not generated.

Further more when try to test the same scenario on the server used for the
automation test, manual test previously verfied the fix fails as
notification are not shown in management console UI.

But if we take the G-Reg_HOME/repository/conf/registry.xml file of the
server used for the automation test, replace the same file of a fresh G-Reg
5.0.0-SNAPSHOT instance, management console notifications are generated
fine. Therefore fix can be verified.

Fix for the reported jira can be located at [3].

Thank you,
SameeraK.

[1]
https://github.com/sameerak/product-greg/blob/REGISTRY-2332_tests/modules/integration/tests-ui-integration/tests-ui/src/test/java/org/wso2/carbon/greg/ui/test/notification/TestRegistry2332.java
[2] https://wso2.org/jira/browse/REGISTRY-2332
[3] https://github.com/wso2-dev/carbon-governance/pull/22

-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [G-Reg] Adding subscription functionality in clustered environments

2014-10-28 Thread Sameera Kannangara
Hi Carbon Team,

Pull request [1] fixes the jiras reported at [2]  [3].
Can you please merge the pull request at [1] to test this functionality in
G-Reg 5.0.0 pack.

Thank you,
SameeraK.

[1] https://github.com/wso2-dev/carbon-utils/pull/19
[2] https://wso2.org/jira/browse/REGISTRY-2273
[3] https://wso2.org/jira/browse/REGISTRY-2300

-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [G-Reg 5.0.0]Impact analysis feature

2014-10-24 Thread Sameera Kannangara
Hi all,



 3. search functionality for searching and selecting the resource subject
 to impact analysis

 Rather than using a text box to enter the criteria and search, A drop down
 box which get populated as user enters data, was decided to be used to
 implement this functionality.


For the search and select resource functionality,

Should we let user to select a specific media type to search resource names
to populate the drop down box?,
Or do an artifact search without restricting to any media type and populate
the drop down box with search results?

Also we can combine above two options and add a drop down box for user to
select the media type, which has default value set to All.

Please provide your thoughts on this.

Thank you,
SameeraK.


-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [G-Reg] Impact Analysis feature

2014-09-18 Thread Sameera Kannangara
Hi Chanaka,

Can I have listn.png icons at [1] formatted to following specification
for UI of the impact analysis feature.

Colour scheme - Black and white,
size - 20 x 20 px

Thank you,
SameeraK.

[1]
http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.generic.ui/src/main/resources/web/generic/images/

-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [G-Reg] Impact Analysis feature

2014-09-18 Thread Sameera Kannangara
Thank you Chanaka.

Regards,
SameeraK

On Thu, Sep 18, 2014 at 2:01 PM, Chanaka Jayasena chan...@wso2.com wrote:

 You can find these icons from the following location.


 https://svn.wso2.com/wso2/repo/graphics/Products/Governance%20Registry/icons/rxt-new/

 thanks,
 Chanaka

 On Thu, Sep 18, 2014 at 1:56 PM, Sameera Kannangara samee...@wso2.com
 wrote:

 Hi Chanaka,

 Can I have listn.png icons at [1] formatted to following specification
 for UI of the impact analysis feature.

 Colour scheme - Black and white,
 size - 20 x 20 px

 Thank you,
 SameeraK.

 [1]
 http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.generic.ui/src/main/resources/web/generic/images/

 --
 *Sameera Kannangara*
 Software Engineer
 Platform TG; WSO2 Inc. http://wso2.com
 Contact:
 phone: +94719541577
 Lean . Enterprise . Middleware




 --
 Chanaka Jayasena
 Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
 email: chan...@wso2.com; cell: +94 77 785 5565
 blog: http://chanaka3d.blogspot.com




-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Code Review notes - Email Monitor - Jaggery App

2014-09-12 Thread Sameera Kannangara
Hi all,

A code review was organized to review the jaggery app written as front end
of the email monitoring system that was created as the fast track training
project.

Following are the notes taken in the Code Review - Email Monitor - Jaggery
App.

Date - 2014-09-12
Participants-
Subash,Eranda,Pulasthi,Danesh,Denuwanthi,Heshani,Suho,SameeraM,Ruchira

Notes -

- Move the logic in landing page, for retrieving the queries to a js file
- The utility.jag should be renamed to a utility.js
- You can use a single method which checks for the presence of parameters
in a json object
- The error message is found in the jxHR object
- Use the request.getAllParameters() instead of getting parameters
individually
-There is no need to stringify the json object before printing it
- The file reading should happen inside a try,catch and finally
- The location must be tracked when performing the login
- Put license headers for each page
- Put copyright details for each page
- Code needs to be formatted

Please add any thing I've missed.

Thank you,
SameeraK.

-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull request for https://wso2.org/jira/browse/CARBON-14931

2014-09-12 Thread Sameera Kannangara
Hi Sameera,

This fix needs to be applied to the patch 0009 of the kernel too.

Thank you,
SameeraK.

On Wed, Sep 10, 2014 at 6:21 PM, Aruna Karunarathna ar...@wso2.com wrote:

 Thanks SameeraK.

 Regards,
 Aruna

 On Wed, Sep 10, 2014 at 5:59 PM, Sameera Kannangara samee...@wso2.com
 wrote:

 Hi Aruna,

 Please find pull request at [1].

 Thank you,
 SameeraK.

 [1] https://github.com/wso2-dev/carbon4-kernel/pull/94

 On Wed, Sep 10, 2014 at 3:43 PM, Aruna Karunarathna ar...@wso2.com
 wrote:

 Hi SameeraK,

 Can you send a pull request for the above mentioned ticket?.

 Regards,
 Aruna

 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com





 --
 *Sameera Kannangara*
 Software Engineer
 Platform TG; WSO2 Inc. http://wso2.com
 Contact:
 phone: +94719541577
 Lean . Enterprise . Middleware




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com





-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
Index: src/main/java/org/wso2/carbon/registry/core/jdbc/Repository.java
===
--- src/main/java/org/wso2/carbon/registry/core/jdbc/Repository.java	(revision 206446)
+++ src/main/java/org/wso2/carbon/registry/core/jdbc/Repository.java	(working copy)
@@ -1256,7 +1256,12 @@
 }
 }
 }
-DumpReader dumpReader = new DumpReader(reader);
+DumpReader dumpReader = new DumpReader(reader){
+@Override
+public void close() throws IOException {
+// close the inner stream on finally block
+}
+};
 XMLStreamReader xmlReader;
 try {
 xmlReader = XMLInputFactory.newInstance().createXMLStreamReader(dumpReader);
@@ -1271,6 +1276,14 @@
 String msg = Failed to serialize the dumped element at  + path + .;
 log.error(msg, e);
 throw new RegistryException(msg, e);
+} finally{
+if(reader!=null){
+try {
+reader.close();
+} catch (IOException e) {
+//ignored
+}
+}
 }
 }
 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Code Review notes - Email Monitor - Jaggery App

2014-09-12 Thread Sameera Kannangara
Hi all,

Project with raised concerns fixed is available at [1].

Thank you,
SameeraK.

[1] https://github.com/sameerak/emailMonitor-UI

On Fri, Sep 12, 2014 at 2:03 PM, Sameera Kannangara samee...@wso2.com
wrote:

 Hi all,

 A code review was organized to review the jaggery app written as front end
 of the email monitoring system that was created as the fast track training
 project.

 Following are the notes taken in the Code Review - Email Monitor - Jaggery
 App.

 Date - 2014-09-12
 Participants-
 Subash,Eranda,Pulasthi,Danesh,Denuwanthi,Heshani,Suho,SameeraM,Ruchira

 Notes -

 - Move the logic in landing page, for retrieving the queries to a js file
 - The utility.jag should be renamed to a utility.js
 - You can use a single method which checks for the presence of parameters
 in a json object
 - The error message is found in the jxHR object
 - Use the request.getAllParameters() instead of getting parameters
 individually
 -There is no need to stringify the json object before printing it
 - The file reading should happen inside a try,catch and finally
 - The location must be tracked when performing the login
 - Put license headers for each page
 - Put copyright details for each page
 - Code needs to be formatted

 Please add any thing I've missed.

 Thank you,
 SameeraK.

 --
 *Sameera Kannangara*
 Software Engineer
 Platform TG; WSO2 Inc. http://wso2.com
 Contact:
 phone: +94719541577
 Lean . Enterprise . Middleware




-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [G-Reg 5.0.0]Impact analysis feature

2014-09-11 Thread Sameera Kannangara
Hi all,

We had a G-Reg feature progress review meeting on 09-09-2014, and following
decisions were made regarding the Impact analysis feature's todos.

participants - Subash, Eranda, Pulasthi, SameeraP, Danesh, Denuwanthi,
Heshani, SameeraK

TODO

 1. authentication process

Decided to discuss with the ES team about the approach we should use to
secure Impact analysis jaggery app.


 2. there is no direct way to access the jaggery app yet (other than going
 directly to URL or accessing it via list jaggery apps menu)

In each table generated in Metadata - list view, link to the impact
analysis app regarding the resource listed in that row will be added.


 3. search functionality for searching and selecting the resource subject
 to impact analysis

Rather than using a text box to enter the criteria and search, A drop down
box which get populated as user enters data, was decided to be used to
implement this functionality.


 4. Functionality to configure relationship (“depends”,“usedBy”, etc.) used
 to generate the graph

A drop down box which has existing association types and with the
capability to get user's custom inputs should be included in the app to
cater this.


 5. coloring mechanism needed for life cycle states of the resources in the
 graph (Color spectrum for a particular life cycle)

This will be considered for later implementations.


 6. need a way to identify resource state (stable, unstable, problematic,
 published, etc.)
 this could be done by adding a property to problematic resources and
 adding additional styling to representation image to convey the meaning of
 the resource status.

Decided to use a property to specify the resource state.


 7. code quality needs to be improved.


Also following functionality was suggested.

8. Providing a mechanism to access the resources shown in the impact
analysis graph.
This will be done by providing a hyper link to view the selected resource
with registry resource browser, in the right hand side panel where details
about the selected resource are displayed.

Thank you,
SameeraK.

-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [G-Reg][5.0.0-SNAPSHOT]Error occurs when accessing publisher web UI.

2014-08-19 Thread Sameera Kannangara
 more

What could be the problem here?

Thank you,
SameeraK.
-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [G-Reg 5.0.0][RXT] Cannot add RXTs with maxoccurs=unbounded table elements

2014-08-07 Thread Sameera Kannangara
HI all,

$subject is reported at [1] by Ayesha.
And this blocks the testing of the fix I created for [2].

So I compared rxt.xsd files from both 4.6.0 and 5.0.0-SNAPSHOT G-Reg packs.
And found out following lines are missing in 5.0.0-SNAPSHOT G-Reg pack's
rxt.xsd file.
(Followings marks the changes done in 5.0.0-SNAPSHOT to 4.6.0 rxt.xsd)

@@ -8,9 +8,8 @@
xs:sequence
xs:element name=”storagePath” type=”xs:string” minOccurs=”0″/
xs:element name=”nameAttribute” type=”xs:string” minOccurs=”0″/
xs:element name=”namespaceAttribute” type=”xs:string” minOccurs=”0″/
- xs:element name=”lifecycle” type=”xs:string” minOccurs=”0″/
xs:element name=”menu” minOccurs=”0″
xs:complexType
xs:sequence
xs:element name=”id” type=”xs:string”/
@@ -87,9 +86,8 @@
xs:element name=”field” maxOccurs=”unbounded” type=”fieldType”/
/xs:sequence
xs:attribute name=”columns” type=”xs:integer”/
xs:attribute name=”name” use=”required”/
- xs:attribute name=”maxoccurs” type=”xs:NCName” fixed=”unbounded”/
/xs:complexType

xs:complexType name=”subheadingType”
xs:sequence
@@ -121,10 +119,9 @@
/xs:attribute
xs:attribute name=”default” type=”xs:string”/
xs:attribute name=”template” type=”xs:string”/
xs:attribute name=”validate” type=”xs:string”/
- xs:attribute name=”tooltip” type=”xs:string”/
- xs:attribute name=”startsWith” type=”xs:string”/
+ xs:attribute name=”tooltip” type=”xs:string”/
/xs:complexType

xs:complexType name=”fieldType2″
xs:sequence
@@ -147,9 +144,8 @@
xs:sequence
xs:element name=”value” minOccurs=”0″ maxOccurs=”unbounded”
type=”xs:string”/
/xs:sequence
xs:attribute name=”class”/
- xs:attribute name=”isLifecycle” type=”xs:boolean”/
/xs:complexType

xs:complexType name=”associationType”
xs:attribute name=”type” type=”xs:string”/

How should we approach fixing this issue?
What could be the reason for above changes?

Thank you,
SameeraK.


[1] https://wso2.org/jira/browse/REGISTRY-2221
[2] https://wso2.org/jira/browse/REGISTRY-2248

-- 
Sameera Kannangara,
Software Engineer,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [G-Reg] StackOverflowError when viewing resources in web UI

2014-08-06 Thread Sameera Kannangara
Hi all,

Above issue is reported at [1].
And occurred due to missing some carbon context refactoring.

Fix was created and sent the pull request at [2]

Thank you,
SameeraK


[1] https://wso2.org/jira/browse/STORE-479
[2] https://github.com/wso2-dev/product-es/pull/2



On Mon, Aug 4, 2014 at 5:56 PM, Sameera Kannangara samee...@wso2.com
wrote:

 Hi all,

 After adding org.jaggeryjs.server.feature version 0.9.0-SNAPSHOT to
 product G-Reg build on 28-07-2014, Following stack trace prints on the
 G-Reg back end terminal when accesing resources (except for /, /_system,
 /_system/config, /_system/governance, /_system/local) via web UI.
 Also none of the resources get life cycle panel in the web UI.

 [2014-08-04 17:31:47,023] ERROR
 {org.apache.axis2.rpc.receivers.RPCMessageReceiver} -  Exception occurred
 while trying to invoke service method getLifecycleBean
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
  at
 org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
 at
 org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
  at
 org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
 at
 org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
  at
 org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
 at
 org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
  at
 org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
  at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
  at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.wso2.carbon.governance.custom.lifecycles.checklist.stub.CustomLifecyclesChecklistAdminServiceStub.getLifecycleBean(CustomLifecyclesChecklistAdminServiceStub.java:270)
  at
 org.wso2.carbon.governance.custom.lifecycles.history.ui.clients.LifecycleServiceClient.getLifecycleBean(LifecycleServiceClient.java:111)
 at
 org.apache.jsp.history.lifecyclesHistory_005fajaxprocessor_jsp._jspService(lifecyclesHistory_005fajaxprocessor_jsp.java:144)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
  at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
  at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
 at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 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:68)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
  at
 org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
  at
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
  at
 org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
  at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
 at org.apache.jsp.resources.resource_jsp._jspService(resource_jsp.java:496

Re: [Dev] [GReg] Build failure on product-greg wso2-dev git repo

2014-08-05 Thread Sameera Kannangara
]
 
 [ERROR] Failed to execute goal
 org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
 (3-p2-profile-generation) on project governance-profile-gen: P2 publisher
 return code was 13 - [Help 1]
 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
 goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
 (3-p2-profile-generation) on project governance-profile-gen: P2 publisher
 return code was 13
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
 Caused by: org.apache.maven.plugin.MojoExecutionException: P2 publisher
 return code was 13
 at org.wso2.maven.p2.ProfileGenMojo.execute(ProfileGenMojo.java:180)
 at
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
 ... 19 more
 Caused by: org.apache.maven.plugin.MojoFailureException: P2 publisher
 return code was 13
 at
 org.wso2.maven.p2.ProfileGenMojo.installFeatures(ProfileGenMojo.java:222)
 at org.wso2.maven.p2.ProfileGenMojo.execute(ProfileGenMojo.java:170)
 ... 21 more

 ​Any help is much appreciated.

 Thanks.

 /Gayashan

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

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com

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




-- 
Sameera Kannangara,
Software Engineer,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [G-Reg] StackOverflowError when viewing resources in web UI

2014-08-04 Thread Sameera Kannangara
)


last 3 lines repeated in the console about 100 times.

Due to this problem integration test fixing is problematic in jira-tests,
metadata-tests and lifecycle-tests in G-Reg 5.0.0SNAPSHOT.

I looked in to this problem and figure out every resource view in web UI
executes,
 public void associateAspect(String resourcePath, String aspectName)
method in org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry
with parameters
resourcePath = clicked_resource's_path
aspectName = MobileAppLifeCycle

Exception occurs when executing line 2430 (aspect.associate(resource,
this);)

According to my knowledge this method is used to associate a life cycle
with a resource.
What could be causing the above behavior?

Thank you,
SameeraK


-- 
Sameera Kannangara,
Software Engineer,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [G-Reg]Adding Password field support for RXTs

2014-07-31 Thread Sameera Kannangara
Hi all,

In an off-line discussion with Subash regarding the UI aspect of the
password field, we decided to use above option #1.
As TextField and PasswordField are peers in the UI context, and as
TextField has several other attribute that are not required
by PasswordField, option #1 was selected.

   1. Create a new PasswordField class similar to TextField, in
   org.wso2.carbon.governance.generic.ui.common.dataobjects


As per the secured store aspect of the PasswordField following challenges
occur,

*UI level challenges*

When to encrypt the pass word fields content (should it be done in the UI
side, or in the backend) and when to decrypt content (should the content be
decrypted every time it is viewed in the UI, or should the viewer or
operation using the encrypted content have the facility to decrypt as
necessary).

*API level challenges*

In the API level there isn't a specific way to identify password
(encrypted) fields. Therefore it is hard to determine when to encrypt and
decrypt in this level.

Thank you,
SameeraK



On Tue, Jul 29, 2014 at 1:35 AM, Sameera Kannangara samee...@wso2.com
wrote:

 Hi all,

 Currently RXTs do not support password fields and I'm working on
 implementing this.

 This implementation has a UI aspect which masks the contents of password
 fields when rendered in web browser, and secured store aspect where
 contents of password field should be encrypted when storing, and should be
 decrypted when retrieving.

 Considering the implementation of UI aspect of password field it can be
 implemented in following ways,


1. Create a new PasswordField class similar to TextField, in
org.wso2.carbon.governance.generic.ui.common.dataobjects
2. Add an attribute to TextField class, in
org.wso2.carbon.governance.generic.ui.common.dataobjects to determine
whether this text field should be viewed as a normal text field or as a
password field.


 IMO as password field differ only by masking the content in the text
 field, it is suitable to go with the 2nd solution.

 What other factors should be concerned when implementing the UI aspect of
 password field for RXTs?

 Thank you,
 SameeraK

 --
 Sameera Kannangara,
 Software Engineer,
 WSO2 Inc.




-- 
Sameera Kannangara,
Software Engineer,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [G-Reg]Adding Password field support for RXTs

2014-07-28 Thread Sameera Kannangara
Hi all,

Currently RXTs do not support password fields and I'm working on
implementing this.

This implementation has a UI aspect which masks the contents of password
fields when rendered in web browser, and secured store aspect where
contents of password field should be encrypted when storing, and should be
decrypted when retrieving.

Considering the implementation of UI aspect of password field it can be
implemented in following ways,


   1. Create a new PasswordField class similar to TextField, in
   org.wso2.carbon.governance.generic.ui.common.dataobjects
   2. Add an attribute to TextField class, in
   org.wso2.carbon.governance.generic.ui.common.dataobjects to determine
   whether this text field should be viewed as a normal text field or as a
   password field.


IMO as password field differ only by masking the content in the text field,
it is suitable to go with the 2nd solution.

What other factors should be concerned when implementing the UI aspect of
password field for RXTs?

Thank you,
SameeraK

-- 
Sameera Kannangara,
Software Engineer,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [G-Reg][integration-testing]Test status differ when ran alone and ran as packages

2014-07-17 Thread Sameera Kannangara
Hi all,

I have following test cases which passes when ran alone, and fails when
running as test packages.

addWSDL(org.wso2.carbon.registry.jira.issues.test.Carbon11572TestCase):
expected:false but was:true
  cleanup(org.wso2.carbon.registry.jira2.issues.test2.Registry633TestCase):
Failed to perform delete operation

Unlike previous similar case mentioned in the mail thread [1], these
classes have depends on attributes added to @test annotations.
repository used for testing is located at [2].


Thank you,
SameeraK.

[1] [Dev][G-Reg][integration-testing] Interleaving test classes
[2] https://github.com/sameerak/product-greg


-- 
Sameera Kannangara,
Software Engineer,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [G-Reg][integration-testing] Interleaving test classes

2014-07-11 Thread Sameera Kannangara
HI Krishantha,

Please find TA JIRA created at [1] https://wso2.org/jira/browse/TA-857.
We will exclude test failing due to interleaving, when taking test
summaries.

Thank you,
SameeraK

[1] https://wso2.org/jira/browse/TA-857




On Fri, Jul 11, 2014 at 12:57 PM, Krishantha Samaraweera 
krishan...@wso2.com wrote:

 Hi Sameera,

 It will take bit of time to detect root cause of this problem. So can you
 disable the interleaving test cases and create TA JIRA to track it.

 Thanks,
 Krishantha.


 On Fri, Jul 11, 2014 at 12:12 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi all,

 You can find reasons for this kind of intermittent issue at TAF wiki -
 http://docs.wso2.com/display/TA430/FAQ#FAQ-Whydoesmytestmodulecontainintermittenttestfailures?

 I suspect this issue is something to do with test resource cleanup. Need
 to check run all tests and do extensive debug session.

 Please share active GIT repo URL.

 Thanks,
 Krishantha.


 On Thu, Jul 10, 2014 at 4:46 PM, Subash Chaturanga sub...@wso2.com
 wrote:

 Adding Krishantha


 On Thu, Jul 10, 2014 at 3:57 PM, Sameera Kannangara samee...@wso2.com
 wrote:

 Hi all,

 When running G-Reg tests I've encountered several test cases which
 passes when the containing class executed individually and fails when tests
 are run as packages. Following are few examples.


 deleteResources(org.wso2.carbon.registry.metadata.test.schema.SchemaAddTestCase)

 addAssociationToRoot(org.wso2.carbon.registry.ws.client.test.general.old.TestAssociationWSTestCase)

 cleanup(org.wso2.carbon.registry.ws.client.test.general.old.TestAssociationWSTestCase)

 When remote debugging these test classes it is observed that tests from
 different classes run interleaved, and that some times lead to changing and
 removing shared resources, results in test failures.

 How can we solve this problem?

 Thank you,
 SameeraK


 --
 Sameera Kannangara,
 Software Engineer,
 WSO2 Inc.

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




 --
 Thanks
 /subash

 *Subash Chaturanga*
 Senior Software Engineer  Lead WSO2 Governance Registry
 Platform TG; WSO2 Inc. http://wso2.com
 Contact:
 email: sub...@wso2.com
 blog:  http://subashsdm.blogspot.com/
 twitter: @subash89
 phone: +9477 2225922
 Lean . Enterprise . Middleware




 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




-- 
Sameera Kannangara,
Software Engineer,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [G-Reg][integration-testing] Interleaving test classes

2014-07-10 Thread Sameera Kannangara
Hi all,

When running G-Reg tests I've encountered several test cases which passes
when the containing class executed individually and fails when tests are
run as packages. Following are few examples.

deleteResources(org.wso2.carbon.registry.metadata.test.schema.SchemaAddTestCase)
addAssociationToRoot(org.wso2.carbon.registry.ws.client.test.general.old.TestAssociationWSTestCase)
cleanup(org.wso2.carbon.registry.ws.client.test.general.old.TestAssociationWSTestCase)

When remote debugging these test classes it is observed that tests from
different classes run interleaved, and that some times lead to changing and
removing shared resources, results in test failures.

How can we solve this problem?

Thank you,
SameeraK


-- 
Sameera Kannangara,
Software Engineer,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [G-Reg]5.0.0-SNAPSHOT Build failure

2014-06-27 Thread Sameera Kannangara
Hi Darshana,

Build progresses passing last failure point after changing line 288.
previous build failure occurred due to changing all
org.wso2.carbon.identity.relying.party.server.feature.group entries
to org.wso2.carbon.identity.relying.party.server.feature.

Thanks a lot,
SameeraK



On Fri, Jun 27, 2014 at 11:06 AM, Sameera Kannangara samee...@wso2.com
wrote:

 Hi,

 I changed org.wso2.carbon.identity.relying.party.server.feature.group
 entries to org.wso2.carbon.identity.relying.party.server.feature,
 and built again.
 now the build process gives following build failure.

 [INFO] Extracting feature
 org.wso2.carbon:org.wso2.carbon.tenant.common.feature
 [INFO] Copying resources
 [INFO] Running Equinox P2 Publisher Application for Repository Generation
 [INFO] Command line:
 /bin/sh -c cd
 /home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen 
 /usr/installations/jdk1.6.0_45/jre/bin/java -jar
 /home/sameerak/.m21/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
 -nosplash -application
 org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source
 /home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/tmp.1403846776845/featureExtract
 -metadataRepository
 file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2-repo
 -metadataRepositoryName governance-profile-gen -artifactRepository
 file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2-repo
 -artifactRepositoryName governance-profile-gen -publishArtifacts
 -publishArtifactRepository -compress -append
 Generating metadata for ..
 Generation completed with success [9 seconds].
 [INFO] Running Equinox P2 Category Publisher Application for the Generated
 Repository
 [INFO]
 [INFO] --- carbon-p2-plugin:1.5.3:publish-product (publishing product) @
 governance-profile-gen ---
 [INFO] Command line:
 /bin/sh -c cd
 /home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen 
 /usr/installations/jdk1.6.0_45/jre/bin/java -jar
 /home/sameerak/.m21/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
 -nosplash -application org.eclipse.equinox.p2.publisher.ProductPublisher
 -metadataRepository
 file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2-repo
 -artifactRepository
 file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2-repo
 -productFile
 /home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/carbon.product
 -executables
 /home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/org.eclipse.equinox.executable_3.5.0.v20110530-7P7NFUFFLWUl76mart
 -publishArtifacts -configs gtk.linux.x86 -flavor tooling -append
 Generating metadata for ..
 Generation completed with success [0 seconds].
 [INFO]
 [INFO] --- carbon-p2-plugin:1.5.3:materialize-product
 (creating-repository-profile) @ governance-profile-gen ---
 [INFO] Command line:
 /bin/sh -c cd
 /home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen 
 /usr/installations/jdk1.6.0_45/jre/bin/java -jar
 /home/sameerak/.m21/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
 -nosplash -application org.eclipse.equinox.p2.director -metadataRepository
 file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2-repo
 -artifactRepository
 file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2-repo
 -installIU carbon.product.id -profileProperties
 org.eclipse.update.install.features=true -profile repository -bundlepool
 file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components
 -shared
 file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/p2
 -destination
 file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/repository
 -p2.os linux -p2.ws gtk -p2.arch x86 -roaming
 Installing carbon.product.id 4.3.0.SNAPSHOT.
 Operation completed in 1774 ms.
 [INFO]
 [INFO] --- carbon-p2-plugin:1.5.3:materialize-product
 (creating-uddi-registry-profile) @ governance-profile-gen ---
 [INFO] Command line:
 /bin/sh -c cd
 /home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen 
 /usr/installations/jdk1.6.0_45/jre/bin/java -jar
 /home/sameerak/.m21/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
 -nosplash -application org.eclipse.equinox.p2.director -metadataRepository
 file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2-repo
 -artifactRepository
 file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2

Re: [Dev] [G-Reg] Build failure in git repo wso2-dev/product-greg

2014-06-26 Thread Sameera Kannangara
Hi all,


On Wed, Jun 25, 2014 at 10:14 PM, Sameera Kannangara samee...@wso2.com
wrote:

 Hi all,

 This error occurs due to some missing properties
 in wso2-dev/carbon-governance/pom.xml file.
 Following entries should be added to
 the wso2-dev/carbon-governance/pom.xml property element to built governance
 features correctly.


 registry.core.feature.version4.3.0-SNAPSHOT/registry.core.feature.version

 governance.metadata.feature.version4.3.0-SNAPSHOT/governance.metadata.feature.version

 After adding these elements wso2-dev/carbon-governance repos should be
 built again and with the newly created features wso2-dev/product-greg repo
 can be built passing the previous error.

 Now following error occurs as the build proceeds.

 Installation failed.Cannot complete the install because one or more
 required items could not be found.

  Software being installed: Identity OAuth Server Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.oauth.server.feature.group 4.3.0.SNAPSHOT)
  Missing requirement: Application Authentication Framework Server Feature
 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.application.authentication.framework.server.feature.group
 4.3.0.SNAPSHOT) requires
 'org.wso2.carbon.identity.user.profile.server.feature.group
 [4.3.0.SNAPSHOT,4.4.0)' but it could not be found
  Cannot satisfy dependency:
   From: Identity OAuth Server Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.oauth.server.feature.group 4.3.0.SNAPSHOT)
   To: org.wso2.carbon.identity.provider.server.feature.group
 [4.3.0.SNAPSHOT,4.4.0)
  Cannot satisfy dependency:
   From: Identity Provider Server Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.provider.server.feature.group 4.3.0.SNAPSHOT)
   To:
 org.wso2.carbon.identity.application.authentication.framework.server.feature.group
 [4.3.0.SNAPSHOT,4.4.0)
 Application failed, log file location:
 /home/sameerak/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1403712092805.log


This error occurred due to some missing feature dependencies for IS
features used by G-Reg.
I have talked with the IS team and added the necessary IS dependencies to
G-Reg product.
Changes are proposed in the pull request at [1]
Please verify and merge.

Thank you,
SameeraK

[1] https://github.com/wso2-dev/product-greg/pull/1
[2] my repo - https://github.com/sameerak/product-greg.git



 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] WSO2 Governance Registry - P2 Profile Generation .. FAILURE
 [23.450s]
 [INFO] WSO2 Stratos - Cloud Governance Login User Interface  SKIPPED
 [INFO] WSO2 API Manager - BAM Toolbox  SKIPPED
 [INFO] WSO2 Governance Registry - Distribution ... SKIPPED
 [INFO] WSO2 Governance Registry - Integration Tests .. SKIPPED
 [INFO] Registry Admin-Clients Module . SKIPPED
 [INFO] Registry Test Utility Module .. SKIPPED
 [INFO] Registry Test Artifact Module . SKIPPED
 [INFO] Registry Backward association handler Artifact  SKIPPED
 [INFO] Registry Integration Test Module .. SKIPPED
 [INFO] Registry Tests Resources Test Module .. SKIPPED
 [INFO] Registry Metadata Test Module . SKIPPED
 [INFO] Registry Lifecycle Test Module  SKIPPED
 [INFO] Registry Permission Test Module ... SKIPPED
 [INFO] Registry Extensibility Test Module  SKIPPED
 [INFO] Registry Governance API Test Module ... SKIPPED
 [INFO] Registry Smoke Test Module  SKIPPED
 [INFO] Registry Public JIRA Test Module .. SKIPPED
 [INFO] Registry Search and Version Test Module ... SKIPPED
 [INFO] Registry Test Reporting Module  SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 24.477s
 [INFO] Finished at: Wed Jun 25 21:31:36 IST 2014
 [INFO] Final Memory: 19M/425M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
 (3-p2-profile-generation) on project governance-profile-gen: P2 publisher
 return code was 13 - [Help 1]

 What could be the issue here?

 Thank you,
 SameeraK



 On Wed, Jun 25, 2014 at 8:35 PM, Sameera Kannangara samee...@wso2.com
 wrote:

 Hi all,

 I forked carbon4-kernel[1], carbon-governance[2], carbon-registry[3]
 and product-greg[4] and built these repos in the order they are appearing
 above. First 3 repos built normally and when building the 4th one
 (product-greg), I got following error message.

 [INFO] Copying resources
 [INFO] Running Equinox P2 Publisher Application for Repository Generation
 [INFO] Command line:
 /bin/sh -c cd
 /home/sameerak/repos/wso2/g-reg

Re: [Dev] Ignoring target and temp files in git

2014-06-26 Thread Sameera Kannangara
Hi all,

+1 for adding ignore entries for temp files.

Thank you,
SameeraK


On Thu, Jun 26, 2014 at 1:21 PM, Manuranga Perera m...@wso2.com wrote:

 my bad, target is already there. I though it's getting from my global.


 On Thu, Jun 26, 2014 at 1:18 PM, Manuranga Perera m...@wso2.com wrote:

 shall we add the maven target dir to git ignore list. and vim temp files

 # Maven
 target/

 # VIM
 *~
 [._]*.s[a-w][a-z]
 [._]s[a-w][a-z]


 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com




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




-- 
Sameera Kannangara,
Software Engineer,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [G-Reg]Build failure in carbon-registry

2014-06-26 Thread Sameera Kannangara
Hi,

Please note that changes regarding this build are still in my personal
repository at [1]

Thank you,
SameeraK

[1] https://github.com/sameerak/carbon-registry/blob/master/pom.xml



On Thu, Jun 26, 2014 at 8:05 PM, Sameera Kannangara samee...@wso2.com
wrote:

 Hi all,

 When building wso2-dev/carbon-registry with following rampart version
 values in the pom

 rampart.version1.6.1-wso2v13-SNAPSHOT/rampart.version
 rampart.wso2.version1.6.1.wso2v13-SNAPSHOT/rampart.wso2.version

 I got following error.

 [INFO]
 
 [INFO] Building WSO2 Carbon - Registry - Web Service 4.3.0-SNAPSHOT
 [INFO]
 
 [WARNING] The POM for
 org.apache.rampart:rampart-core:jar:1.6.1.wso2v13-SNAPSHOT is missing, no
 dependency information available
 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] WSO2 Carbon - Registry - Web Service .. FAILURE [0.636s]
 [INFO] WSO2 Carbon - Registry - Web Service Client ... SKIPPED
 [INFO] WSO2 Carbon - Registry - Indexing UI .. SKIPPED
 [INFO] WSO2 Carbon - Registry - WebDAV ... SKIPPED
 [INFO] WSO2 Carbon - Registry - JCR .. SKIPPED
 [INFO] WSO2 Carbon - Registry - Social ... SKIPPED
 [INFO] WSO2 Carbon - Registry - Social API Impl .. SKIPPED
 [INFO] WSO2 Carbon - Registry - Task Implementation .. SKIPPED
 [INFO] WSO2 Carbon - Registry - Reporting BE . SKIPPED
 [INFO] WSO2 Carbon - Registry - Reporting UI . SKIPPED
 [INFO] Registry REST API . SKIPPED
 [INFO] WSO2 Carbon - Registry - CMIS . SKIPPED
 [INFO] WSO2 Carbon - Registry Core Feature Aggregator Module  SKIPPED
 [INFO] WSO2 Carbon - Registry Core Common Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry Core Server Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry Core UI Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry Search UI Feature .. SKIPPED
 [INFO] WSO2 Carbon - Registry Core Feature ... SKIPPED
 [INFO] WSO2 Carbon - Registry UI Menu Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry UI Menu for Governance Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry Content Search Feature Aggregator Module
  SKIPPED
 [INFO] WSO2 Carbon - Registry Content Search Server Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry Content Search Feature . SKIPPED
 [INFO] WSO2 Carbon - Registry Content Search UI Feature .. SKIPPED
 [INFO] WSO2 Carbon - Registry Resource Properties Feature Aggregator
 Module  SKIPPED
 [INFO] WSO2 Carbon - Registry Resource Properties Server Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry Resource Properties UI Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry Resource Properties Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry Profiles Feature Aggregator Module  SKIPPED
 [INFO] WSO2 Carbon - Registry Profiles Server Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry Profiles UI Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry Profiles Feature ... SKIPPED
 [INFO] WSO2 Carbon - Registry WS API Feature Aggregator Module  SKIPPED
 [INFO] WSO2 Carbon - Registry WS API Feature . SKIPPED
 [INFO] WSO2 Carbon - Registry Activities Feature Aggregator Module  SKIPPED
 [INFO] WSO2 Carbon - Registry Activities Server Feature .. SKIPPED
 [INFO] WSO2 Carbon - Registry Activities UI Feature .. SKIPPED
 [INFO] WSO2 Carbon - Registry Activities Feature . SKIPPED
 [INFO] WSO2 Carbon - Registry Handler Config Feature Aggregator Module
  SKIPPED
 [INFO] WSO2 Carbon - Registry Handler Config Server Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry Handler Config UI Feature .. SKIPPED
 [INFO] WSO2 Carbon - Registry Handler Config Feature . SKIPPED
 [INFO] WSO2 Carbon - Registry Associations/Dependencies Feature Aggregator
 Module  SKIPPED
 [INFO] WSO2 Carbon - Registry Associations/Dependencies Server Feature
  SKIPPED
 [INFO] WSO2 Carbon - Registry Associations/Dependencies UI Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry Associations/Dependencies Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry Community Features Feature Aggregator Module
  SKIPPED
 [INFO] WSO2 Carbon - Registry Community Features Server Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry Community Features UI Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry Community Features Feature . SKIPPED
 [INFO] WSO2 Carbon - Registry Task Feature Aggregator Module  SKIPPED
 [INFO] WSO2 Carbon - Registry Task Server Feature  SKIPPED
 [INFO] WSO2 Carbon - Registry Task Feature ... SKIPPED
 [INFO] WSO2 Carbon - Registry Reporting Feature Aggregator Module  SKIPPED
 [INFO] WSO2 Carbon - Registry Reporting Server Feature ... SKIPPED
 [INFO] WSO2 Carbon - Registry Reporting UI Feature ... SKIPPED
 [INFO

Re: [Dev] [G-Reg]5.0.0-SNAPSHOT Build failure

2014-06-26 Thread Sameera Kannangara
Hi,

I changed org.wso2.carbon.identity.relying.party.server.feature.group
entries to org.wso2.carbon.identity.relying.party.server.feature,
and built again.
now the build process gives following build failure.

[INFO] Extracting feature
org.wso2.carbon:org.wso2.carbon.tenant.common.feature
[INFO] Copying resources
[INFO] Running Equinox P2 Publisher Application for Repository Generation
[INFO] Command line:
/bin/sh -c cd
/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen 
/usr/installations/jdk1.6.0_45/jre/bin/java -jar
/home/sameerak/.m21/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
-nosplash -application
org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source
/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/tmp.1403846776845/featureExtract
-metadataRepository
file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2-repo
-metadataRepositoryName governance-profile-gen -artifactRepository
file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2-repo
-artifactRepositoryName governance-profile-gen -publishArtifacts
-publishArtifactRepository -compress -append
Generating metadata for ..
Generation completed with success [9 seconds].
[INFO] Running Equinox P2 Category Publisher Application for the Generated
Repository
[INFO]
[INFO] --- carbon-p2-plugin:1.5.3:publish-product (publishing product) @
governance-profile-gen ---
[INFO] Command line:
/bin/sh -c cd
/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen 
/usr/installations/jdk1.6.0_45/jre/bin/java -jar
/home/sameerak/.m21/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
-nosplash -application org.eclipse.equinox.p2.publisher.ProductPublisher
-metadataRepository
file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2-repo
-artifactRepository
file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2-repo
-productFile
/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/carbon.product
-executables
/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/org.eclipse.equinox.executable_3.5.0.v20110530-7P7NFUFFLWUl76mart
-publishArtifacts -configs gtk.linux.x86 -flavor tooling -append
Generating metadata for ..
Generation completed with success [0 seconds].
[INFO]
[INFO] --- carbon-p2-plugin:1.5.3:materialize-product
(creating-repository-profile) @ governance-profile-gen ---
[INFO] Command line:
/bin/sh -c cd
/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen 
/usr/installations/jdk1.6.0_45/jre/bin/java -jar
/home/sameerak/.m21/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
-nosplash -application org.eclipse.equinox.p2.director -metadataRepository
file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2-repo
-artifactRepository
file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2-repo
-installIU carbon.product.id -profileProperties
org.eclipse.update.install.features=true -profile repository -bundlepool
file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components
-shared
file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/p2
-destination
file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/repository
-p2.os linux -p2.ws gtk -p2.arch x86 -roaming
Installing carbon.product.id 4.3.0.SNAPSHOT.
Operation completed in 1774 ms.
[INFO]
[INFO] --- carbon-p2-plugin:1.5.3:materialize-product
(creating-uddi-registry-profile) @ governance-profile-gen ---
[INFO] Command line:
/bin/sh -c cd
/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen 
/usr/installations/jdk1.6.0_45/jre/bin/java -jar
/home/sameerak/.m21/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
-nosplash -application org.eclipse.equinox.p2.director -metadataRepository
file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2-repo
-artifactRepository
file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2-repo
-installIU carbon.product.id -profileProperties
org.eclipse.update.install.features=true -profile uddi-registry -bundlepool
file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components
-shared
file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/p2
-destination

[Dev] [G-Reg] Build failure in git repo wso2-dev/product-greg

2014-06-25 Thread Sameera Kannangara
/wso2-dev/carbon-registry
[4] https://github.com/wso2-dev/product-greg


-- 
Sameera Kannangara,
Software Engineer,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [G-Reg] Build failure in git repo wso2-dev/product-greg

2014-06-25 Thread Sameera Kannangara
Hi all,

This error occurs due to some missing properties
in wso2-dev/carbon-governance/pom.xml file.
Following entries should be added to the wso2-dev/carbon-governance/pom.xml
property element to built governance features correctly.

registry.core.feature.version4.3.0-SNAPSHOT/registry.core.feature.version
governance.metadata.feature.version4.3.0-SNAPSHOT/governance.metadata.feature.version

After adding these elements wso2-dev/carbon-governance repos should be
built again and with the newly created features wso2-dev/product-greg repo
can be built passing the previous error.

Now following error occurs as the build proceeds.

Installation failed.Cannot complete the install because one or more
required items could not be found.

 Software being installed: Identity OAuth Server Feature 4.3.0.SNAPSHOT
(org.wso2.carbon.identity.oauth.server.feature.group 4.3.0.SNAPSHOT)
 Missing requirement: Application Authentication Framework Server Feature
4.3.0.SNAPSHOT
(org.wso2.carbon.identity.application.authentication.framework.server.feature.group
4.3.0.SNAPSHOT) requires
'org.wso2.carbon.identity.user.profile.server.feature.group
[4.3.0.SNAPSHOT,4.4.0)' but it could not be found
 Cannot satisfy dependency:
  From: Identity OAuth Server Feature 4.3.0.SNAPSHOT
(org.wso2.carbon.identity.oauth.server.feature.group 4.3.0.SNAPSHOT)
  To: org.wso2.carbon.identity.provider.server.feature.group
[4.3.0.SNAPSHOT,4.4.0)
 Cannot satisfy dependency:
  From: Identity Provider Server Feature 4.3.0.SNAPSHOT
(org.wso2.carbon.identity.provider.server.feature.group 4.3.0.SNAPSHOT)
  To:
org.wso2.carbon.identity.application.authentication.framework.server.feature.group
[4.3.0.SNAPSHOT,4.4.0)
Application failed, log file location:
/home/sameerak/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1403712092805.log

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 Governance Registry - P2 Profile Generation .. FAILURE [23.450s]
[INFO] WSO2 Stratos - Cloud Governance Login User Interface  SKIPPED
[INFO] WSO2 API Manager - BAM Toolbox  SKIPPED
[INFO] WSO2 Governance Registry - Distribution ... SKIPPED
[INFO] WSO2 Governance Registry - Integration Tests .. SKIPPED
[INFO] Registry Admin-Clients Module . SKIPPED
[INFO] Registry Test Utility Module .. SKIPPED
[INFO] Registry Test Artifact Module . SKIPPED
[INFO] Registry Backward association handler Artifact  SKIPPED
[INFO] Registry Integration Test Module .. SKIPPED
[INFO] Registry Tests Resources Test Module .. SKIPPED
[INFO] Registry Metadata Test Module . SKIPPED
[INFO] Registry Lifecycle Test Module  SKIPPED
[INFO] Registry Permission Test Module ... SKIPPED
[INFO] Registry Extensibility Test Module  SKIPPED
[INFO] Registry Governance API Test Module ... SKIPPED
[INFO] Registry Smoke Test Module  SKIPPED
[INFO] Registry Public JIRA Test Module .. SKIPPED
[INFO] Registry Search and Version Test Module ... SKIPPED
[INFO] Registry Test Reporting Module  SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 24.477s
[INFO] Finished at: Wed Jun 25 21:31:36 IST 2014
[INFO] Final Memory: 19M/425M
[INFO]

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
(3-p2-profile-generation) on project governance-profile-gen: P2 publisher
return code was 13 - [Help 1]

What could be the issue here?

Thank you,
SameeraK



On Wed, Jun 25, 2014 at 8:35 PM, Sameera Kannangara samee...@wso2.com
wrote:

 Hi all,

 I forked carbon4-kernel[1], carbon-governance[2], carbon-registry[3]
 and product-greg[4] and built these repos in the order they are appearing
 above. First 3 repos built normally and when building the 4th one
 (product-greg), I got following error message.

 [INFO] Copying resources
 [INFO] Running Equinox P2 Publisher Application for Repository Generation
 [INFO] Command line:
 /bin/sh -c cd
 /home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen 
 /usr/installations/jdk1.6.0_45/jre/bin/java -jar
 /home/sameerak/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
 -nosplash -application
 org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source
 /home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/tmp.1403704378829/featureExtract
 -metadataRepository
 file:/home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen/target/p2-repo

Re: [Dev] [G-Reg] Build failure in git repo wso2-dev/product-greg

2014-06-25 Thread Sameera Kannangara
Hi all,

I've created a pull request for above version number additions at [1].
Please check and merge.

Thank you,
SameeraK

[1] https://github.com/wso2-dev/carbon-governance/pull/7
[2] my fork - https://github.com/sameerak/carbon-governance




On Wed, Jun 25, 2014 at 10:14 PM, Sameera Kannangara samee...@wso2.com
wrote:

 Hi all,

 This error occurs due to some missing properties
 in wso2-dev/carbon-governance/pom.xml file.
 Following entries should be added to
 the wso2-dev/carbon-governance/pom.xml property element to built governance
 features correctly.


 registry.core.feature.version4.3.0-SNAPSHOT/registry.core.feature.version

 governance.metadata.feature.version4.3.0-SNAPSHOT/governance.metadata.feature.version

 After adding these elements wso2-dev/carbon-governance repos should be
 built again and with the newly created features wso2-dev/product-greg repo
 can be built passing the previous error.

 Now following error occurs as the build proceeds.

 Installation failed.Cannot complete the install because one or more
 required items could not be found.

  Software being installed: Identity OAuth Server Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.oauth.server.feature.group 4.3.0.SNAPSHOT)
  Missing requirement: Application Authentication Framework Server Feature
 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.application.authentication.framework.server.feature.group
 4.3.0.SNAPSHOT) requires
 'org.wso2.carbon.identity.user.profile.server.feature.group
 [4.3.0.SNAPSHOT,4.4.0)' but it could not be found
  Cannot satisfy dependency:
   From: Identity OAuth Server Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.oauth.server.feature.group 4.3.0.SNAPSHOT)
   To: org.wso2.carbon.identity.provider.server.feature.group
 [4.3.0.SNAPSHOT,4.4.0)
  Cannot satisfy dependency:
   From: Identity Provider Server Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.provider.server.feature.group 4.3.0.SNAPSHOT)
   To:
 org.wso2.carbon.identity.application.authentication.framework.server.feature.group
 [4.3.0.SNAPSHOT,4.4.0)
 Application failed, log file location:
 /home/sameerak/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1403712092805.log

 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] WSO2 Governance Registry - P2 Profile Generation .. FAILURE
 [23.450s]
 [INFO] WSO2 Stratos - Cloud Governance Login User Interface  SKIPPED
 [INFO] WSO2 API Manager - BAM Toolbox  SKIPPED
 [INFO] WSO2 Governance Registry - Distribution ... SKIPPED
 [INFO] WSO2 Governance Registry - Integration Tests .. SKIPPED
 [INFO] Registry Admin-Clients Module . SKIPPED
 [INFO] Registry Test Utility Module .. SKIPPED
 [INFO] Registry Test Artifact Module . SKIPPED
 [INFO] Registry Backward association handler Artifact  SKIPPED
 [INFO] Registry Integration Test Module .. SKIPPED
 [INFO] Registry Tests Resources Test Module .. SKIPPED
 [INFO] Registry Metadata Test Module . SKIPPED
 [INFO] Registry Lifecycle Test Module  SKIPPED
 [INFO] Registry Permission Test Module ... SKIPPED
 [INFO] Registry Extensibility Test Module  SKIPPED
 [INFO] Registry Governance API Test Module ... SKIPPED
 [INFO] Registry Smoke Test Module  SKIPPED
 [INFO] Registry Public JIRA Test Module .. SKIPPED
 [INFO] Registry Search and Version Test Module ... SKIPPED
 [INFO] Registry Test Reporting Module  SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 24.477s
 [INFO] Finished at: Wed Jun 25 21:31:36 IST 2014
 [INFO] Final Memory: 19M/425M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
 (3-p2-profile-generation) on project governance-profile-gen: P2 publisher
 return code was 13 - [Help 1]

 What could be the issue here?

 Thank you,
 SameeraK



 On Wed, Jun 25, 2014 at 8:35 PM, Sameera Kannangara samee...@wso2.com
 wrote:

 Hi all,

 I forked carbon4-kernel[1], carbon-governance[2], carbon-registry[3]
 and product-greg[4] and built these repos in the order they are appearing
 above. First 3 repos built normally and when building the 4th one
 (product-greg), I got following error message.

 [INFO] Copying resources
 [INFO] Running Equinox P2 Publisher Application for Repository Generation
 [INFO] Command line:
 /bin/sh -c cd
 /home/sameerak/repos/wso2/g-reg/product-greg/modules/p2-profile-gen 
 /usr/installations/jdk1.6.0_45/jre/bin/java -jar
 /home/sameerak/.m2/repository/org/eclipse/tycho/tycho-p2-runtime

Re: [Dev] [G-Reg] Build failure in git repo wso2-dev/product-greg

2014-06-25 Thread Sameera Kannangara
copying Pulasthi.

Thanks,
SameeraK


On Thu, Jun 26, 2014 at 9:26 AM, Subash Chaturanga sub...@wso2.com wrote:

 Hi Pulasthi,
 Can you send me the git hub ID of yours, so that I can grant you to allow
 merging to dev repo.


 On Thu, Jun 26, 2014 at 9:23 AM, Subash Chaturanga sub...@wso2.com
 wrote:

 Hi,
 @Pulasthi, please verify and merge those fixes.



 On Thu, Jun 26, 2014 at 9:19 AM, Sameera Kannangara samee...@wso2.com
 wrote:

 Hi all,

 I've created a pull request for above version number additions at [1].
 Please check and merge.

 Thank you,
 SameeraK

 [1] https://github.com/wso2-dev/carbon-governance/pull/7
 [2] my fork - https://github.com/sameerak/carbon-governance




 On Wed, Jun 25, 2014 at 10:14 PM, Sameera Kannangara samee...@wso2.com
 wrote:

 Hi all,

 This error occurs due to some missing properties
 in wso2-dev/carbon-governance/pom.xml file.
 Following entries should be added to
 the wso2-dev/carbon-governance/pom.xml property element to built governance
 features correctly.


 registry.core.feature.version4.3.0-SNAPSHOT/registry.core.feature.version

 governance.metadata.feature.version4.3.0-SNAPSHOT/governance.metadata.feature.version

 After adding these elements wso2-dev/carbon-governance repos should be
 built again and with the newly created features wso2-dev/product-greg repo
 can be built passing the previous error.

 Now following error occurs as the build proceeds.

 Installation failed.Cannot complete the install because one or more
 required items could not be found.

  Software being installed: Identity OAuth Server Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.oauth.server.feature.group 4.3.0.SNAPSHOT)
  Missing requirement: Application Authentication Framework Server
 Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.application.authentication.framework.server.feature.group
 4.3.0.SNAPSHOT) requires
 'org.wso2.carbon.identity.user.profile.server.feature.group
 [4.3.0.SNAPSHOT,4.4.0)' but it could not be found
  Cannot satisfy dependency:
   From: Identity OAuth Server Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.oauth.server.feature.group 4.3.0.SNAPSHOT)
   To: org.wso2.carbon.identity.provider.server.feature.group
 [4.3.0.SNAPSHOT,4.4.0)
  Cannot satisfy dependency:
   From: Identity Provider Server Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.provider.server.feature.group 4.3.0.SNAPSHOT)
   To:
 org.wso2.carbon.identity.application.authentication.framework.server.feature.group
 [4.3.0.SNAPSHOT,4.4.0)
 Application failed, log file location:
 /home/sameerak/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1403712092805.log

 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] WSO2 Governance Registry - P2 Profile Generation .. FAILURE
 [23.450s]
 [INFO] WSO2 Stratos - Cloud Governance Login User Interface  SKIPPED
  [INFO] WSO2 API Manager - BAM Toolbox  SKIPPED
 [INFO] WSO2 Governance Registry - Distribution ... SKIPPED
 [INFO] WSO2 Governance Registry - Integration Tests .. SKIPPED
 [INFO] Registry Admin-Clients Module . SKIPPED
 [INFO] Registry Test Utility Module .. SKIPPED
 [INFO] Registry Test Artifact Module . SKIPPED
 [INFO] Registry Backward association handler Artifact  SKIPPED
 [INFO] Registry Integration Test Module .. SKIPPED
 [INFO] Registry Tests Resources Test Module .. SKIPPED
 [INFO] Registry Metadata Test Module . SKIPPED
 [INFO] Registry Lifecycle Test Module  SKIPPED
 [INFO] Registry Permission Test Module ... SKIPPED
 [INFO] Registry Extensibility Test Module  SKIPPED
 [INFO] Registry Governance API Test Module ... SKIPPED
 [INFO] Registry Smoke Test Module  SKIPPED
 [INFO] Registry Public JIRA Test Module .. SKIPPED
 [INFO] Registry Search and Version Test Module ... SKIPPED
 [INFO] Registry Test Reporting Module  SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 24.477s
 [INFO] Finished at: Wed Jun 25 21:31:36 IST 2014
 [INFO] Final Memory: 19M/425M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
 (3-p2-profile-generation) on project governance-profile-gen: P2 publisher
 return code was 13 - [Help 1]

 What could be the issue here?

 Thank you,
 SameeraK



 On Wed, Jun 25, 2014 at 8:35 PM, Sameera Kannangara samee...@wso2.com
 wrote:

 Hi all,

 I forked carbon4-kernel[1], carbon-governance[2], carbon-registry[3]
 and product-greg[4] and built these repos in the order

[Dev] [Jaggery]Restricting requests on a jaggery resource based on HTTP method used

2014-05-22 Thread Sameera Kannangara
Hi all,

I want to restrict HTTP verbs that can be used on a given jaggery resource.

For example user should be able to make only HTTP POST and PUT
requests only on the index.jag file. If they make any HTTP GET or
DELETE requests they will get a 400 - bad request response.

I referred to jaggery documentation regarding jaggery.conf file[1] and
tried to use given configurations to fulfill my requirement.

Only way I could figure out to implement given scenario was to check
the incoming request's HTTP verb and decide using an if-else block in
the .jag file and generate necessary error responses.

Is there another way to implement this scenario in jaggery?

Thank you,
Sameera Kannangara.


-- 
Sameera Kannangara,
Software Engineer,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB 4.8.1 - sample 360 - Exception when trying to access database

2014-04-09 Thread Sameera Kannangara
Hi all,

When running ESB 4.8.1 - sample 360
[1]https://docs.wso2.org/display/ESB481/Sample+360%3A+Introduction+to+dblookup+Mediator,
I got the following exception and stack trace.

ERROR - DBLookupMediator Error executing statement : select * from company
where name =? against DataSource :
jdbc:derby://localhost:1527/esbdb;create=false
org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class
'org.apache.derby.jdbc.ClientDriver'
at
org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1429)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
at
org.apache.synapse.mediators.db.DBLookupMediator.processStatement(DBLookupMediator.java:44)
at
org.apache.synapse.mediators.db.AbstractDBMediator.mediate(AbstractDBMediator.java:143)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:61)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:228)
at
org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException:
org.apache.derby.jdbc.ClientDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at
org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:131)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at
org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1420)
... 19 more

When searching for fixes for above problem I came across a youtube video
explaining how to run ESB sample 360 at
[2]https://www.youtube.com/watch?v=gStDjnS0JTw
.
According the video, jar files derby.jar, derbyclient.jar and derbynet.jar
should be added to both ESB_HOME/repository/components/extensions and
ESB_HOME/repository/components/lib directories.
But the instruction to add above jars to the
ESB_HOME/repository/components/extensions directory seems to be missing
in the documentation.
After adding jars to both directories ESB 4.8.1 - sample 360 runs correctly
and provides expected outputs.

Is there another way to fix this problem?

Thank you,
-- 
Sameera Kannangara,
Software Engineer,
WSO2 Inc.

[1]
https://docs.wso2.org/display/ESB481/Sample+360%3A+Introduction+to+dblookup+Mediator
[2] https://www.youtube.com/watch?v=gStDjnS0JTw
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB documentation missing how to activate nhttp mode

2014-04-04 Thread Sameera Kannangara
Copying dev group.


On Fri, Apr 4, 2014 at 12:05 PM, Samisa Abeysinghe sam...@wso2.com wrote:

 This main needs to go to dev list.

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Developer Evangelism

 WSO2 Inc.
 http://wso2.com



 On Fri, Apr 4, 2014 at 11:10 AM, Sameera Kannangara samee...@wso2.comwrote:

 Hi all,

 To run ESB samples like 101 [1],102 [2] nhttp should be enabled.
 But documentation does not provide instructions on how to enable it.
 Please add necessary instructions to the ESB documentation, and provide
 links to those instructions on necessary pages.

 For those who are trying to activate nhttp to run samples,
 nhttp can be activated by following below instructions,

 1. go to $ESB_HOME/repository/conf/axis2 folder
 2. there is a file called axis2_nhttp.xml in the folder
 3. In order to activate nhttp, above file should take the place of
 current axis2.xml file
 4. to do this rename current axis2.xml file to a different name (ex -
 axis2_http.xml), then rename axis2_nhttp.xml file to axis2.xml.
 5. and restart the WSO2 ESB server to get nhttp mode activated.

 Thank you,
 Sameera Kannangara,
 Software Engineer,
 WSO2 Inc.

 [1]
 https://docs.wso2.org/display/ESB481/Sample+101%3A+Reliable+Message+Exchange+with+Back-End+Server+Using+WS-ReliableMessaging
 [2]
 https://docs.wso2.org/display/ESB481/Sample+102%3A+Reliable+Message+Exchange+with+Back-End+Server+Using+WS-ReliableMessaging+1.1

 --
 You received this message because you are subscribed to the Google Groups
 WSO2 Documentation group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to documentation+unsubscr...@wso2.com.
 For more options, visit https://groups.google.com/a/wso2.com/d/optout.





Thanks,
Sameera Kannangara,
Software Engineer,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] build failure in platform

2012-08-17 Thread Sameera Kannangara
Hi all,

While trying to build platform i got this error.

[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 26:57.275s
[INFO] Finished at: Sat Aug 18 10:55:25 IST 2012
[INFO] Final Memory: 1078M/1278M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project org.wso2.carbon.lb.endpoint: Compilation
failure: Compilation failure:
[ERROR]
/home/sameera/studying/wso2-working-copy/platform/branches/4.0.0/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.0.1/src/main/java/org/wso2/carbon/lb/endpoint/endpoint/TenantAwareLoadBalanceEndpoint.java:[125,43]
getGroupManagementAgent(java.lang.String) in
org.apache.axis2.clustering.ClusteringAgent cannot be applied to
(java.lang.String,java.lang.String)
[ERROR]
/home/sameera/studying/wso2-working-copy/platform/branches/4.0.0/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.0.1/src/main/java/org/wso2/carbon/lb/endpoint/endpoint/TenantAwareLoadBalanceEndpoint.java:[126,43]
addGroupManagementAgent(org.apache.axis2.clustering.management.GroupManagementAgent,java.lang.String)
in org.apache.axis2.clustering.ClusteringAgent cannot be applied to
(org.wso2.carbon.lb.endpoint.SubDomainAwareGroupManagementAgent,java.lang.String,java.lang.String)
[ERROR]
/home/sameera/studying/wso2-working-copy/platform/branches/4.0.0/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.0.1/src/main/java/org/wso2/carbon/lb/endpoint/TenantLoadBalanceMembershipHandler.java:[104,60]
getGroupManagementAgent(java.lang.String) in
org.apache.axis2.clustering.ClusteringAgent cannot be applied to
(java.lang.String,java.lang.String)
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :org.wso2.carbon.lb.endpoint


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