Dev - Nexus
  1. Dev - Nexus
  2. NEXUS-4955

FSPeer wrongly assumes target.getName is always a good candidate for tmp file creation

    Details

    • Global Rank:
      23867
    • Story Points:
      1

      Description

      FSPeer wrongly assumes target.getName is always a good candidate for tmp file creation.

      This might not always be true (especially for non-maven layouted repositories, but even Maven layouted ones might contain such files, made by some custom Nexus plugin or external tooling).

      The code in question is here:
      https://github.com/sonatype/nexus/blob/982f62b530768e490cf83c916d3aa2692d38ede2/nexus/nexus-proxy/src/main/java/org/sonatype/nexus/proxy/storage/local/fs/DefaultFSPeer.java#L316

        Activity

        Hide
        Rich Seddon added a comment -

        Backport to 2.0.x if easy to do.

        Show
        Rich Seddon added a comment - Backport to 2.0.x if easy to do.
        Show
        Marvin Herman Froeder added a comment - https://github.com/sonatype/nexus/pull/349
        Hide
        Marvin Herman Froeder added a comment -

        Applied to 2.0.x as well.

        Show
        Marvin Herman Froeder added a comment - Applied to 2.0.x as well.

          People

          • Assignee:
            bhanzelmann
            Reporter:
            Tamás Cservenák
            Last Updated By:
            Jason Dillon
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Date of First Response: