On Sat, Apr 20, 2013 at 1:20 AM, Lalaji Sureshika <lal...@wso2.com> wrote:

> Hi Nuwan,
>
>
> On Fri, Apr 19, 2013 at 11:29 AM, Nuwan Dias <nuw...@wso2.com> wrote:
>
>> Hi,
>>
>> We are having an API Publisher and Store mounted to a remote governance
>> registry. A tenant logs into the API Publisher to publish an API. When
>> loading the APIs on the API Store, the tenant registry is queried to load
>> his APIs. Following is the code block that gets executed.
>>
>> GovernanceUtils.loadGovernanceArtifacts((UserRegistry) registry);
>>
>> if(GovernanceUtils.findGovernanceArtifactConfiguration(key,
>> registry)!=null){
>>             artifactManager = new GenericArtifactManager(registry, key);
>> }
>>
>> The registry that is used in here is the tenant's registry. However, the
>> findGovernanceArtifactConfiguration method returns null until the tenant
>> logs into the system at least once.
>>
>> What could be the reason for the above behavior? Any way to get around
>> this issue?
>>
>
>     In APIStore,before a user [either tenant user or normal user] login to
> it ,the rxts need to be loaded in anonymous mode to show APIs in anonymous
> mode.Such that the above registry instance initiate as an anonymous
> registry instance ,before a user logs in,right..? If so,I think,this issue
> is due to the registry location contains RXTs doesn't have permissions to
> access those rxts by anonymous user..
>

This case is different. It does not require the tenant to be logged in to
the store/management console. It would suffice for him to login once and
from that time onwards the APIs will be shown even after he logs out. The
strange this is, this behavior repeats itself on server startup and it does
not occur on standalone installation as well. This only occurs when we
mount the gov registry of the store and publisher.

>
> Thanks;
>
>>
>> --
>> Nuwan Dias
>>
>> Software Engineer - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lalaji Sureshika
> Software Engineer
> WSO2, Inc.;  http://wso2.com/
> email: lal...@wso2.com; cell: +94 71 608 6811
> blog: http://lalajisureshika.blogspot.com
>
>
>


-- 
Nuwan Dias

Member, Management Committee - Solutions Technology Group
Software Engineer - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to