? Success

User tests: Successful: Unsuccessful:

avatar jissereitsma
jissereitsma
10 Apr 2015

This is kind of bad ass, but needed. During numerous PBF sessions, we encountered issues when people were using the PatchTester component in combination with GitHub credentials that contained an at-sign (@), so either an username or password that contains the at-sign. When the component fetches the list of issues from GitHub, the username and password are appended to the URL in the form "http://USERNAME:PASSWORD@URL.com". However, because the at-sign serves as separator, the URL is determined from the first at-sign that is encountered. This results in authentication failure.

The solution of this patch is childish but simple: Replace the at-sign in the credentials with an URL-encoded version. Note that this fix is only needed for the at-sign - no other characters are effected. Also, Basic Authentication in GitHub is until now the only place where this issue was encountered. So this patch only fixes that area.

How to test the problem:
1) Install the PatchTester component.
2) Reset your GitHub username or password to contain an at-sign (@)
3) Configure PatchTester component with your credentials
4) Use the "Fetch Data" button to connect

Step 4 should give you an error in the browsers Error Console saying "Bad Credentials". (That the component is not properly showing this error is another unrelated issue.)

Next, apply the patch and test again. Step 4 should now succeed.

avatar jissereitsma jissereitsma - open - 10 Apr 2015
avatar joomla-cms-bot joomla-cms-bot - change - 10 Apr 2015
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 10 Apr 2015
Labels Added: ?
avatar crommie
crommie - comment - 10 Apr 2015

Tested according to instructions. Thumbs up!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6734.

avatar crommie crommie - test_item - 10 Apr 2015 - Tested successfully
avatar oorzaak
oorzaak - comment - 10 Apr 2015

While testing we ran into a of a kind of deadlock situation, as we were testing the testing software itself. But as we were in the same room with Jisse, the deadlock was solved quickly. And, yes, the issue is solved as well :-)


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6734.

avatar oorzaak oorzaak - test_item - 10 Apr 2015 - Tested successfully
avatar zero-24
zero-24 - comment - 10 Apr 2015

@jissereitsma i have just send you a PR to fix the Travis issues :smile: jissereitsma#1

avatar zero-24 zero-24 - change - 10 Apr 2015
Category Libraries
avatar yireo yireo - reference | - 13 Apr 15
avatar yireo
yireo - comment - 13 Apr 2015

@zero-24 many thanks. The JoomlaDay Netherlands weekend was over in the wink of an eye, and I had no time to fix this yet. And during the PBF itself, I only had a lousy laptop without proper IDE and dozens of people asking me questions :) Many thanks for the PR, I checked it and submitted it.

avatar brianteeman
brianteeman - comment - 4 May 2015

Setting RTC - thanks


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6734.

avatar brianteeman brianteeman - change - 4 May 2015
Status Pending Ready to Commit
avatar brianteeman brianteeman - change - 4 May 2015
Labels Added: ?
avatar brianteeman brianteeman - change - 4 May 2015
Labels Added: ?
avatar mbabker
mbabker - comment - 4 May 2015

I think this is something we should do in the JUri class chain as presumably other services could hit the same issue. At least for our API connectors, it would create a global fix if any still accept HTTP authentication.

avatar roland-d
roland-d - comment - 4 May 2015

@jissereitsma Could you look into the proposal of Michael? So it can be fixed globally?

avatar zero-24 zero-24 - change - 2 Jul 2015
Milestone Added:
avatar zero-24 zero-24 - change - 2 Jul 2015
Milestone Added:
avatar zero-24 zero-24 - close - 12 Jul 2015
avatar Kubik-Rubik Kubik-Rubik - change - 12 Jul 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-07-12 20:05:19
Closed_By Kubik-Rubik
avatar Kubik-Rubik Kubik-Rubik - close - 12 Jul 2015
avatar Kubik-Rubik Kubik-Rubik - close - 12 Jul 2015
avatar Kubik-Rubik
Kubik-Rubik - comment - 12 Jul 2015

Thank you @jissereitsma! Merged with commit: ac3bd8c

avatar roland-d
roland-d - comment - 12 Jul 2015

I don't think this should have been merged based on the feedback by @mbabker. It is still waiting for s reply from Jisse.

avatar Kubik-Rubik
Kubik-Rubik - comment - 12 Jul 2015

I know, once we've fixed it globally, then we'll of course remove this specific case. At least this should solve the issue for the Patchtester for now.

avatar jissereitsma
jissereitsma - comment - 13 Jul 2015

Personally I am happy that this PR is merged in the first place - this fixes an awkward thing for people right away. But yes, the comments of @mbabker make sense, the location of this fix could be improved. I'll keep this issue open for myself so I'll look into this.

avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment