Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-1686

URI query strings are preserved in local filename

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.19.1, 0.20.0
    • None
    • fetcher

    Description

      When launching a task that includes a URI, the resulting local filename includes the query string. I assume this is undesired.

      Example:
      http://builds.mycompany.com/myapp.jar?auth_token=abc123
      is saved to
      myapp.jar?auth_token=abc123

      It appears the problem is that launcher/fetcher.cpp generates the local filename with os::basename(uri). While keeping everything right of the last "/" is appropriate for basenames of local paths, URIs should be handled differently.

      Given the structure:
      scheme://domain:port/path?query_string#fragment_id
      we can probably get by with a function that returns basename(uri.path)

      Not sure if that should live in the stout package or somewhere else. Happy to submit a patch if someone can tell me where to put the function.

      Thanks in advance!

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            nethergoat Mike Babineau

            Dates

              Created:
              Updated:

              Slack

                Issue deployment