[
https://issues.jboss.org/browse/SEAMJCR-19?page=com.atlassian.jira.plugin...
]
John Ament commented on SEAMJCR-19:
-----------------------------------
Simon,
This is the code that generated it currently:
@Produces
public Session produceSession(InjectionPoint injectionPoint) throws
RepositoryException {
Repository repo = produceRepository(injectionPoint);
Annotation[] qualifiers = getQualifiers(injectionPoint);
Credentials c = credentialsInstance.isUnsatisfied() ? null :
credentialsInstance.select(qualifiers).get();
String workspaceName = workspaceInstance.isUnsatisfied() ? null :
workspaceInstance.select(qualifiers).get();
return repo.login(c, workspaceName);
}
As long as workspace name resolves, it should be logging in with the workspace name. Are
you saying this is not the case? The code was slightly refactored, but you can take a
look here:
https://github.com/seam/jcr/blob/develop/impl/src/main/java/org/jboss/sea...
Support Repository Login without credentials
--------------------------------------------
Key: SEAMJCR-19
URL:
https://issues.jboss.org/browse/SEAMJCR-19
Project: Seam JCR
Issue Type: Enhancement
Components: CDI & Injection API
Affects Versions: 3.0.0.Alpha2
Reporter: Simon Gunzenreiner
It would be nice to call repository.login(workspaceName) if no Credentials are available
in RepositoryResolverImpl.produceSession().
This way anonymous login would be supported as well.
Sorry for opening the request directly without going to the forum, but there seems to be
little discussion happening about Seam JCR.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira