ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Bosco Durai <bo...@apache.org>
Subject FW: New Defects reported by Coverity Scan for Apache Ranger
Date Thu, 29 Mar 2018 15:37:44 GMT
Please review and resolve if needed.

Thanks

Bosco


´╗┐On 3/29/18, 12:58 AM, "scan-admin@coverity.com" <scan-admin@coverity.com> wrote:

    Hi,
    
    Please find the latest report on new defect(s) introduced to Apache Ranger found with
Coverity Scan.
    
    2 new defect(s) introduced to Apache Ranger found with Coverity Scan.
    2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build
analyzed by Coverity Scan.
    
    New defect(s) Reported-by: Coverity Scan
    Showing 2 of 2 defect(s)
    
    
    ** CID 175091:  FindBugs: Internationalization  (FB.DM_DEFAULT_ENCODING)
    /plugin-kylin/src/test/java/org/apache/ranger/authorization/kylin/authorizer/RangerAdminClientImpl.java:
68 in org.apache.ranger.authorization.kylin.authorizer.RangerAdminClientImpl.getServicePoliciesIfUpdated(long,
long)()
    
    
    ________________________________________________________________________________________________________
    *** CID 175091:  FindBugs: Internationalization  (FB.DM_DEFAULT_ENCODING)
    /plugin-kylin/src/test/java/org/apache/ranger/authorization/kylin/authorizer/RangerAdminClientImpl.java:
68 in org.apache.ranger.authorization.kylin.authorizer.RangerAdminClientImpl.getServicePoliciesIfUpdated(long,
long)()
    62     		}
    63     
    64     		java.nio.file.Path cachePath = FileSystems.getDefault()
    65     				.getPath(basedir, "/src/test/resources/" + cacheFilename);
    66     		byte[] cacheBytes = Files.readAllBytes(cachePath);
    67     
    >>>     CID 175091:  FindBugs: Internationalization  (FB.DM_DEFAULT_ENCODING)
    >>>     Found reliance on default encoding: new String(byte[]).
    68     		return gson.fromJson(new String(cacheBytes), ServicePolicies.class);
    69     	}
    70     
    71     	@Override
    72     	public void grantAccess(GrantRevokeRequest request) throws Exception {
    73     
    
    ** CID 175090:  Null pointer dereferences  (FORWARD_NULL)
    
    
    ________________________________________________________________________________________________________
    *** CID 175090:  Null pointer dereferences  (FORWARD_NULL)
    /security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java: 2601 in org.apache.ranger.rest.ServiceREST.getServicePolicies(java.lang.String,
org.apache.ranger.plugin.util.SearchFilter)()
    2595     					filter.setStartIndex(savedStartIndex);
    2596     					filter.setMaxRows(savedMaxRows);
    2597     				}
    2598     
    2599     				servicePolicies = applyAdminAccessFilter(servicePolicies);
    2600     
    >>>     CID 175090:  Null pointer dereferences  (FORWARD_NULL)
    >>>     Passing null pointer "filter" to "toRangerPolicyList", which dereferences
it.
    2601     				return toRangerPolicyList(servicePolicies, filter);
    2602     			}
    2603     		} catch(WebApplicationException excp) {
    2604     			throw excp;
    2605     		} catch (Throwable excp) {
    2606     			LOG.error("getServicePolicies(" + serviceName + ") failed", excp);
    
    
    ________________________________________________________________________________________________________
    To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZSbhom32dlDl11LWEm9nX11zsOWMf5dv3Q9Mogo-2FGua3FsLRTFft2V-2FOFC9o0P2e0-3D_d04ZgyDzSjlwpjXIuOFYDNE6R93Lal83MDClQK32PZsnIXFWgRi957MYBuy-2FlDkytlroFFT4DodK8yWwhtaHLaX8VDTgQexZ1KpM2ghdONIK2s05PzHFJPHt35agqZ9nM-2FaTS-2BwGKR0yiHd9VqwUDlZAGDFlrUyAnUh6f6i-2B3anlkbZqOzVnGOBWkfRi-2BewYxNrjphgpV2suFoBTWVzO0g-3D-3D
    
      To manage Coverity Scan email notifications for "bosco@apache.org", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4HK0JLY-2BbZ-2FD0yvjg-2BbWSwquqqdEYtbR9nIDW-2BM81kI8TiABM2LsH3tiPfMWf-2FvOsjZSWngS5IRVC-2FH5Pl4zyaK1OE6Dh-2BhR6pXASEFJKZLM-3D_d04ZgyDzSjlwpjXIuOFYDNE6R93Lal83MDClQK32PZsnIXFWgRi957MYBuy-2FlDkyKfsBgXiTb4k-2FaNGDo8qEUl-2BH63yXDNcomvZoiNiF2WHM0-2BfOOmQbx4B5UGXDs4vgM4Iijd2No-2BKhKAZ5fWyDIvixetSLwUn6Ii5x-2FoDgj-2BkICrMEOuMN9xxY3hvndcP6NWUsLHw4lI958nIxF-2BKARg-3D-3D
    
    



Mime
View raw message