Public bug reported:

WHen trying to create a weibo account-plugin, an access_token is
received, but failed to parse, as it shows up with CONTENT_TYPE of
text/plain even though it's json

sendOAuth2PostRequest : Query string =   QUrl( 
"?grant_type=authorization_code&code=10c3826cc5a2bc8f41944e11b4cb4c32&redirect_uri=https://wiki.ubuntu.com/";
 ) 
syslog:Jan 28 06:28:01 ubuntu-phablet signonpluginprocess[9658]: 
../../../../src/remotepluginprocess/remotepluginprocess.cpp 496 startTask 
operation is completed
syslog:Jan 28 06:28:02 ubuntu-phablet signonpluginprocess[9658]: 
base-plugin.cpp 133 onPostFinished : Finished signal received
syslog:Jan 28 06:28:02 ubuntu-phablet signonpluginprocess[9658]: 
oauth2plugin.cpp 428 serverReply : 
"{"access_token":"2.00xzUlGB0tpiMK297ffd7bd8xynhbD","remind_in":"131519","expires_in":131519,"uid":"1016111425"}"
syslog:Jan 28 06:28:02 ubuntu-phablet signonpluginprocess[9658]: 
oauth2plugin.cpp 432 serverReply : QVariant(int, 200)
syslog:Jan 28 06:28:02 ubuntu-phablet signonpluginprocess[9658]: 
oauth2plugin.cpp 466 serverReply : "text/plain;charset=UTF-8" content received
syslog:Jan 28 06:28:02 ubuntu-phablet signonpluginprocess[9658]: 
oauth2plugin.cpp 662 parseTextReply :
syslog:Jan 28 06:28:02 ubuntu-phablet signonpluginprocess[9658]: 
oauth2plugin.cpp 473 serverReply : Access token is empty
syslog:Jan 28 06:28:02 ubuntu-phablet signonpluginprocess[9658]: 
../../../../src/remotepluginprocess/remotepluginprocess.cpp 425 
disableCancelThread Before the isFinished loop

** Affects: signon-plugin-oauth2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1415376

Title:
  Fallback to other content_type if parsing fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/signon-plugin-oauth2/+bug/1415376/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to