Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
111 stars 72 forks source link

Update Gitea to v1.22.xx #12780

Closed mlqn closed 2 months ago

mlqn commented 3 months ago

Description

Our current version of Gitea is v1.21.10. We can't update it to v1.21.11 as it introduces a bug that causes the user to not be redirected to the dashboard after logging in, as the redirect_to parameter is ignored.

This seems to be fixed in the following version v1.22.xx, but this new version introduces a new restriction that prevents redirecting the user outside of Gitea. A solution that could work would be to redirect the user to a "fake" URL within Gitea and use this URL in Nginx to redirect the user to the dashboard.

Additional Information

No response

Tasks

No response

Acceptance Criterias

No response

mirkoSekulic commented 2 months ago

This will be solved under: https://github.com/Altinn/altinn-studio/issues/12918 I've tried the proposed solution for version 1.21.xx and it didn't work. I can try it for 1.22.xx to see if it will work.

mirkoSekulic commented 2 months ago

@mlqn It doesn't work in 1.22.0 either. I've tried login to URL http://studio.localhost/repos/user/login?redirect_to=/repos/fake-url and the redirect we're getting from gitea is "/repos".

wrt95 commented 2 months ago

This will be solved under: https://github.com/Altinn/altinn-studio/issues/12918