Esri / data-collection-dotnet

Data collection application built using the .NET Runtime SDK.
https://developers.arcgis.com/
Apache License 2.0
23 stars 30 forks source link

Peculiar behaviors when deleting the offline map #78

Open mikewilburn opened 4 years ago

mikewilburn commented 4 years ago

On WPF:

If you delete the currently-stored offline map, the application will throw an I/O exception like this one:

image

Clicking 'OK' successfully restarts the app and reveals the offline map is indeed deleted.

However, attempting to take offline a new section of map throws this same exception. The behavior loops and I haven't figured out how to work offline yet because of it.

On UWP:

If you delete the offline map, the application will crash right away.

The application can be re-launched just fine and reveals the offline map is indeed deleted, but on a few occasions, I've been re-prompted to sign in. Seems the crash may also force signing out the user?

mikewilburn commented 4 years ago

Deleting the offline map is now throwing this error:

WPF UWP
image image

Clicking 'OK' and attempting to re-log-in (ensuring I've used the correct credentials) throws the error:

Map Failed to Load: Response status code does not indicate success: 401 (Unauthorized)

Moreover, I'm still apparently logged in and have an offline map:

CLICK TO EXPAND

![image](https://user-images.githubusercontent.com/25207711/68705595-30ece280-0543-11ea-8e9e-91c844593697.png)

nCastle1 commented 4 years ago

The remaining errors are a result of an authentication manager bug involving OAuth refresh tokens that is resolved at 100.7. This issue should be resolved by #84

mikewilburn commented 4 years ago

@nCastle1 do we need to re-test to ensure that this one was resolved when #84 was merged?

nCastle1 commented 4 years ago

@mikewilburn Yes, I think additional testing would be in order to confirm that this is fixed.