Esri / arcgis-osm-editor

ArcGIS Editor for OpenStreetMap is a toolset for GIS users to access and contribute to OpenStreetMap through their Desktop or Server environment.
Apache License 2.0
395 stars 129 forks source link

Uploading data throws 401 error #193

Closed skmoore closed 5 years ago

skmoore commented 6 years ago

Tested on 10.5 and 10.6 on different machines and with different logins, always getting a '401 Unauthorized' error when trying to push edits back. Looks like something may have changed server-side with OSM...

ThomasEmge commented 6 years ago

Looks the like the GPString class strips elements out of the original string representation.

The original string is something like "https://www.openstreetmap.org" and when the code attempts to retrieve the string through the .Value property, the returned string is "openstreetmap.org".

Using this string in a request against the main server results in a redirect on the server side and following the redirect URL the client drops the authentication headers for security reasons. As a result the user authentication/login fails.

WilliamWalker commented 5 years ago

Using 10.4 addin. I have to replace 'http' with 'https' for the server to accept my edits.

mboeringa commented 5 years ago

@skmoore and @ThomasEmge, see @WilliamWalker 's comment.