Changeset 5556 for ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/rest/ComponentRegistryRestService.java
- Timestamp:
- 08/18/14 09:50:16 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/rest/ComponentRegistryRestService.java
r5553 r5556 200 200 return new ArrayList<ComponentDescription>(); 201 201 202 203 204 } catch (ItemNotFoundException e) { 205 response.sendError(Status.NOT_FOUND.getStatusCode(), e.toString()); 206 return new ArrayList<ComponentDescription>(); 202 207 } 203 208 … … 235 240 } catch (UserUnauthorizedException e) { 236 241 response.sendError(Status.FORBIDDEN.getStatusCode(), e.toString()); 242 return new ArrayList<ProfileDescription>(); 243 244 245 } catch (ItemNotFoundException e) { 246 response.sendError(Status.NOT_FOUND.getStatusCode(), e.toString()); 237 247 return new ArrayList<ProfileDescription>(); 238 248 } … … 1558 1568 return new Rss(); 1559 1569 } 1570 catch (ItemNotFoundException e) { 1571 response.sendError(Status.NOT_FOUND.getStatusCode(), e.toString()); 1572 return new Rss(); 1573 } 1560 1574 // obsolete, add group Id 1561 1575 final RssCreatorDescriptions instance = new RssCreatorDescriptions(!registrySpace.equalsIgnoreCase("published"), getApplicationBaseURI(), "components", … … 1596 1610 } catch (UserUnauthorizedException e) { 1597 1611 response.sendError(Status.FORBIDDEN.getStatusCode(), e.toString()); 1612 return new Rss(); 1613 1614 } catch (ItemNotFoundException e) { 1615 response.sendError(Status.NOT_FOUND.getStatusCode(), e.toString()); 1598 1616 return new Rss(); 1599 1617 }
Note: See TracChangeset
for help on using the changeset viewer.