adding files with paths in the filename confuses maas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Lee Trager |
Bug Description
$ maas thumper files create filename=
$ 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`.
*******
Success.
Machine-readable output follows:
[
{
"filename": "/som/path/
}
]
Note the double slash in the resource_uri
Related branches
- Gavin Panella (community): Needs Fixing
-
Diff: 126 lines (+46/-7)2 files modifiedsrc/maasserver/api/files.py (+11/-3)
src/maasserver/api/tests/test_filestorage.py (+35/-4)
- Gavin Panella (community): Approve
-
Diff: 181 lines (+58/-21)6 files modifiedsrc/maascli/api.py (+1/-1)
src/maascli/tests/test_api.py (+6/-6)
src/maasserver/api/files.py (+17/-2)
src/maasserver/api/support.py (+8/-6)
src/maasserver/api/tests/test_filestorage.py (+12/-0)
src/maastesting/djangoclient.py (+14/-6)
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 |