Bug 265219

Summary: Yourls Plugin is broken - claims bad username/passowrd
Product: choqok Reporter: Sandy Dolphinaura <sandy>
Component: generalAssignee: Mehrdad Momeny <mehrdad.momeny>
Status: RESOLVED FIXED    
Severity: normal CC: bmarwell+kdebugtracker, ingo.ebel, jpope, scarpino, tobias
Priority: NOR    
Version: 1.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 1.5
Attachments: Dirty patch to make it work

Description Sandy Dolphinaura 2011-02-02 19:21:33 UTC
Version:           1.0 (using KDE 4.6.0) 
OS:                Linux

After setting the URL shortener to "Yourls", Inputting the YOURLS API url, username, and password, Choqok would not shorten the URL, claiming "Invalid Username or Password".

The username/password combination is correct, I used the same combination to login to the YOURLS control panel

Reproducible: Always

Steps to Reproduce:
1. Set url shortener to "yourls"
2. Enter in API URL
3. Enter in username/password
4. Shorten Link

Actual Results:  
KDE showed a notification saying "invalid username or passowrd"

Expected Results:  
URL should have been shortened
Comment 1 tobias 2011-10-18 11:44:21 UTC
I confirm this bug on version 1.1 of Choqok
It does not send the password in the GET request, the field is simply empty (I checked with wireshark)
Comment 2 bmarwell+kdebugtracker 2012-03-08 10:51:26 UTC
Better use a signature token. And I can confirm, it won't work as it is. I checked the server log.
Comment 3 bmarwell+kdebugtracker 2012-03-08 11:30:00 UTC
Created attachment 69364 [details]
Dirty patch to make it work

The "password" variable didn't seem initialized. I copied the init function code to just before the variable is being used.

Works for me, but is not to be merged ;-)
Comment 4 jpope 2013-12-16 04:48:01 UTC
The 'dirty patch' works for me. First time I've seen the yourls plugin actually work. w00t! ;)
Comment 5 Andrea Scarpino 2014-10-28 09:14:05 UTC
*** Bug 336030 has been marked as a duplicate of this bug. ***