profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/cdaller/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Christof Dallermassl cdaller 43bits Graz, Austria

cdaller/security_taint_propagation 22

Java taint propagation for java. Define tainted sources, sanitizer methods and sinks via aspects.

cdaller/Arduino-Openpilot-UAVTalk 9

Read telemetry from a QuadCopter FlightControl CC3D via UAVTalk protocol

cdaller/csv_anonymizer 9

Anonymize connected data in multiple csv or xml files

cdaller/hoover 3

Wireless Probe Requests Sniffer

cdaller/OWASP-CSRFGuard 2

OWASP CSRFGuard is a library that implements a variant of the synchronizer token pattern to mitigate the risk of Cross-Site Request Forgery (CSRF) attacks.

cdaller/gpsylon 1

java application/library to read gps data (NMEA, garmin) and show map tiles

cdaller/IoTBase 1

Base for arduino/esp32 projects using WifiManager, MQTT, etc.

cdaller/probeme 1

Scanning probe requests on wifi

cdaller/thingy52_mqtt 1

Reading values from Nordic Semiconductors Thingy:52 device and post them as MQTT messages

issue openedgeopython/OWSLib

get_observation fails with Exception

PR https://github.com/geopython/OWSLib/pull/741 breaks the code:

Example

#!/usr/bin/python3

from owslib.sos import SensorObservationService

service = SensorObservationService('http://sensorweb.demo.52north.org/52n-sos-webapp/sos/kvp', version='2.0.0')

offering = 'ws2500'
observedProperty = 'AirTemperature'

get_obs = service.get_operation_by_name('GetObservation')
response = service.get_observation(responseFormat='http://www.opengis.net/om/2.0', offerings=[offering],
                                   observedProperties=[observedProperty])

Results in

Traceback (most recent call last):
  File "/Users/xxxx/testrequest.py", line 11, in <module>
    response = service.get_observation(responseFormat='http://www.opengis.net/om/2.0', offerings=[offering],
  File "/Library/Python/3.8/site-packages/owslib/swe/observation/sos200.py", line 205, in get_observation
    response = openURL(base_url, request, method,
  File "/Library/Python/3.8/site-packages/owslib/util.py", line 200, in openURL
    rkwargs['params'] = unquote(data) if data else None
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/urllib/parse.py", line 635, in unquote
    string.split
AttributeError: 'dict' object has no attribute 'split'

The problem is that the unquote call in utils.py line 200 throws an exception if the data argument is a dict. Which is the case in the get_observation call.

created time in 3 months

pull request commentgeopython/OWSLib

Feature/wcs headers integration

This merge breaks the code:

Example

#!/usr/bin/python3

from owslib.sos import SensorObservationService

service = SensorObservationService('http://sensorweb.demo.52north.org/52n-sos-webapp/sos/kvp', version='2.0.0')

offering = 'ws2500'
observedProperty = 'AirTemperature'

get_obs = service.get_operation_by_name('GetObservation')
response = service.get_observation(responseFormat='http://www.opengis.net/om/2.0', offerings=[offering],
                                   observedProperties=[observedProperty])

Results in

Traceback (most recent call last):
  File "/Users/xxxx/testrequest.py", line 11, in <module>
    response = service.get_observation(responseFormat='http://www.opengis.net/om/2.0', offerings=[offering],
  File "/Library/Python/3.8/site-packages/owslib/swe/observation/sos200.py", line 205, in get_observation
    response = openURL(base_url, request, method,
  File "/Library/Python/3.8/site-packages/owslib/util.py", line 200, in openURL
    rkwargs['params'] = unquote(data) if data else None
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/urllib/parse.py", line 635, in unquote
    string.split
AttributeError: 'dict' object has no attribute 'split'

The problem is that the unquote call in utils.py line 200 throws an exception if the data argument is a dict. Which is the case in the get_observation call.

ferreteleco

comment created time in 3 months