Uploaded image for project: 'Dev - Nexus'
  1. Dev - Nexus
  2. NEXUS-4955

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.0.1
    • Fix Version/s: 2.0.3, 2.1
    • Component/s: Repository
    • Labels:
      None
    • 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

        Attachments

          Activity

            People

            • Assignee:
              bhanzelmann Benjamin Hanzelmann
              Reporter:
              cstamas 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: