Merge pull request #336 from patriot1burke/master
workarounds for resteasy 2.3.7 bugs
This commit is contained in:
commit
51a718f337
3 changed files with 7 additions and 1 deletions
|
@ -155,7 +155,10 @@ public class FreeMarkerLoginForms implements LoginForms {
|
|||
if (message != null) {
|
||||
attributes.put("message", new MessageBean(messages.containsKey(message) ? messages.getProperty(message) : message, messageType));
|
||||
}
|
||||
|
||||
if (page == LoginFormsPages.OAUTH_GRANT) {
|
||||
// for some reason Resteasy 2.3.7 doesn't like query params and form params with the same name and will null out the code form param
|
||||
uriBuilder.replaceQuery(null);
|
||||
}
|
||||
URI baseUri = uriBuilder.build();
|
||||
|
||||
if (realm != null) {
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
<dependencies>
|
||||
<module name="org.apache.httpcomponents"/>
|
||||
<module name="org.bouncycastle"/>
|
||||
<module name="org.codehaus.jackson.jackson-core-asl"/>
|
||||
<module name="org.codehaus.jackson.jackson-mapper-asl"/>
|
||||
</dependencies>
|
||||
<exclusions>
|
||||
|
||||
|
|
|
@ -169,6 +169,7 @@ public class UsersResource {
|
|||
for (ApplicationModel applicationModel : realm.getApplications()) {
|
||||
if (applicationModel.getManagementUrl() == null) continue;
|
||||
UserStats appStats = new ResourceAdminManager().getUserStats(realm, applicationModel, user);
|
||||
if (appStats == null) continue;
|
||||
if (appStats.isLoggedIn()) stats.put(applicationModel.getName(), appStats);
|
||||
}
|
||||
return stats;
|
||||
|
|
Loading…
Reference in a new issue