-
Notifications
You must be signed in to change notification settings - Fork 215
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
Fb users who don't have Fb usernames get Rstatus username of profile.php?id=<id> #52
Comments
That is horrific. Hm. |
Yeah also trying to view their profile by clicking the link throws 404 but you probably already knew that :D |
I've got a potential solution which I'll look into implementing next time I'm at my comp. Search the returned OAuth hash for the profile.php username. If found, concatenate the name and append _{id} So if John Doe signed up with profile.php?id=1354687 as their username, it would auto generate the username johndoe_1354687 to be used as their username instead. Thoughts? |
Also, I recognize this as a flaw of facebook's that if they fix it, removing profile.php in the future, this would then no longer be an issue. But until fb learns better OAuth practices, we have to hack it s bit. |
This would be ok if we allow users to change nicks but if not why alienate On Mar 26, 2011 12:12 PM, "Valarissa" < I've got a potential solution which I'll look into implementing next time Reply to this email directly or view it on GitHub: |
Simple answer: unique ID. We could just concatenate the name, and if that fails prompt the user for a new username, but anything is better than nothing at this point. As it stands it creates a broken user, who can't even view their own user page. |
Would it be fair to just ask for a username from fb users who come in with a On Mar 26, 2011 12:19 PM, "Valarissa" < Simple answer: unique ID. We could just concatenate the name, and if that Reply to this email directly or view it on GitHub: |
I vote 'ask for username' |
Ok, with that said, I will look into asking users for a username that come in with that profile.php business. I'm at my computer now, so I may be able to get a solution up and running pretty soon. |
I'd like to just ask for username, however, even if this is implemented is there an elegant way to handle existing users with broken usernames? |
Can we get a rake task to look at where username like '%profile%' and have |
Good question, is there a way to run a query against MongoDB to update the usernames? If not, is it possible to copy the information contained by a key to copy it elsewhere? I'm not exactly sure how NoSQL DBs really work. |
I just sent a pull request which should handle this nasty little problem. I will look into the ability to set a flag which will handle people who already have this issue. I think I'll be checking to see if the username is set to this bollocks. Problem is, because of the nature of this username, I might not be able to send people to the typical /users/{user}/edit url because of the fact that their lovely username makes that a bit difficult. Is there any possible way bounce to a one-off page so they can change their username themselves? Basically I'm thinking if I find that username string, I may be able to bounce them to an otherwise secure page (which checks to see if the person's username is defunct) that allows them to choose a username. This may take some time, but obviously would be worth it to save any status updates. |
Giving the #dickbar to facebook people Closed by dfdf4b5 |
I'd like to point out that this isn't resolved yet. First point of contention, as it stands, users with the profile.php username cannot actually access /reset_username , they get booted to / Furthermore, I've found that the reset_username business doesn't quite work. The /users/{username}/ page remains the same, a new one isn't created. This causes a problem where the profile.php?={id} people can't edit their info (as it remains the /users/profile.php?={id}/ which causes url errors, understandably), and no one can get to their users page. I'm looking into how to go about creating these new pages and removing the old ones, but sadly, it wasn't as easy as it seemed for this case. |
@Valarissa I've reopened this issue.
If you need help, we're all hanging out on IRC, freenode's #rstatus channel. Otherwise, one of us will get to it. Thanks for clarifying. |
Pull request with lovely unit tests and fully-up-to-date with master branch made. This should squash this bugger for good now. |
This appears to be completely resolved now. I believe this thread can be closed. |
Closing, some extra pull requests fixed this. |
See this update for a user whom this affects.
Caught just watching /home.
The text was updated successfully, but these errors were encountered: