[SAC] [OSGeo] #1731: pywps: Execute request fails ('NoneType' object has no attribute 'lower')

#1731: pywps: Execute request fails ('NoneType' object has no attribute 'lower')
----------------------+---------------------------
Reporter: sebastic | Owner: live-demo@…
     Type: defect | Status: new
Priority: normal | Milestone: OSGeoLive10.0
Component: LiveDVD | Keywords:
----------------------+---------------------------
The hello-world process in pywps fails Execute requests reporting:
{{{
NoneType' object has no attribute 'lower'
}}}

The Apache error logs contains the stacktrace:
{{{
PyWPS [2016-06-10 17:58:40,353] INFO: Reading processes from directory
[/usr/local/share/pywps/processes]
PyWPS [2016-06-10 17:58:40,354] INFO: Following processes are imported:
['hello-world']
PyWPS [2016-06-10 17:58:40,357] INFO: Status [processpaused]: Getting
input name of process hello-world
Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/pywps/Wps/Execute/__init__.py",
line 386, in __init__
     self.consolidateInputs()
   File "/usr/lib/python2.7/dist-packages/pywps/Wps/Execute/__init__.py",
line 537, in consolidateInputs
     resp = input.setValue(inp)
   File "/usr/lib/python2.7/dist-packages/pywps/Process/InAndOutputs.py",
line 404, in setValue
     self.storeData(input["value"])
   File "/usr/lib/python2.7/dist-packages/pywps/Process/InAndOutputs.py",
line 457, in storeData
     if (self.format["mimetype"].lower().split("/")[0] != "text" and
self.format["mimetype"].lower() != "application/xml"):
AttributeError: 'NoneType' object has no attribute 'lower'
PyWPS [2016-06-10 17:58:40,359] INFO: Status [processfailed]: 'NoneType'
object has no attribute 'lower'
}}}

To reproduce:
{{{
$ wget -q
"http://localhost/pywps/wps.py?SERVICE=WPS&Version=1.0.0&REQUEST=Execute&Identifier
=hello-world&DataInputs=name=foo" -O -
}}}

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1731&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#1731: pywps: Execute request fails ('NoneType' object has no attribute 'lower')
----------------------+----------------------------
Reporter: sebastic | Owner: live-demo@…
     Type: defect | Status: new
Priority: normal | Milestone: OSGeoLive10.0
Component: LiveDVD | Resolution:
Keywords: |
----------------------+----------------------------

Comment (by tomkralidis):

Fixed in https://github.com/OSGeo/OSGeoLive/pull/122

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1731#comment:1&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#1731: pywps: Execute request fails ('NoneType' object has no attribute 'lower')
----------------------+----------------------------
Reporter: sebastic | Owner: live-demo@…
     Type: defect | Status: new
Priority: normal | Milestone: OSGeoLive10.0
Component: LiveDVD | Resolution:
Keywords: |
----------------------+----------------------------

Comment (by sebastic):

Tom's fix has been applied in the Debian package too:
http://anonscm.debian.org/cgit/pkg-
grass/pywps.git/commit/debian?id=480820b2024f1d2850cc6dd99539c0eaf94ad412

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1731#comment:2&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.