adding files with paths in the filename confuses maas

Bug #1566108 reported by Tim Penhey on 2016-04-05
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Lee Trager

Bug Description

$ maas thumper files create filename=/som/path/test-file.txt file@=./.profile

$ maas thumper files read
*** WARNING! The API on the server differs from the description that
*** is cached locally. This may result in failed API calls. Refresh
*** the local API description with `maas refresh`.
Machine-readable output follows:
        "resource_uri": "/MAAS/api/2.0/files//som/path/test-file.txt/",
        "anon_resource_uri": "/MAAS/api/2.0/files/?op=get_by_key&key=7bcfc714-fad3-11e5-932f-52540051bf22",
        "filename": "/som/path/test-file.txt"

Note the double slash in the resource_uri

Related branches

Changed in maas:
milestone: none → 2.0.0
importance: Undecided → High
Changed in maas:
assignee: nobody → Lee Trager (ltrager)
status: New → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers