Skip to content

fix: normalize trailing slashes in server URLs - #179

Open
adnanvaldes wants to merge 1 commit into
jensomato:developfrom
adnanvaldes:fix/173-trailing-slash-url
Open

fix: normalize trailing slashes in server URLs#179
adnanvaldes wants to merge 1 commit into
jensomato:developfrom
adnanvaldes:fix/173-trailing-slash-url

Conversation

@adnanvaldes

Copy link
Copy Markdown

A trailing slash in the Readeck URL when adding an account (i.e. https://readeck.local/) caused double slashes in API requests (i.e. //api/bookmarks), leading to a 'JSON deserialization' error on login. Trim trailing slashes in both UrlInterceptor and AccountSettingsViewModel endpoint construction.

Adds a UrlInterceptor test to confirm this works.

Closes #173

(Note: I am not really a Java/Kotlin dev, so while this seems to work, I'd appreciate feedback if it doesn't).

…h in API endpoints

A trailing slash in the Readeck URL when adding an account (i.e. https://readeck.local) caused double slashes in API requests (i.e. //api/bookmarks), leading to a 'JSON deserialization' error on login. Trim trailing slashes in both UrlInterceptor and AccountSettingsViewModel endpoint construction. Adds a UrlInterceptor test to confirm this works

Closes jensomato#173
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSON Deserialization error entering address with "/”

1 participant