[GH-ISSUE #194] Unable to login on macos #144

Closed
opened 2026-02-25 23:33:32 +03:00 by kerem · 6 comments
Owner

Originally created by @fnino on GitHub (Oct 9, 2019).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/194

I downloaded latest release of shiori, latest golang compiler, and installed it natively on macos 10.13. Runs on commandline ok: can add, print, and serve. sqlite db is created ok. However, despite using the default login and passwork, i cannot get past the login screen on the webserver. Line 78 in handler-api.go gets executed alright, but no session is opened...

Originally created by @fnino on GitHub (Oct 9, 2019). Original GitHub issue: https://github.com/go-shiori/shiori/issues/194 I downloaded latest release of shiori, latest golang compiler, and installed it natively on macos 10.13. Runs on commandline ok: can add, print, and serve. sqlite db is created ok. However, despite using the default login and passwork, i cannot get past the login screen on the webserver. Line 78 in handler-api.go gets executed alright, but no session is opened...
kerem 2026-02-25 23:33:32 +03:00
Author
Owner

@fnino commented on GitHub (Oct 9, 2019):

Did the same on a linux box and it works ok....!

<!-- gh-comment-id:540054393 --> @fnino commented on GitHub (Oct 9, 2019): Did the same on a linux box and it works ok....!
Author
Owner

@RadhiFadlillah commented on GitHub (Oct 9, 2019):

Hi @fnino

Unfortunately, I don't have any MacOS machine to test it. Are there any error message in terminal or in web console ? And what is your browser ?

Thank you.

<!-- gh-comment-id:540217408 --> @RadhiFadlillah commented on GitHub (Oct 9, 2019): Hi @fnino Unfortunately, I don't have any MacOS machine to test it. Are there any error message in terminal or in web console ? And what is your browser ? Thank you.
Author
Owner

@StefanCohen commented on GitHub (Oct 9, 2019):

I don't know if it is related but the latest release prevents me from logging in with my regular username/password on OSX. Credentials are coming from Keychain, so no typos. Server running in docker on Ubuntu host.

<!-- gh-comment-id:540252080 --> @StefanCohen commented on GitHub (Oct 9, 2019): I don't know if it is related but the latest release prevents me from logging in with my regular username/password on OSX. Credentials are coming from Keychain, so no typos. Server running in docker on Ubuntu host.
Author
Owner

@nfam commented on GitHub (Oct 11, 2019):

@RadhiFadlillah on macOS, it works on Firefox but does not on Safari. I debugged and found the issue at

document.cookie = `session-id=${json.session}; Path=${document.baseURI}; Expires=${expTime}`;

I replaced ${document.baseURI} with /, and it worked.

Therefore, the problem should be: Path on Safari must a valid path (starting with / in URI spec); but document.baseURI is not since it starts with scheme and host.

<!-- gh-comment-id:540925146 --> @nfam commented on GitHub (Oct 11, 2019): @RadhiFadlillah on macOS, it works on Firefox but does not on Safari. I debugged and found the issue at ```js document.cookie = `session-id=${json.session}; Path=${document.baseURI}; Expires=${expTime}`; ``` I replaced `${document.baseURI}` with `/`, and it worked. Therefore, the problem should be: `Path` on Safari must a valid path (starting with `/` in URI spec); but `document.baseURI` is not since it starts with scheme and host.
Author
Owner

@RadhiFadlillah commented on GitHub (Oct 11, 2019):

Thanks @nfam 👍

@fnino could you check it out again ?

<!-- gh-comment-id:540945240 --> @RadhiFadlillah commented on GitHub (Oct 11, 2019): Thanks @nfam :+1: @fnino could you check it out again ?
Author
Owner

@fnino commented on GitHub (Oct 11, 2019):

Yes ! It works!! Thanks !

Fernando

On Fri, Oct 11, 2019 at 07:17:16AM +0000, Radhi wrote:

Thanks @nfam 👍

@fnino could you check it out again ?

--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/go-shiori/shiori/issues/194#issuecomment-540945240

--


Fernando NIÑO
LEGOS (UMR5566 CNES/CNRS/IRD/UPS) 18, Av. Edouard Belin
Tél: 05.61.33.47.38 31401 Toulouse Cedex 9

<!-- gh-comment-id:540961329 --> @fnino commented on GitHub (Oct 11, 2019): Yes ! It works!! Thanks ! Fernando On Fri, Oct 11, 2019 at 07:17:16AM +0000, Radhi wrote: >Thanks @nfam :+1: > >@fnino could you check it out again ? > >-- >You are receiving this because you were mentioned. >Reply to this email directly or view it on GitHub: >https://github.com/go-shiori/shiori/issues/194#issuecomment-540945240 -- ___________________________________________________________________________________________ Fernando NIÑO LEGOS (UMR5566 CNES/CNRS/IRD/UPS) 18, Av. Edouard Belin Tél: 05.61.33.47.38 31401 Toulouse Cedex 9
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shiori#144
No description provided.