Summary: | bit.ly URL shortening broken login | ||
---|---|---|---|
Product: | [Applications] choqok | Reporter: | Matej Susta <bugs> |
Component: | general | Assignee: | Mehrdad Momeny <mehrdad.momeny> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | NOR | ||
Version: | 1.1 | ||
Target Milestone: | --- | ||
Platform: | Debian unstable | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | bit.ly config |
Description
Matej Susta
2011-09-10 18:48:35 UTC
I can't exactly program in C/C++, but I think I've found out the responsible line in: sourcepkg/plugins/shorteners/bit_ly/bit_ly_config.ccp This seems to be regexp for login: QRegExp rx( "([a-z0-9]){4,32}", Qt::CaseInsensitive ); And this for API key: rx.setPattern("([a-z0-9_]){1,40}"); So basicly, isn't the underscore missing in the first line? :) Seems that there is something more fishy going around - I've changed the regexp, recompiled and even after that I can't input it in configuration! However, in the process I've found a quick&funny workaround - just edit the .kde/share/config/choqokrc file and fill in this section: [Bit.ly Shortener] api_key= domain=bit.ly login= And enjoy! Is the underscore in your login name? Are you sure? I just tried to create an account with mtux_test name, and it says that: Your username can contain only letters and numbers. It must be 4-32 characters in length. And yes, there's an underscore in your API key, and there's no problem on adding it and setting up your account (I just did it!) Ok, little bit of misunderstanding here. There are actually 4 pieces of login information: login, password, API username and API key. To use the bit.ly module, you need to enter the API username + key. However, the API username is different than the username. You can get those on the "your_api_key" page on bit.ly. For example: username: foobar API username: o_3ubqglab1 API key: R_blahblahblah So yes, there is actually underscore in username, which is used for API calls. I tried to use service username (eg. foobar) instead of API username in the input, but this fails validation. Created attachment 65075 [details] bit.ly config Here is what I see in https://bitly.com/a/your_api_key I don't what are you talking about :/ Git commit c6ff03e4ce3d83bd767a5afdbd0deda135d762ae by Mehrdad Momeny. Committed on 01/11/2011 at 12:47. Pushed by momeny into branch 'master'. BUG:281764 bit.ly generated login names have underscore! when you sign up with twitter account. M +1 -1 plugins/shorteners/bit_ly/bit_ly_config.cpp http://commits.kde.org/choqok/c6ff03e4ce3d83bd767a5afdbd0deda135d762ae So it was because of twitter signup? I didn't see that, sorry. Anyway - thanks! :) |