Re: [QGIS-Developer] Inconsistency in QgsServerRequest parameter handling ?

2019-04-10 Thread Alessandro Pasotti
On Wed, Apr 10, 2019 at 11:37 PM David Marteau wrote: > > > Le 10 avr. 2019 à 23:21, pblottiere a > écrit : > > > > Hi David, > > > > > >> If you try: > >> > >> request.setParameter('FOOBAR','foobar') > >> > >> then > >> > >> request.parameter('FOOBAR') > >> > >> then you get an empty string, >

Re: [QGIS-Developer] Inconsistency in QgsServerRequest parameter handling ?

2019-04-10 Thread David Marteau
> Le 10 avr. 2019 à 23:21, pblottiere a écrit : > > Hi David, > > >> If you try: >> >> request.setParameter('FOOBAR','foobar') >> >> then >> >> request.parameter('FOOBAR') >> >> then you get an empty string, >>> Even if I add an 'allowed' parameter by hand: >>>

Re: [QGIS-Developer] Inconsistency in QgsServerRequest parameter handling ?

2019-04-10 Thread pblottiere
Hi David, > If you try: > > request.setParameter('FOOBAR','foobar') > > then > > request.parameter('FOOBAR') > > then you get an empty string, >> Even if I add an 'allowed' parameter by hand: >> >>> request.setParameter('FI_POINT_TOLERANCE','25') Actually, QgsServerRequest and

Re: [QGIS-Developer] Inconsistency in QgsServerRequest parameter handling ?

2019-04-10 Thread David Marteau
To add some precision: Even if I add an 'allowed' parameter by hand: > request.setParameter('FI_POINT_TOLERANCE','25') then > request.parameter('FI_POINT_TOLERANCE') return an empty string > Le 10 avr. 2019 à 19:46, David Marteau a écrit : > > > Hi devs, > > I found a strange and

[QGIS-Developer] Inconsistency in QgsServerRequest parameter handling ?

2019-04-10 Thread David Marteau
Hi devs, I found a strange and seemingly inconsistent behavior when accessing QgsServerRequest parameters: If you try: request.setParameter('FOOBAR','foobar') then request.parameter('FOOBAR') then you get an empty string, If you call request.parameters() Then your get a dictionary with