[
https://issues.apache.org/jira/browse/CLEREZZA-358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tommaso Teofili updated CLEREZZA-358:
-------------------------------------
Fix Version/s: 0.2-incubating
> missing readlock while retrieving baseuris from platform.config
> ---------------------------------------------------------------
>
> Key: CLEREZZA-358
> URL: https://issues.apache.org/jira/browse/CLEREZZA-358
> Project: Clerezza
> Issue Type: Bug
> Reporter: Tsuyoshi Ito
> Assignee: Tsuyoshi Ito
> Fix For: 0.2-incubating
>
>
> readlock should be set
> public Set<UriRef> getBaseUris() {
> return AccessController.doPrivileged(new
> PrivilegedAction<Set<UriRef>>() {
> @Override
> public Set<UriRef> run() {
> Iterator<Resource> baseUrisIter =
> getPlatformInstance().
> getObjects(PLATFORM.baseUri);
> Set<UriRef> baseUris = new HashSet<UriRef>();
> while (baseUrisIter.hasNext()) {
> UriRef baseUri = (UriRef)
> baseUrisIter.next();
> baseUris.add(baseUri);
> }
> baseUris.add(getDefaultBaseUri());
> return baseUris;
> }
> });
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira