Uploaded image for project: 'Archiva'
  1. Archiva
  2. MRM-1793

trailing spaces not trimmed in upload form

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4-M4
    • Fix Version/s: 2.0.0
    • Component/s: Web Interface
    • Labels:
      None
    • Environment:
      Linux, Firefox 17

      Description

      In the "upload artifact" page, when I put a group ID ending by a trailing space (after a copy/paste for instance), archiva won't trim it, and will create an ugly directory with a space at the end of its name ! Of course it's not exactly a good behaviour, but moreover, when there's such a directory in the repo, Archiva isn't able to browse it any more, and displays an error message "Failed to resolve path repositories/proxied-releases/content/test relative to node /".

      I didn't test trailing spaces in artifact or version, but I suppose they are probably treated the same way, causing the same error...

      Could you fix it for version 2.0.0 ? It's an annoying issue, but really easy to fix.

      Thanks !

        Attachments

          Activity

            People

            • Assignee:
              olamy Olivier Lamy
              Reporter:
              iguimiot Guimiot Isabelle
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: