Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1648

Removed whitespace characters from URLs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.1.3
    • Component/s: Framework

      Description

      Error

      When adding an account, we must ensure the given URL does not contain any whitespace character.

      InvalidURL: Failed to parse: vmi245718.contaboserver.net:8080
      
      (2 additional frame(s) were not displayed)
      ...
        File "lib\site-packages\requests\api.py", line 60, in request
        File "lib\site-packages\requests\sessions.py", line 519, in request
        File "lib\site-packages\requests\sessions.py", line 462, in prepare_request
        File "lib\site-packages\requests\models.py", line 313, in prepare
        File "lib\site-packages\requests\models.py", line 381, in prepare_url
      
      LocationParseError: Failed to parse: vmi245718.contaboserver.net:8080
      
        File "lib\site-packages\requests\models.py", line 379, in prepare_url
        File "lib\site-packages\urllib3\util\url.py", line 199, in parse_url
      
      Error while trying to connect to Nuxeo Drive startup page with URL https://vmi245718.contaboserver.net:8080
      /drive_browser_login.jsp
      

      Sentry Issue: NUXEO-DRIVE-WW

      Fix

      A simple fix would be to do something like re.sub(r"\s+", "", url).
      Also a test should be added.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 15 minutes
                15m