Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Create an alias for the USERs:
- user/[user:uid] -> user/[user:name]
- Unchecked 'Skip administration paths from sub-path processing'.
Receive access denied when accessing:
user/testuser/edit
The following works OK though:
user/3/edit
Other links work OK though.
Comment | File | Size | Author |
---|---|---|---|
#12 | subpathauto-user_access-1851102-12.patch | 953 bytes | drupov |
Comments
Comment #1
polskikrol CreditAttribution: polskikrol commentedThis appears to work fine in 7.x-1.2. Perhaps its a regression?
Comment #2
mbrakken CreditAttribution: mbrakken commentedI'm also experiencing this problem with 7.x-1.3. In my case, user/%/edit and user/%/contact both return with access denied. #1911392: "You are not authorized to access this page" when "Skip administration paths from sub-path processing" is checked off is a duplicate of this issue.
The only differences I see between 1.2 and 1.3 is the one introduced via #1691054: Sub-pa shouldn't recursively check existing aliases. Commenting out the three lines introduced in that patch solve this issue for me.
Comment #3
rooby CreditAttribution: rooby commentedI can confirm that using 1.2 seems to work fine. But with 1.3 it doesn't (I have seen it work intermittently with 1.3).
Comment #4
dixon_We're also experiencing the same problem with 7.x-1.3 using user aliases.
Also, I'm bumping to major since it breaks every user edit link when using user aliases.
Comment #5
almc CreditAttribution: almc commentedAlso get 'Access Denied' for user/user_name/track link at My account->Track (when tracking activated). The tracker is shown though for the link user/user_id/track manually entered in the address bar.
Other tabs for My account are accessible, although alias is not appearing for user/user_id/edit link. At the same time it's correctly appearing for the links such as user/user_name/relationships.
Comment #6
shavonnbrown CreditAttribution: shavonnbrown commentedI'm having trouble with it with 1.2- only with the users.
Comment #7
brad.curnow CreditAttribution: brad.curnow commentedHi all,
Thanks for your work on this module. Just confirming that I have the same issue with 1.3 and .dev, but not with 1.2.
Cheers!
BC
Comment #8
zanselm5 CreditAttribution: zanselm5 commentedHas this problem been solved yet. I've been search forums for a solution forever and have had no luck. This is a major part of the website I'm building so that it will link to a profile edit page per user.
%user is returning 'access denied'
Comment #9
drupov CreditAttribution: drupov commentedIn my case with subpathauto 1.3 enabled I cannot save menu links with user/% as the path, as I get an error like:
"The path 'user/register' is either invalid or you do not have access to it."
Something similar is reported in https://www.drupal.org/node/1836622
The misbehaviour is caused by the patch from https://www.drupal.org/node/1691054
Comment #10
drupov CreditAttribution: drupov commentedHere's a patch that takes a more leaner approach than the patch from https://www.drupal.org/node/1691054 by constructing the router_item from parts of menu_get_items necessary to get the 'href' of the current router item for comparison.
Please review. Thanks!
Comment #12
drupov CreditAttribution: drupov commentedTests failed, next try.
Comment #13
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedin conflict with infinite_loop-1790508-15.patch http://drupal.org/node/1790508
Comment #14
dsuguy CreditAttribution: dsuguy commentedI applied the patch but am still getting the Access Denied error.
Comment #15
kopeboy CreditAttribution: kopeboy commentedSomethign weird happened.
I was using user/1 > utente/[name]
Today I decided to change it to > user/[name] and every user edit page is Access denied. Even if I use the core path user/1/edit now it's denied! WTF? We cannot use "user" as a custom alias?