#3850 NEEDS SCRIPT allura user projects issues with _ in username [24653]

v1.0.0
closed
General
2015-08-20
2012-03-05
Chris Tsai
No

https://sourceforge.net/apps/trac/sourceforge/ticket/24653

On my project site at http://sourceforge.net/p/feistymeow/wiki/Home/ I have used the `[[project_admins]]

wiki code, and this has produced https://sourceforge.net/u/fred-t-hamster/ as the project admin. However, that is a 404 dead link. I do have a user page of some sort at https://sourceforge.net/users/fred_t_hamster, but am missing that other version. I'm not sure why the underscores have been turned into dashes either.
It seems like possibly my newer style user page has become unlinked from my account somehow? Unless I need to create a user page by some other means than what I already have?
Given that the broken link is being automatically generated by sourceforge, it does seem like a bug or a confused database record or something like that.

I know we don't support underscores for new users, but there are a lot of older usernames that have underscores that perhaps we want to do something for?

Discussion

  • Anonymous - 2012-04-27

    Originally by: fred_t_hamster

    Is it possible we can fix this problem by moving my fred_t_hamster account over to a fred-t-hamster account?
    I have already created the latter account, but I'd like the older fred_t_hamster account's creation date and other stuff migrated to the new account, so I don't lose any "community prestige".
    Also, the fred-t-hamster account could receive project ownership for all my projects (hoople.org, hoople2, yeticode, and feisty meow).
    Does this seem like a workable way around this problem?

     
  • Jenny Steele - 2012-07-25
    • status: open --> in-progress
    • assigned_to: Jenny Steele
    • milestone: limbo --> forge-jul-27
     
  • Jenny Steele - 2012-07-25

    This is fixed for new users in [#4580], but needs a migration script written to fix existing users.

     
  • Jenny Steele - 2012-07-25
    • size: --> 1
     
  • Jenny Steele - 2012-08-14
    • status: in-progress --> code-review
    • qa: Tim Van Steenburgh
     
  • Jenny Steele - 2012-08-14

    Fixed in forge classic js/3850. To test:

    • In mongo, change some usernames to have bad chars like "_", ".", or "@" in them and note the sfx userid of those users
    • Run the script: allurapaste script /var/local/config/production.ini /var/local/forge-classic/scripts/fix-bad-char-user-projects.py
    • Check that for those users a project like /u/userid-1013/ now exists

    • summary: allura user projects issues with _ in username [24653] --> NEEDS SCRIPT allura user projects issues with _ in username [24653]

     
    • status: code-review --> validation
     
  • Jenny Steele - 2012-08-17

    This failed due to the random mongo id collision error there's another ticket for. In the meantime, I filed a siteops ticket to delete the partially created project it failed on and do a re-run. https://trac.geek.net/trac/siteops/ticket/51722

     
  • Dave Brondsema

    Dave Brondsema - 2012-08-20
    • status: validation --> closed
     
  • Dave Brondsema

    Dave Brondsema - 2012-08-20

    Script completed.

    For original support ticket, the link to his user-project now goes to http://sourceforge.net/u/userid-327677 which works correctly.

     

Log in to post a comment.