-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Support "." char as user name for User/Orgs in RSS/ATOM/GPG/KEYS path ... #23874
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
74fedb2
User/Org RSS render description as per web too
6543 6a9e90c
Use WORKAROUND for https://github.com/go-chi/chi/issues/781
6543 df424ee
Merge branch 'main' into fix_22301
6543 a85694f
add test
6543 a486a46
adjust tests to new added user
6543 4ae6695
add warning
6543 0129cb1
drop "/{username}.png" in fafour of "/user/avatar/{username}"
6543 f515159
adjust tests
6543 4cc8623
Update models/user/user.go
6543 9d8cd97
fix
6543 96b1b30
check if context_service.UserAssignmentWeb()() did ctx.Written()
6543 1a78424
followup
6543 69cb014
Merge branch 'main' into fix_22301
6543 6b5f2dc
Update models/user/user.go
6543 808bacb
Merge branch 'main' into fix_22301
6543 89ce389
Merge branch 'main' into fix_22301
6543 8418d40
move username.png drop into #23908
6543 94c3ee3
Merge branch 'main' into fix_22301
6543 2e974f1
Merge branch 'main' into fix_22301
lunny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1220,3 +1220,41 @@ | |
repo_admin_change_team_access: false | ||
theme: "" | ||
keep_activity_private: false | ||
|
||
- | ||
id: 34 | ||
lower_name: the_34-user.with.all.allowedchars | ||
name: the_34-user.with.all.allowedChars | ||
full_name: the_1-user.with.all.allowedChars | ||
description: 'some [commonmark](https://commonmark.org/)!' | ||
email: [email protected] | ||
keep_email_private: false | ||
email_notifications_preference: enabled | ||
passwd: ZogKvWdyEx:password | ||
passwd_hash_algo: dummy | ||
must_change_password: false | ||
login_source: 0 | ||
login_name: the_34-user.with.all.allowedchars | ||
type: 0 | ||
salt: ZogKvWdyEx | ||
max_repo_creation: -1 | ||
is_active: true | ||
is_admin: false | ||
is_restricted: false | ||
allow_git_hook: false | ||
allow_import_local: false | ||
allow_create_organization: false | ||
prohibit_login: false | ||
avatar: avatar34 | ||
avatar_email: [email protected] | ||
use_custom_avatar: true | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 0 | ||
num_members: 0 | ||
visibility: 0 | ||
repo_admin_change_team_access: false | ||
theme: "" | ||
keep_activity_private: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
OK, I think this function should get moved out of web.go and into a named function within routers/web/user - and we should probably also update the
routing.UpdateFuncInfo(req.Context(), ...)
(Although we should do that without causing the funcInfo to be generated at run time.)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.
In the best case the upstream issue get solved ...
the question is if we wana have that workaround now in or engineer around it properly ... or wait for upstream
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 have personally given up on waiting for
chi
to fix any issues 😉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.
well that would mean we must fix and submit a patch upstream 😆