rsanchez
2015-07-17 de20ad70c0afaf6e0560bc8b22b5fd4d4a953271
#0 fix - Fixed App ID REST client call
2 files modified
changed files
securis/src/main/java/net/curisit/securis/ioc/RequestsInterceptor.java patch | view | blame | history
securis/src/main/webapp/js/admin.js patch | view | blame | history
securis/src/main/java/net/curisit/securis/ioc/RequestsInterceptor.java
....@@ -62,7 +62,7 @@
6262 @Override
6363 public void filter(ContainerRequestContext containerRequestContext) throws IOException {
6464 EntityManager em = emProvider.getEntityManager();
65
- LOG.info("GETTING EM: {}", em);
65
+ LOG.debug("GETTING EM: {}", em);
6666
6767 ResteasyProviderFactory.pushContext(EntityManager.class, em);
6868
....@@ -177,7 +177,7 @@
177177 }
178178 } finally {
179179 if (em.isOpen()) {
180
- LOG.info("CLOSING EM: {}, trans: {}", em, em.isJoinedToTransaction());
180
+ LOG.debug("CLOSING EM: {}, trans: {}", em, em.isJoinedToTransaction());
181181 try {
182182 em.close();
183183 } catch (Exception ex) {
securis/src/main/webapp/js/admin.js
....@@ -213,7 +213,7 @@
213213 var newAppId = $scope.formu['application_id'];
214214 if (newAppId) {
215215 // Only if there is a "valid" value selected we should update the metadata
216
- Catalogs.getResource('application').get({appId: newAppId}).$promise.then(function(app) {
216
+ Catalogs.getResource('application').get({id: newAppId}).$promise.then(function(app) {
217217 $scope.formu.metadata = [];
218218 app.metadata.forEach(function(md) {
219219 $scope.formu.metadata.push({