MAASDispatcher cannot control HTTP method properly

Bug #1052881 reported by Gavin Panella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Won't Fix
Low
Unassigned

Bug Description

It uses urllib2, which is fairly difficult to get using the correct HTTP method. Using httplib2 is an easy solution here.

There's a reference to this problem in src/maascli/api.py:

        # Use httplib2 instead of urllib2 (or MAASDispatcher, which is based
        # on urllib2) so that we get full control over HTTP method. TODO:
        # create custom MAASDispatcher to use httplib2 so that MAASClient can
        # be used.
        http = httplib2.Http()
        response, content = http.request(
            uri, self.method, body=body, headers=headers)

Tags: cli tech-debt
Gavin Panella (allenap)
tags: added: cli
tags: added: tech-debt
Changed in maas:
importance: High → Low
Changed in maas:
status: Triaged → Won't Fix
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.