You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2017/07/27 23:33:00 UTC

[jira] [Resolved] (ACCUMULO-4687) Address some static analysis feedback from Fortify

     [ https://issues.apache.org/jira/browse/ACCUMULO-4687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Elser resolved ACCUMULO-4687.
----------------------------------
    Resolution: Fixed

Pushed this. By the time we got to master, there were actually no code changes to make (which is pretty cool!)

> Address some static analysis feedback from Fortify
> --------------------------------------------------
>
>                 Key: ACCUMULO-4687
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4687
>             Project: Accumulo
>          Issue Type: Improvement
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>            Priority: Minor
>             Fix For: 1.7.4, 1.8.2, 2.0.0
>
>          Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> Fortify flagged some things in Accumulo (mostly against 1.7 and 1.8). Actually, it flagged a lot of things, but there were a few that I noticed which are minor but wouldn't hurt for us to fix.
> * The {{JarFile}} in {{Jar.java}} is never closed
> * {{BoundedRangeFileInputStream}} invokes a PrivilegedAction for some reason I can't fathom (been this way since code import -- I think it can be removed).
> * Numeric validate on the refresh cookie in the monitor
> * Use {{HttpOnly}} on the cookies we create to mark that we only expect them to be accessed by the browser
> * We put the request URI back into the page body in DefautlServlet if we can't load the requested element (putting user-controlled info in a http response -- generally bad news). We can just trim the data we write to the browser and log it instead.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)