You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Udara Liyanage <ud...@wso2.com> on 2015/02/20 12:28:02 UTC
Permission issue while adding registry resource by metadata service
Hi,
Do we have to assign permission.
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: *Failed
to add new resource. User wso2.anonymous.user does not have authorization
to update the collection */.
at
org.wso2.carbon.registry.core.jdbc.Repository.addEmptyCollection(Repository.java:1167)
at
org.wso2.carbon.registry.core.jdbc.Repository.addEmptyCollection(Repository.java:1156)
at org.wso2.carbon.registry.core.jdbc.Repository.add(Repository.java:1013)
at org.wso2.carbon.registry.core.jdbc.Repository.put(Repository.java:305)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:709)
at
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:465)
at
org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:657)
at
org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:638)
at
org.apache.stratos.metadata.service.registry.CarbonRegistry.addPropertyToCluster(CarbonRegistry.java:99)
at
org.apache.stratos.metadata.service.services.MetaDataAdmin.addPropertyToACluster(MetaDataAdmin.java:140)
... 44 more
--
Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
Re: Permission issue while adding registry resource by metadata service
Posted by Udara Liyanage <ud...@wso2.com>.
Hi Imesh,
I did the re factoring and done testing locally. Now need to test cartridge
agent extensions
On Mon, Feb 23, 2015 at 1:38 PM, Imesh Gunaratne <im...@apache.org> wrote:
> Great! Nice to hear that Udara! Please update when you commit your changes.
>
> Thanks
>
> On Mon, Feb 23, 2015 at 10:05 AM, Udara Liyanage <ud...@wso2.com> wrote:
>
>> Hi Imesh,
>>
>> I did some changes to start super admin flow when persisting in registry.
>> It is successful. I will update when the thread when I do the re factoring.
>>
>> On Sun, Feb 22, 2015 at 2:44 PM, Imesh Gunaratne <im...@apache.org>
>> wrote:
>>
>>> Udara, it would be great if you can give an update on this? Is it
>>> possible for us to use Metadata service now?
>>>
>>> Thanks
>>>
>>> On Fri, Feb 20, 2015 at 10:15 PM, Imesh Gunaratne <im...@apache.org>
>>> wrote:
>>>
>>>> Yes I think after we fixed the permission model we did not fix the
>>>> default permissions given to users. We may need to update that in SM.
>>>>
>>>> On Fri, Feb 20, 2015 at 9:51 PM, Udara Liyanage <ud...@wso2.com> wrote:
>>>>
>>>>> It's not related to token. Registry write operation is not allowed for
>>>>> this user. When I added the permission it worked
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Imesh Gunaratne
>>>>
>>>> Technical Lead, WSO2
>>>> Committer & PMC Member, Apache Stratos
>>>>
>>>
>>>
>>>
>>> --
>>> Imesh Gunaratne
>>>
>>> Technical Lead, WSO2
>>> Committer & PMC Member, Apache Stratos
>>>
>>
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>
--
Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
Re: Permission issue while adding registry resource by metadata service
Posted by Imesh Gunaratne <im...@apache.org>.
Great! Nice to hear that Udara! Please update when you commit your changes.
Thanks
On Mon, Feb 23, 2015 at 10:05 AM, Udara Liyanage <ud...@wso2.com> wrote:
> Hi Imesh,
>
> I did some changes to start super admin flow when persisting in registry.
> It is successful. I will update when the thread when I do the re factoring.
>
> On Sun, Feb 22, 2015 at 2:44 PM, Imesh Gunaratne <im...@apache.org> wrote:
>
>> Udara, it would be great if you can give an update on this? Is it
>> possible for us to use Metadata service now?
>>
>> Thanks
>>
>> On Fri, Feb 20, 2015 at 10:15 PM, Imesh Gunaratne <im...@apache.org>
>> wrote:
>>
>>> Yes I think after we fixed the permission model we did not fix the
>>> default permissions given to users. We may need to update that in SM.
>>>
>>> On Fri, Feb 20, 2015 at 9:51 PM, Udara Liyanage <ud...@wso2.com> wrote:
>>>
>>>> It's not related to token. Registry write operation is not allowed for
>>>> this user. When I added the permission it worked
>>>>
>>>
>>>
>>>
>>> --
>>> Imesh Gunaratne
>>>
>>> Technical Lead, WSO2
>>> Committer & PMC Member, Apache Stratos
>>>
>>
>>
>>
>> --
>> Imesh Gunaratne
>>
>> Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>
--
Imesh Gunaratne
Technical Lead, WSO2
Committer & PMC Member, Apache Stratos
Re: Permission issue while adding registry resource by metadata service
Posted by Udara Liyanage <ud...@wso2.com>.
Hi Imesh,
I did some changes to start super admin flow when persisting in registry.
It is successful. I will update when the thread when I do the re factoring.
On Sun, Feb 22, 2015 at 2:44 PM, Imesh Gunaratne <im...@apache.org> wrote:
> Udara, it would be great if you can give an update on this? Is it possible
> for us to use Metadata service now?
>
> Thanks
>
> On Fri, Feb 20, 2015 at 10:15 PM, Imesh Gunaratne <im...@apache.org>
> wrote:
>
>> Yes I think after we fixed the permission model we did not fix the
>> default permissions given to users. We may need to update that in SM.
>>
>> On Fri, Feb 20, 2015 at 9:51 PM, Udara Liyanage <ud...@wso2.com> wrote:
>>
>>> It's not related to token. Registry write operation is not allowed for
>>> this user. When I added the permission it worked
>>>
>>
>>
>>
>> --
>> Imesh Gunaratne
>>
>> Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>
--
Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
Re: Permission issue while adding registry resource by metadata service
Posted by Imesh Gunaratne <im...@apache.org>.
Udara, it would be great if you can give an update on this? Is it possible
for us to use Metadata service now?
Thanks
On Fri, Feb 20, 2015 at 10:15 PM, Imesh Gunaratne <im...@apache.org> wrote:
> Yes I think after we fixed the permission model we did not fix the default
> permissions given to users. We may need to update that in SM.
>
> On Fri, Feb 20, 2015 at 9:51 PM, Udara Liyanage <ud...@wso2.com> wrote:
>
>> It's not related to token. Registry write operation is not allowed for
>> this user. When I added the permission it worked
>>
>
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>
--
Imesh Gunaratne
Technical Lead, WSO2
Committer & PMC Member, Apache Stratos
Re: Permission issue while adding registry resource by metadata service
Posted by Imesh Gunaratne <im...@apache.org>.
Yes I think after we fixed the permission model we did not fix the default
permissions given to users. We may need to update that in SM.
On Fri, Feb 20, 2015 at 9:51 PM, Udara Liyanage <ud...@wso2.com> wrote:
> It's not related to token. Registry write operation is not allowed for
> this user. When I added the permission it worked
>
--
Imesh Gunaratne
Technical Lead, WSO2
Committer & PMC Member, Apache Stratos
Re: Permission issue while adding registry resource by metadata service
Posted by Udara Liyanage <ud...@wso2.com>.
It's not related to token. Registry write operation is not allowed for this
user. When I added the permission it worked
Re: Permission issue while adding registry resource by metadata service
Posted by Gayan Gunarathne <ga...@wso2.com>.
Seems we try to update registry of the different user.I guess user account
use for update the registry will different from the account that you create
the user token.
Thanks,
Gayan
On Fri, Feb 20, 2015 at 4:58 PM, Udara Liyanage <ud...@wso2.com> wrote:
> Hi,
>
> Do we have to assign permission.
>
> Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: *Failed
> to add new resource. User wso2.anonymous.user does not have authorization
> to update the collection */.
> at
> org.wso2.carbon.registry.core.jdbc.Repository.addEmptyCollection(Repository.java:1167)
> at
> org.wso2.carbon.registry.core.jdbc.Repository.addEmptyCollection(Repository.java:1156)
> at org.wso2.carbon.registry.core.jdbc.Repository.add(Repository.java:1013)
> at org.wso2.carbon.registry.core.jdbc.Repository.put(Repository.java:305)
> at
> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:709)
> at
> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:465)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:657)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:638)
> at
> org.apache.stratos.metadata.service.registry.CarbonRegistry.addPropertyToCluster(CarbonRegistry.java:99)
> at
> org.apache.stratos.metadata.service.services.MetaDataAdmin.addPropertyToACluster(MetaDataAdmin.java:140)
> ... 44 more
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>
--
Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email : gayang@wso2.com | mobile : +94 766819985