Bug 360589 - Kdevelop fails authentication and Crashes when tried to integrate with GitHub
Summary: Kdevelop fails authentication and Crashes when tried to integrate with GitHub
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kdevelop
Classification: Applications
Component: Project provider: Github (show other bugs)
Version: 4.90.90
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-16 02:38 UTC by pgundlupetvenkatesh
Modified: 2017-04-07 12:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
ScreenShot evidence (990.50 KB, application/msword)
2016-03-16 02:40 UTC, pgundlupetvenkatesh
Details
KDevelop_github_AuthErrors (1.85 KB, text/plain)
2016-03-16 02:41 UTC, pgundlupetvenkatesh
Details
DebugView_log_and_screenShotEvidence (181.99 KB, application/x-zip-compressed)
2016-03-17 20:15 UTC, pgundlupetvenkatesh
Details
Another DebugView Detailed (162.57 KB, text/plain)
2016-03-17 20:25 UTC, pgundlupetvenkatesh
Details

Note You need to log in before you can comment on or make changes to this bug.
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.