Project

General

Profile

Actions

Bug #4802

closed

Number based usernames break SEF pathing

Added by krileon over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
24 October 2014
Due date:
% Done:

100%

Estimated time:

Description

When SEF is enabled and the name is nothing but numbers it breaks reversing the URL. The reason is it thinks the number is a user_id, but it's actually the username

https://www.joomlapolis.com/forum/153-professional-member-support/226924-version-201-response-after-selecting-a-user-in-a-list-qthis-profile-does-not-exist-or-is-no-longer-availableq

Actions #1

Updated by krileon over 9 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Fixed in MR !637

Numeric usernames will not SEF now. It will instead just use the user id. The reason for this is reversing numeric username requires a DB query on the numeric value on reversal. This means if the value actually is a user id it costs a query for no reason in addition to risking matching a user by mistake when it actually is just the id. For example if the username is 123 and you're trying to access the profile of the user with id 123 and their username is for example Bob you have a serious issue of determining who you're trying to access.

Actions #2

Updated by beat over 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF