Cannot upload files with maas-cli

Bug #1187826 reported by Gavin Panella on 2013-06-05
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
MAAS
High
Gavin Panella
1.5
High
Gavin Panella
maas (Ubuntu)
Undecided
Unassigned

Bug Description

{{{
$ bin/maascli login foo http://localhost:5240
$ bin/maascli foo files add filename=fred -d < my_file
400 BAD REQUEST

         Connection: close
       Content-Type: text/plain; charset=utf-8
               Date: Wed, 05 Jun 2013 15:14:57 GMT
             Server: WSGIServer/0.1 Python/2.7.4
             Status: 400
  Transfer-Encoding: chunked
               Vary: Cookie

File not supplied
}}}

(The same happens when passing "file=$(< my_file)".)

This is because the server is looking at request.FILES, and maas-cli is not sending anything that'll get put in there. MAAS ought to learn how to do this.

Related branches

Changed in maas:
milestone: none → 13.10
Changed in maas:
milestone: 13.10 → 14.04
tags: added: landscape
Gavin Panella (allenap) on 2014-04-02
Changed in maas:
status: Triaged → In Progress
assignee: nobody → Gavin Panella (allenap)
Changed in maas:
milestone: 14.04 → none
Gavin Panella (allenap) on 2014-04-03
Changed in maas:
status: In Progress → Fix Committed
Gavin Panella (allenap) on 2014-04-03
Changed in maas:
milestone: none → 14.10
Changed in maas:
status: Fix Committed → Fix Released
milestone: 14.10 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers