Cannot upload files with maas-cli

Bug #1187826 reported by Gavin Panella
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Gavin Panella
1.5
Fix Released
High
Gavin Panella
maas (Ubuntu)
New
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

Revision history for this message
Gavin Panella (allenap) wrote :
Changed in maas:
milestone: none → 13.10
Changed in maas:
milestone: 13.10 → 14.04
tags: added: landscape
Gavin Panella (allenap)
Changed in maas:
status: Triaged → In Progress
assignee: nobody → Gavin Panella (allenap)
Changed in maas:
milestone: 14.04 → none
Gavin Panella (allenap)
Changed in maas:
status: In Progress → Fix Committed
Gavin Panella (allenap)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.