-
-
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
Cannot change milestone or assignee in 1.1 #1271
Comments
I have tested on https://try.gitea.io, I can change them, but maybe it's web browser refresh problem? |
I try on try.gitea.io and I have the same problem (repo test-bug for user flomine). |
I did all my tests on try.gitea.io I deactivated all modules in firefox and restart firefox -> same problem I clear firefox cache -> It works at the begining then it starts to have this refreshment problem. But the difference is that now it works 1 time on 5 or 6 times milestone changes. I also tried with Firefox 51.0.1 on windows 7. I also notice this bug but it seems to appear less often. On chromium, I tried more than 10 times and I never experienced this problem. I don't know if is is related but after emptied firefox's cache, it gave me error 500. |
Shouldn't the milestone be 1.1.x? It's quite a critical regression IMHO. |
My test server is working fine. https://staging.geek1011.net The only difference is I have applied the openid patch. |
It will be backport v1.1.x. All bugs should be fixed in v1.2 and backport if needed to stable versions. |
Added the backport-label :) |
Interesting, it works fine in Chrome, but not in Firefox 😂 |
fixed by #1728 |
I update to last version (4a3f404) and I still have the issue. I tried to clear cache.. Still the same :-( |
How can I help to give more info about this issue ? |
@flomine could you make some repos or issues which will fail on https://try.gitea.io and paste the link here? |
here the issue to test. I cannot set a milestone with firefox. |
Same problem for Assignee. But it works for label. |
But have tried https://try.gitea.io/flomine2/test-_1271/issues/1 it works well on firefox on macOS |
it works with firefox on windows 7 but not with firefox on linux(52.1.0 ESR 64bits or 53.0.3 64bits both on archlinux) . It works with chromium on linux. |
So actually here are my test results: |
Do you have any error in your browser console ? (Ctrl + Shift + K on firefox) |
only css errors and warnings. |
If you open labels/milestones setting page does it show correctly or do you get 404 page? I have such situation for migrated gogs to gitea server. And then also labels/milestones/assignees can not be changed. |
no everything is ok on setting page. No 404 page. |
before #1728, bug was present under windows and Linux even without Firefox add-ons. |
Apparently the POST request to It'd be great if someone with better JS frontend debugging skills could take a look how the control flow differs with an add-on enabled vs. an add-on disabled. The issue is really easy to reproduce, just look at the particular add-on issues linking to #2021. |
Running Fx 54.0. Disabling PB and Social Disconnect does not fix this issue 🙄 |
@bkcsoft Can you try again using a new Firefox profile (e.g. by using |
EDIT: not it 🙄 |
If this fixes the issue - great. Nevertheless I ask myself why this issue didn't appear without certain addons being enabled and whether that's a valid behaviour (comparable to the old-days quirks mode) |
@bkcsoft As you seem to be much fitter than I in frontend JS debugging, can you find out how the control flow/ code path differs in a fresh profile (given the issue doesn't appear there) and in a profile where this issue appears? |
Well, it's a code-issue, it reloaded the page before it POSTed 😂 https://gist.github.com/bkcsoft/4b655d32f969ff905926bfedfb5f6f97 <-- patch Buuut now I have to press "unassign" twice because the first time it throws a 500 error 😂 https://gist.github.com/bkcsoft/e934aacc064fb767a304db53da2ea128 <-- errorlog |
In a Firefox with a fresh profile or when using Chromium, the XML http request changing the assignment is sent but the script doesn't wait for a response and just reloads the page, nevertheless having changed the assignment.
So at least in the "working" condition that's not true. It sends the POST XHR but doesn't wait for the response and instead reloads. (Still weird behaviour IMHO) |
As @schmittlauch said this is because XHR is not finished before page reloads. I was reviewing the code and as function selectItem is only used for milestone and assigned the code could be changed to do a location.reload after issuing a updateIssuesMeta by sending an afterSuccess call back. |
location.reload was being called when the related dropdown was hidden, even if a request initiated before to update this value hadn't finished. This caused troubles on Firefox.
I'm running into this issue on v1.2.0-rc3 and https://try.gitea.io The first time I try to change the assignee it gives a 500 error. If I click on the same assignee again it works. Version 62.0.3202.29 (Official Build) beta (64-bit) |
[x]
):https://try.gitea.io seems offline. It returns 404
Description
Since update from 1.0.2 to 1.1.0, I cannot change (or assign) any milestone to any issue.
It goes back to the previous state. Nevertheless it works for labels. Same problem for assignee.
I don't have anything in log file.
How can I investigate ?
The text was updated successfully, but these errors were encountered: