workarounds for resteasy 2.3.7 bugs

This commit is contained in:
Bill Burke 2014-04-11 10:33:53 -04:00
parent 0896808625
commit cc982cf246
3 changed files with 7 additions and 1 deletions

View file

@ -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) {

View file

@ -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>

View file

@ -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;