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

mime detection may not cache properly for specific request paths

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.11.2
    • Fix Version/s: 2.11.4
    • Component/s: Repository
    • Labels:
      None
    • Story Points:
      0.5
    • Sprint:
      Sprint 43, Sprint 44

      Description

      DefaultMimeSupport has it's own code to extract the extension from a given path. The code doesn't handle certain cases where dots appear multiple times in the path, or when slashes appear after the last dot, which means it can end up extract more of the path than necessary. This can lead to situations where the mime cache is ignored.

      DefaultMimeSupport should instead use FilenameUtils.getExtension

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            mcculls Stuart McCulloch
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title