-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Don't use sub-path twice for manifest #14427
Conversation
Thanks for this PR! It is failing on the CI due to needing to run |
modules/setting/setting.go
Outdated
GracefulHammerTime time.Duration | ||
StartupTimeout time.Duration | ||
StaticURLPrefix string | ||
StaticURLPrefixManifest string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, adding a special var only for manifest is the right way to fix it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to change it! I do not know anything about go and my heart isn't connected with this pull request. All I know is that it fixes the issue for me. And I know it is not very nicely done. So: You surely don't offend me if you fix it differently
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First thanks for the pull, I think we can evolve your pull ;) together ...
I would wait until #14293 got merged ... |
Does someone know why the fix only works when using this ordering:
When I change the ordering, the manifest contains the wrong urls, those based on StaticURLPrefix:
|
Hmm if this is really fixed by reordering statements, there must be another underlying issue that causes the variable to go wrong somewhere else. It must only be assigned once. |
Sorry, maybe my explanation is misleading. The issue is caused by this:
It makes "StaticURLPrefix" an URL that contains the sub-path twice, i.e. "https://mygitea.tld/gitea/gitea". But only it is it called before |
could be #12999 an alternative for this pull?!? |
@uli-heller would be nice |
thanks for your work & testing. I'll close this since #14827 did catch the real issue behind it :) |
@6543 : Thx a lot! |
Fixes #14422