Bug 360589

Summary: Kdevelop fails authentication and Crashes when tried to integrate with GitHub
Product: [Applications] kdevelop Reporter: pgundlupetvenkatesh <pgundlupetvenkatesh>
Component: Project provider: GithubAssignee: kdevelop-bugs-null
Status: RESOLVED WAITINGFORINFO    
Severity: normal    
Priority: NOR    
Version: 4.90.90   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Attachments: ScreenShot evidence
KDevelop_github_AuthErrors
DebugView_log_and_screenShotEvidence
Another DebugView Detailed

Description pgundlupetvenkatesh 2016-03-16 02:38:37 UTC
Platform: MS Windows
OS: Windows 8.1 x64bit
KDevelop version: 4.90.90
KDE Framework: 5.18.0
Qt: 5.5.1

Error: Though a valid username and password was provided, KDevelop says "Authentication failed,! Please, try again"

Error: KDevelop crashes and prompts the user to forcefully close it.

Please view the attached evidences for the above steps. and the error log file as well for the program crash.

Reproducible: Always

Steps to Reproduce:
Steps to reproduce:
1. Open KDevelop, navigate to Help menu > Loaded Plugins
2. Make sure "GitHub Provider" plugin is loaded. Close the window.
3. Navigate either to Project menu > Fetch Project option or Fetch Project button on the dashboard.
4. Make sure Source drop-down is GitHub,  within source section click the 'Github account Configuration' icon. Then click on Authorize button.
5. Enter a valid github username and password, click OK.

Error: Though a valid username and password was provided, KDevelop says "Authentication failed,! Please, try again"

6. In the search field, enter a valid github username. Select either of the repositories, and click "Get" button.

Error: KDevelop crashes and prompts the user to forcefully close it.

Please view the attached evidences for the above steps. and the error log file as well for the program crash.

Actual Results:  
1. Authentication failed,! Please, try again

2. KDevelop.exe has stopped working. A problem caused the program to stop working correctly Windows will close the program and will notify you if a solution is available.

Expected Results:  
Should be able to pass through the authentication and get all the necessary artifacts from github.

Attached error log files and screenshot evidences.
Comment 1 pgundlupetvenkatesh 2016-03-16 02:40:06 UTC
Created attachment 97920 [details]
ScreenShot evidence
Comment 2 pgundlupetvenkatesh 2016-03-16 02:41:34 UTC
Created attachment 97921 [details]
KDevelop_github_AuthErrors
Comment 3 pgundlupetvenkatesh 2016-03-16 04:01:24 UTC
Attachment "KDevelop_github_AuthErrors" is of application's event log. I couldn't find any log files for KDevelop.
Comment 4 Kevin Funk 2016-03-16 09:12:37 UTC
Can't reproduce on Linux. Will need to check.

@Pratik: You could try installing DebugView to monitor the KDevelop output (https://technet.microsoft.com/en-us/sysinternals/debugview.aspx). Start DebugView, then start KDevelop, make it crash. Then please post the outputp.

Thanks a lot for your detailed bug report!
Comment 5 pgundlupetvenkatesh 2016-03-17 20:15:14 UTC
Created attachment 97947 [details]
DebugView_log_and_screenShotEvidence

@Kevin, Thank you for DebugView.
It seems that Git and GitHub plugins are not getting loaded to Help > Loaded Plugins menu (Screenshot evidence attached) after adding those from Settings > Configure KDevelop preferences.
DebugView log is attached as well.
Comment 6 pgundlupetvenkatesh 2016-03-17 20:25:34 UTC
Created attachment 97949 [details]
Another DebugView Detailed

Here's another detailed log of debug view.
Comment 7 Kevin Funk 2016-11-17 23:49:28 UTC
Git commit cc395b8fb25d6b3b7a6e8a3afa05eac51e91ae05 by Kevin Funk.
Committed on 17/11/2016 at 23:48.
Pushed by kfunk into branch '5.0'.

GitHub: Improve authentication handling

Make sure we create a unique token name per KDevelop session.

Initial patch by David Oldford, thanks! Split up the patch; bug fix goes
to 5.0, changes to user-visible strings go to master.
Related: bug 372144
FIXED-IN: 5.0.3

M  +3    -1    providers/ghprovider/ghdialog.cpp
M  +1    -1    providers/ghprovider/ghdialog.h
M  +16   -4    providers/ghprovider/ghresource.cpp
M  +5    -2    providers/ghprovider/ghresource.h

http://commits.kde.org/kdevelop/cc395b8fb25d6b3b7a6e8a3afa05eac51e91ae05
Comment 8 Kevin Funk 2016-12-13 06:58:58 UTC
@Reporter: Please try again with 5.0.3.