Merge pull request #2627 from mposolda/master

Migration and mongo fix
This commit is contained in:
Marek Posolda 2016-04-14 11:48:16 +02:00
commit 3275b528f9
2 changed files with 2 additions and 2 deletions

View file

@ -180,7 +180,7 @@ public class DefaultMongoConnectionFactoryProvider implements MongoConnectionPro
private Class[] getManagedEntities() throws ClassNotFoundException {
Class[] entityClasses = new Class[entities.length];
for (int i = 0; i < entities.length; i++) {
entityClasses[i] = Thread.currentThread().getContextClassLoader().loadClass(entities[i]);
entityClasses[i] = getClass().getClassLoader().loadClass(entities[i]);
}
return entityClasses;
}

View file

@ -34,7 +34,7 @@ public class MigrateTo1_9_2 {
if (realm.getBrowserSecurityHeaders() != null) {
Map<String, String> browserSecurityHeaders = new HashMap<>(realm.getBrowserSecurityHeaders());
browserSecurityHeaders.put("xFrameOptions", "nosniff");
browserSecurityHeaders.put("xContentTypeOptions", "nosniff");
realm.setBrowserSecurityHeaders(Collections.unmodifiableMap(browserSecurityHeaders));
}