#0 fix - Fixed App ID REST client call
| .. | .. |
|---|
| 62 | 62 | @Override |
|---|
| 63 | 63 | public void filter(ContainerRequestContext containerRequestContext) throws IOException { |
|---|
| 64 | 64 | EntityManager em = emProvider.getEntityManager(); |
|---|
| 65 | | - LOG.info("GETTING EM: {}", em); |
|---|
| 65 | + LOG.debug("GETTING EM: {}", em); |
|---|
| 66 | 66 | |
|---|
| 67 | 67 | ResteasyProviderFactory.pushContext(EntityManager.class, em); |
|---|
| 68 | 68 | |
|---|
| .. | .. |
|---|
| 177 | 177 | } |
|---|
| 178 | 178 | } finally { |
|---|
| 179 | 179 | if (em.isOpen()) { |
|---|
| 180 | | - LOG.info("CLOSING EM: {}, trans: {}", em, em.isJoinedToTransaction()); |
|---|
| 180 | + LOG.debug("CLOSING EM: {}, trans: {}", em, em.isJoinedToTransaction()); |
|---|
| 181 | 181 | try { |
|---|
| 182 | 182 | em.close(); |
|---|
| 183 | 183 | } catch (Exception ex) { |
|---|
| .. | .. |
|---|
| 213 | 213 | var newAppId = $scope.formu['application_id']; |
|---|
| 214 | 214 | if (newAppId) { |
|---|
| 215 | 215 | // 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) { |
|---|
| 217 | 217 | $scope.formu.metadata = []; |
|---|
| 218 | 218 | app.metadata.forEach(function(md) { |
|---|
| 219 | 219 | $scope.formu.metadata.push({ |
|---|