Dashboard view #1279
No reviewers
Labels
No Label
⌚ Major-release
⌚ Minor-release
⚔️ Wontfix
⚙️ CI
⛏️ Breaking
✨ Duplicate
❌ Invalid
❓ Question
❤️ Support
➡️ Frontport
➡️ Needs-frontport
🔙 Backport
💭 Brainstorming
🐛 Bug
🔭 Cannot-reproduce
🧺 Cleanup
🧾 Confirmed
💬 Discussion
📄 Documentation
🎯 Enhancement
🩹 External-dependecy
📱 F-droid
🎉 Feature
👋 Good-first-issue
🤾 Google-play
🔙 Has-backport
🚀 Improvement
🚨 Investigate
🌠 Long-term
🔙 Needs-backport
🧺 Needs-cleanup
📡 Needs-feedback
📈 Performance
📌 Priority-critical
📌 Priority-high
📍 Priority-low
📍 Priority-medium
🥑 Ready
🪒 Refactor
🔙 Regression
📸 Release
🔒 Security
💡 Suggestion
🧪 Testing
🌐 Translation
💻 UI/UX
🪜 Upstream
🟦 Website
🙇♂️ Needs-help
🛰️ API-dependency
🛡️ Blocked
🏗️ Build
🗒️ Changelog
🗄️ Repository
🗓️ Summary
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitnex/GitNex#1279
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "activity-view"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Closes #1231
Closes #1280
Closes #1295
Closes #1298
Issue #1280 is still unresolved. Check the documentation on
sudo
again.Direct Documentation Links:
v1.19 Documentation
v1.20.3 Documentation
v1.21-Dev Documentation
Direct Documentation Quote:
Edit: This bug will obviously only affect first-time logins with GitNex with Token creation via Username/Password because that's the only time your code has added
sudo
(and shouldn't).I have only one question for you, have you tested it against 1.19 and 1.20, beside just reading documentation?
The patch here will work for 1.19 and 1.20.
The documentation alone is proof enough that it never should've been done to begin with.
Great, you have the fork. Remove or add anything you like based on documentation. Make it fool proof with documentation and never begin with testing. Just read documentation and the job is done.
Due to GitNex wanting to use a token and old tokens not having 'all', I logged out, which required GitNex to create a new token for login. That's when the testing came after 403/401 on 1.20.2 and then 1.20.3 (gave up and used browser during).
https://github.com/go-gitea/gitea/pull/25156 Added in 1.19.4 as a token scope, immediately removed same day but after 1.19.4's release, an error not caught quickly enough, the fix to remove sudo as a token only made it officially into 1.20
18de83b2a3
. The only version it was ever even temporarily applicable for was 1.19.4, no other version. Headers and Parameters worked for 1.19 withsudo
, just as it continues to, so there is no need to keep the token sudo.Your app, of course. I decided to make it easier for other users to not need a patched APK by installing a proxy to strip the token scope, transparently allowing all versions to work.
Prior to Gitea version
1.19.x
, adding scopes was unnecessary. Scopes such asall
andsudo
were introduced in version1.19
. In version1.20
, they made it mandatory, meaning that when creating a token, you will have to specify the scope(s).Starting with version
1.20
,sudo
is no longer required. However, for version1.19
, it is also not mandatory. You might wonder why GitNex still uses it for version1.19.x
. This is because there are Admin endpoints that require thesudo
scope to access them. Another option, which I haven't tried yet, is to add it as a query parameter. However, the CI is broken at this point, and I currently don't have access to the latest API specification. Nonetheless, addingsudo
for version1.19
does not block any logins, but removing it would prevent Admin access to certain endpoints that GitNex needs.So, whether you add it as a scope or a query parameter,
sudo
is still necessary for GitNex, at least for version1.19
. Using it as a scope is the simpler option and doesn't disrupt anything.The patch I applied only adds
sudo
to version1.19
. Therefore, all versions should work as expected from this point onward.I have a development setup for versions
1.18.x
,1.19.x
, and1.20.x
, and I thoroughly test everything with all versions, including multiple login methods, to ensure that everything functions as it should. I understand that login is crucial, but there are other considerations, as mentioned above. I don't solely rely on documentation; I work based on the available API specification.Regarding your Pull Request (PR), which you closed without further discussion, I had suggested adding conditions and testing it. However, you chose to close it. Simply removing
sudo
is not a solution in this case; testing against the last two stable versions of Gitea is essential for GitNex.I hope this explanation is sufficient to conclude this discussion.
And yet 403, 401. You might patch-job 1.19 for Username/Password, but just implementing parameter/HEADER (very easy...) alone would suffice for all versions sudo is applicable for, and it'd be a genuine proper fix. We have different coding ideologies in this regard. Cheers. Too bad adding an instance with token is broke, either way.
sarcasm enough. Good. And yet, I apply fixes with my busy time and test WHEN the need arise.
Again, going back to square one.
So everything result in broke stat, amazing.
Maybe. To everyone their own.
Side note: As you are a developer and debugging it, let me give you a hint. Install both 1.19 and 1.20 on your local machine. Fire up AS, and open logcat. Enable Retrofit logging in
clients/RetrofitClient.java
. Hope that gives you a lot of clues.One more thing. We are testing against not just one app like GitHub, but different users different configurations. If you understand this, you will understand everything here.
Wasn't sarcasm.
No, you're already at square one...
No, your version won't work with tokens either. What are you talking about?
I did, despite hating logcat, that's what helped lead to
sudo
being the problem, though the biggest help was Gitea's own logging and source.You've fought tooth and nail for something you were wrong about and even in the end have made poor judgment regarding how to address it, it's not worth it to continue pointing things out. Good luck with GitNex, I hope everyone can use it and enjoy it.
Seriously, you can't even make it work, with or without
sudo
, for your own self, and you're going out to war with others for no apparent reason. Almost all your replies have some sort of sourness in them (some edited, but the discord channel has it). If you have personal problems, this is not the place to use them.The users have seen your replies and know what kind of attitude you showed to everyone by shoving remove sudo down their throat in every comment.
They said it's working for them this way or that way, and you're still forcing your stuff on them. Please stop with that. Hoping you will leave this community once and for all.
I will lock this thread; there are other stuff in life to take care of beside add
sudo
and removesudo
.[WIP] Dashboard viewto Dashboard view