geopython / GeoHealthCheck

Service Status and QoS Checker for OGC Web Services
https://geohealthcheck.org
MIT License
84 stars 71 forks source link

ESRI ArcGIS FS Probe: X-Esri-Authorization header still sent after changing to Basic Auth #293

Closed justb4 closed 5 years ago

justb4 commented 5 years ago

Describe the bug X-Esri-Authorization header is still sent after changing Authorization on ESRI:FS Resource from Bearer Token to Basic Auth. This leads to Invalid Token error. First reported by @BenGunnewijk .

To Reproduce Steps to reproduce the behavior, e.g.:

  1. Add ESRI:FS Resource
  2. In Edit screen add Bearer Token auth and Save
  3. Now change Auth to Basic Auth (provide valid user/password) and Save
  4. Klik Test button
  5. Test result is False, in details see code=498 message=Invalid Token

Expected Behavior Step 5 above should be True (success) as Basic Auth should be accepted.

Screenshots or Logfiles N.A.

Context (please complete the following information):

If running with Docker:

Additional context Problem seems to be easily solved in esrifs.py#L38: remove possibly existing/dangling 'X-Esri-Authorization' header first.

justb4 commented 5 years ago

Closing, fixed via #293.