Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47324

FilePath API in Jenkins should propagate errors

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Almost all methods in https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/FilePath.java use obsolete pre-Java7 API, which does not propagate errors.

      • The code should be updated to java.nio.Files: https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html
      • Methods should propagate errors via IOExceptions where possible (and log errors to java.util.logging.Logger otherwise)
      • Runtime exceptions from the new API should be caught if the methods throw them (e.g. InvalidPathException)

        Attachments

          Issue Links

            Activity

            oleg_nenashev Oleg Nenashev created issue -
            oleg_nenashev Oleg Nenashev made changes -
            Field Original Value New Value
            Project Security Issues [ 10180 ] Jenkins [ 10172 ]
            Key SECURITY-625 JENKINS-47324
            Workflow Security v1.2 [ 223061 ] JNJira + In-Review [ 223062 ]
            Status Untriaged [ 10001 ] Open [ 1 ]
            Component/s core [ 15593 ]
            Component/s core [ 15738 ]
            oleg_nenashev Oleg Nenashev made changes -
            Labels diagnostics diagnostics newbie-friendly
            oleg_nenashev Oleg Nenashev made changes -
            Issue Type Bug [ 1 ] Improvement [ 4 ]
            teilo James Nord made changes -
            Link This issue relates to JENKINS-34855 [ JENKINS-34855 ]
            teilo James Nord made changes -
            Link This issue relates to JENKINS-36088 [ JENKINS-36088 ]
            marykomar Mariia Komar made changes -
            Assignee Mariia Komar [ marykomar ]
            marykomar Mariia Komar made changes -
            Assignee Mariia Komar [ marykomar ]
            marykomar Mariia Komar made changes -
            Assignee Mariia Komar [ marykomar ]
            marykomar Mariia Komar made changes -
            Assignee Mariia Komar [ marykomar ]
            batmat Baptiste Mathus made changes -
            Assignee Krishan Bhasin [ krishbhasin ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue relates to JENKINS-48227 [ JENKINS-48227 ]
            dnusbaum Devin Nusbaum made changes -
            Link This issue relates to JENKINS-48405 [ JENKINS-48405 ]
            batmat Baptiste Mathus made changes -
            Remote Link This issue links to "PR-3173 from KrishanBhasin (Web Link)" [ 22177 ]
            batmat Baptiste Mathus made changes -
            Labels diagnostics newbie-friendly diagnostics missing-acceptance-criteria needs-details newbie-friendly
            batmat Baptiste Mathus made changes -
            Status Open [ 1 ] Closed [ 6 ]
            Resolution Done [ 10000 ]
            dnusbaum Devin Nusbaum made changes -
            Remote Link This issue links to "jenkinsci/jenkins#3864 (Web Link)" [ 22307 ]

              People

              • Assignee:
                krishbhasin Krishan Bhasin
                Reporter:
                oleg_nenashev Oleg Nenashev
              • Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: