[ https://issues.apache.org/jira/browse/OAK-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
angela resolved OAK-1091. ------------------------- Resolution: Fixed fix committed revision 1530963. > TokenLoginModule#commit should throw an exception if TokenInfo is not created > ----------------------------------------------------------------------------- > > Key: OAK-1091 > URL: https://issues.apache.org/jira/browse/OAK-1091 > Project: Jackrabbit Oak > Issue Type: Bug > Components: core > Reporter: Antonio Sanso > Assignee: angela > > TokenLoginModule#commit should throw an exception if TokenInfo is not created > {code} > if (ti != null) { > TokenCredentials tc = new TokenCredentials(ti.getToken()); > Map<String, String> attributes = > ti.getPrivateAttributes(); > for (String name : attributes.keySet()) { > tc.setAttribute(name, attributes.get(name)); > } > attributes = ti.getPublicAttributes(); > for (String name : attributes.keySet()) { > tc.setAttribute(name, attributes.get(name)); > } > subject.getPublicCredentials().add(tc); > } > {code} > the code above should contain an else statement throwing a LoginException -- This message was sent by Atlassian JIRA (v6.1#6144)