@@ -1292,36 +1292,36 @@ public void removeSharedResource(@PathParam("id") Long resourceId) {
12921292 @ DELETE
12931293 @ Path ("/resources" )
12941294 @ PreAuthorize ("@rangerPreAuthSecurityHandler.isAPIAccessible(\" " + RangerAPIList .REMOVE_SHARED_RESOURCES + "\" )" )
1295- public void removeSharedResources (@ QueryParam ("resourceIds " ) List <Long > resourceIds ) {
1296- LOG .debug ("==> GdsREST.removeSharedResources(resourceIds={})" , resourceIds );
1295+ public void removeSharedResources (@ QueryParam ("id " ) List <Long > id ) {
1296+ LOG .debug ("==> GdsREST.removeSharedResources(resourceIds={})" , id );
12971297
12981298 RangerPerfTracer perf = null ;
12991299
13001300 try {
1301- if (resourceIds == null ) {
1301+ if (id == null ) {
13021302 throw new Exception ("resourceIds must not be null" );
13031303 }
13041304
1305- if (resourceIds .size () > SHARED_RESOURCES_MAX_BATCH_SIZE ) {
1305+ if (id .size () > SHARED_RESOURCES_MAX_BATCH_SIZE ) {
13061306 throw new Exception ("removeSharedResources batch size exceeded the configured limit: Maximum allowed is " + SHARED_RESOURCES_MAX_BATCH_SIZE );
13071307 }
13081308
13091309 if (RangerPerfTracer .isPerfTraceEnabled (PERF_LOG )) {
1310- perf = RangerPerfTracer .getPerfTracer (PERF_LOG , "GdsREST.removeSharedResources(" + resourceIds + ")" );
1310+ perf = RangerPerfTracer .getPerfTracer (PERF_LOG , "GdsREST.removeSharedResources(" + id + ")" );
13111311 }
13121312
1313- gdsStore .removeSharedResources (resourceIds );
1313+ gdsStore .removeSharedResources (id );
13141314 } catch (WebApplicationException excp ) {
13151315 throw excp ;
13161316 } catch (Throwable excp ) {
1317- LOG .error ("removeSharedResources({}) failed" , resourceIds , excp );
1317+ LOG .error ("removeSharedResources({}) failed" , id , excp );
13181318
13191319 throw restErrorUtil .createRESTException (excp .getMessage ());
13201320 } finally {
13211321 RangerPerfTracer .log (perf );
13221322 }
13231323
1324- LOG .debug ("<== GdsREST.removeSharedResources(resourceIds={})" , resourceIds );
1324+ LOG .debug ("<== GdsREST.removeSharedResources(resourceIds={})" , id );
13251325 }
13261326
13271327 @ GET
0 commit comments