gitea_ynh icon indicating copy to clipboard operation
gitea_ynh copied to clipboard

Browser warnings related to macaron_flash cookie

Open rodinux opened this issue 1 year ago • 3 comments


Describe the bug

When I sign in (by LDAP) I can't see a raw file, nor an image

Context

  • Hardware: VPS bought online
  • YunoHost version: 11.1.20
  • I have access to my server: *Through SSH | through the webadmin *
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: yes
    • If yes, please explain: I have try also install forgejo_ynh package on another domain. Since I have no access at admin page of gitea also. I have also try install another Gitea but the same issue still here.

Steps to reproduce

  • If the error occurs in your browser, explain what you did:
    1. Go to 'gitea.mydomain.tld'
    2. *Click on ' anyone repo'
    3. click on button link 'raw'*
    4. See error 'Verify'
    5. on console have an error 'Le cookie « macaron_flash » a été rejeté car il a déjà expiré.' 6.Images on a repo also are like broken links

Expected behavior

See a raw file without need be disconneted or remove cookies and datas from my browser

Logs

/var/log/gitea/router.log

2023/06/08 18:01:55 [6481fb73] router: completed GET /Linux07/Documentations-Linux07/commit/9f8bd64e84513baf1fe50535418cf06b830ff21b?style=split&whitespace=ignore-change for 185.191.171.6:0, 200 OK in 45.7ms @ repo/commit.go:254(repo.Diff)
2023/06/08 18:03:08 [6481fbbc] router: completed GET /Services-Linux07-Technique/Configs_Apps/raw/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxxxx/opensondage.md for 37.169.22.158:0, 401 Unauthorized in 2.3ms @ auth/middleware.go:16(auth.Auth)
2023/06/08 18:03:27 [6481fbcf] router: completed GET /Services-Linux07-Technique/Configs_Apps/raw/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxxxx/opensondage.md for 37.169.22.158:0, 401 Unauthorized in 1.9ms @ auth/middleware.go:16(auth.Auth)

/var/log/gitea.log

2023/06/08 18:07:53 ...s/auth/middleware.go:18:func1() [E] [6481fcd9] Failed to verify user: user does not exist [uid: 1, name: myuser, keyid: 0]
2023/06/08 18:08:07 ...s/auth/middleware.go:18:func1() [E] [6481fce7] Failed to verify user: user does not exist [uid: 1, name: myuser, keyid: 0]

rodinux avatar Jun 08 '23 16:06 rodinux

Sreenshots

cookie-macaron Capture d’écran du 2023-06-08 18-10-54

rodinux avatar Jun 08 '23 16:06 rodinux

Perhaps also related to another issue I want post also about admin page disappear... there is an old issue similar on gitea there https://github.com/go-gitea/gitea/issues/24062

rodinux avatar Jun 08 '23 16:06 rodinux

also if I disconnect from the portal sso, immediatly the image or raw is reload ! it seems related to the sso portal.

rodinux avatar Jun 08 '23 16:06 rodinux