@@ -119,9 +119,11 @@ public static ResponseEntity<DataResource> readResource(RepoBaseConfiguration ap
119119
120120 if (currentVersion > 0 ) {
121121 //trigger response creation and set etag...the response body is set automatically
122- return ResponseEntity .ok ().eTag ("\" " + resource .getEtag () + "\" " ).header ("Resource-Version" , Long .toString ((version != null ) ? version : currentVersion )).body (filterResource (resource ));
122+ //return ResponseEntity.ok().eTag("\"" + resource.getEtag() + "\"").header("Resource-Version", Long.toString((version != null) ? version : currentVersion)).body(filterResource(resource));
123+ return ResponseEntity .ok ().eTag ("\" " + resource .getEtag () + "\" " ).header ("Resource-Version" , Long .toString ((version != null ) ? version : currentVersion )).body (resource );
123124 } else {
124- return ResponseEntity .ok ().eTag ("\" " + resource .getEtag () + "\" " ).body (filterResource (resource ));
125+ //return ResponseEntity.ok().eTag("\"" + resource.getEtag() + "\"").body(filterResource(resource));
126+ return ResponseEntity .ok ().eTag ("\" " + resource .getEtag () + "\" " ).body (resource );
125127 }
126128 }
127129
@@ -371,7 +373,7 @@ public static Optional<String> getAuditInformation(RepoBaseConfiguration applica
371373 * @param resource data resource.
372374 * @return data resource without acls.
373375 */
374- public static DataResource filterResource (DataResource resource ) {
376+ /* public static DataResource filterResource(DataResource resource) {
375377 if (!AuthenticationHelper.isAuthenticatedAsService() && !DataResourceUtils.hasPermission(resource, PERMISSION.ADMINISTRATE) && !AuthenticationHelper.hasAuthority(RepoUserRole.ADMINISTRATOR.toString())) {
376378 LOGGER.debug("Removing ACL information from resources due to non-administrator access.");
377379 //exclude ACLs if not administrate or administrator permissions are set
@@ -381,15 +383,15 @@ public static DataResource filterResource(DataResource resource) {
381383 }
382384
383385 return resource;
384- }
386+ }*/
385387
386388 /**
387389 * Remove ACLs from a list of data resources.
388390 *
389391 * @param resources list of data resources.
390392 * @return list of data resources without acls.
391393 */
392- public static List <DataResource > filterResources (List <DataResource > resources ) {
394+ /* public static List<DataResource> filterResources(List<DataResource> resources) {
393395
394396 if (!AuthenticationHelper.isAuthenticatedAsService() && !AuthenticationHelper.hasAuthority(RepoUserRole.ADMINISTRATOR.toString())) {
395397 LOGGER.debug("Removing ACL information from resources due to non-administrator access.");
@@ -403,7 +405,7 @@ public static List<DataResource> filterResources(List<DataResource> resources) {
403405 }
404406
405407 return resources;
406- }
408+ }*/
407409
408410 public static Collection <? extends GrantedAuthority > getUserAuthorities (DataResource resource ) {
409411 LOGGER .trace ("Determining user grants from authorization context." );
0 commit comments