Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forgejo doesn't show images #38

Closed
grosmanal opened this issue Jun 7, 2023 · 2 comments
Closed

Forgejo doesn't show images #38

grosmanal opened this issue Jun 7, 2023 · 2 comments

Comments

@grosmanal
Copy link
Collaborator

Images (i.e. png file) included in repositories are not shown to logged users.

How to reproduce:

=> if you're logged in, the image is broken (401 in the browser network console)
=> if you are a visitor (not logged in), you can see the image

@rodinux
Copy link

rodinux commented Jun 8, 2023

I can explicit more details about this.
it seems a bug related with Browser warning macaron_flash cookie

It is not only images but also every raw file view !

here it is a text .md clicking on raw view

Capture d’écran du 2023-06-08 18-56-39

there is an old issue similar on gitea there go-gitea/gitea#24062

some logs

/var/log/forgejo/forgejo.log

2023/06/08 18:55:58 ...s/auth/middleware.go:18:func1() [E] [6482081e] Failed to verify user: user does not exist [uid: 3, name: myuser, keyid: 0]
2023/06/08 18:56:01 ...s/auth/middleware.go:18:func1() [E] [64820821] Failed to verify user: user does not exist [uid: 3, name: myuser, keyid: 0]
2023/06/08 18:56:10 ...s/auth/middleware.go:18:func1() [E] [6482082a] Failed to verify user: user does not exist [uid: 3, name: myuser, keyid: 0]

/var/log/routeur.log

2023/06/08 18:56:10 [6482082a] router: completed GET /Linux07/Statistiques/raw/branch/main/organization.properties for 37.169.22.158:0, 401 Unauthorized in 1.5ms @ auth/middleware.go:16(auth.Auth)
2023/06/08 19:01:21 [64820961] router: completed GET /Linux07/Statistiques/raw/branch/main/organization.properties for 37.169.22.158:0, 401 Unauthorized in 1.5ms @ auth/middleware.go:16(auth.Auth)

If I disconnect from the portal sso, it works... I think is related also with the sso and the icon portal.js

@grosmanal
Copy link
Collaborator Author

The app packaging version 1.19.3-0~ynh3 (which fix authentication issues) seems to correct this point.

I close this issue because I cannot reproduce it since then.

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

No branches or pull requests

2 participants