[Wikidata-bugs] [Maniphest] [Commented On] T225506: OAuth authentication request returns 500

2019-06-16 Thread Tgr
Tgr added a comment.


  Unless something is seriously broken the `error` log channel should contain 
the full stack trace for the WebResponse call (something is tyring to set a 
cookie after the JWT has been output, but without a stack trace it will be hard 
to figure out what - although you could try adding `cookie` to the log channels 
and check what cookie is being set).

TASK DETAIL
  https://phabricator.wikimedia.org/T225506

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Tgr
Cc: Tgr, Lydia_Pintscher, Addshore, Tarrow, Aklapper, Moraorviz, darthmon_wmde, 
Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, Chicocvenancio, QZanden, 
LawExplorer, _jensen, rosalieper, Wikidata-bugs, aude, Mbch331, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T225506: OAuth authentication request returns 500

2019-06-16 Thread Addshore
Addshore added a comment.


  Is there anything else appearing in the logs?

TASK DETAIL
  https://phabricator.wikimedia.org/T225506

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Addshore
Cc: Tgr, Lydia_Pintscher, Addshore, Tarrow, Aklapper, Moraorviz, darthmon_wmde, 
Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, Chicocvenancio, QZanden, 
LawExplorer, _jensen, rosalieper, Wikidata-bugs, aude, Mbch331, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T225506: OAuth authentication request returns 500

2019-06-12 Thread Moraorviz
Moraorviz added a comment.


  The response is just ok but the embedded token is unable to be parsed by jwt 
due to the attached warning with the header thing:
  
  (Pdb) p r.url
  'http://35.181.143.201:8181/w/index.php?title=Special%3AOAuth%2Fidentify'
  (Pdb) p r.ok
  True
  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maWxlIiwicGF0cm9sIiwicm9sbGJhY2siLCJ2aWV3ZGVsZXRlZCIsImRlbGV0ZSIsInNlbmRlbWFpbCIsImNyZWF0ZWFjY291bnQiXX0.GsiYfUHQ7uCpcbpWYQ0qJUErXQyJG3dQe7oczjtuB4E\nWarning:  Cannot modify header information - headers already sent 
by (output started at 
/var/www/html/extensions/OAuth/frontend/specialpages/SpecialMWOAuth.php:562) in 
/var/www/html/includes/WebResponse.php on line 208\n\n**Warning**:  Cannot modify header information - headers already 
sent by (output started at 
/var/www/html/extensions/OAuth/frontend/specialpages/SpecialMWOAuth.php:562) in 
/var/www/html/includes/WebResponse.php on line 208\n'
  
  Maybie I should parse it manually but I wonder what is triggering it.

TASK DETAIL
  https://phabricator.wikimedia.org/T225506

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Moraorviz
Cc: Tgr, Lydia_Pintscher, Addshore, Tarrow, Aklapper, Moraorviz, darthmon_wmde, 
Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, Chicocvenancio, QZanden, 
LawExplorer, _jensen, rosalieper, Wikidata-bugs, aude, Mbch331, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T225506: OAuth authentication request returns 500

2019-06-12 Thread Tgr
Tgr added a comment.


  That sounds like a secondary error, there should be another error in the logs 
that caused it.

TASK DETAIL
  https://phabricator.wikimedia.org/T225506

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Tgr
Cc: Tgr, Lydia_Pintscher, Addshore, Tarrow, Aklapper, Moraorviz, darthmon_wmde, 
Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, Chicocvenancio, QZanden, 
LawExplorer, _jensen, rosalieper, Wikidata-bugs, aude, Mbch331, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T225506: OAuth authentication request returns 500

2019-06-12 Thread Moraorviz
Moraorviz added a comment.


  Now response is ok but something is still wrong with the headers in the php 
backed of wikibase OAuth extension during the first step of the authentication 
(asking for url to send the user to.)
  
  2019-06-12 17:05:57 2cbdfcc4be24 my_wiki: [8d52b606db6954c048cfae7d] 
/w/index.php?title=Special%3AOAuth%2Finitiate   ErrorException from line 208 of 
/var/www/html/includes/WebResponse.php: PHP Warning: Cannot modify header 
information - headers already sent by (output started at 
/var/www/html/extensions/OAuth/frontend/specialpages/SpecialMWOAuth.php:562)
  #0 [internal function]: MWExceptionHandler::handleError(integer, string, 
string, integer, array)
  #1 /var/www/html/includes/WebResponse.php(208): setcookie(string, string, 
integer, string, string, boolean, boolean)
  #2 /var/www/html/includes/MediaWiki.php(661): WebResponse->setCookie(string, 
string, integer, array)
  #3 /var/www/html/includes/MediaWiki.php(568): 
MediaWiki::preOutputCommit(RequestContext, Closure)
  #4 /var/www/html/includes/MediaWiki.php(876): 
MediaWiki->doPreOutputCommit(Closure)
  #5 /var/www/html/includes/MediaWiki.php(517): MediaWiki->main()
  #6 /var/www/html/index.php(42): MediaWiki->run()
  #7 {main}

TASK DETAIL
  https://phabricator.wikimedia.org/T225506

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Moraorviz
Cc: Tgr, Lydia_Pintscher, Addshore, Tarrow, Aklapper, Moraorviz, darthmon_wmde, 
Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, Chicocvenancio, QZanden, 
LawExplorer, _jensen, rosalieper, Wikidata-bugs, aude, Mbch331, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T225506: OAuth authentication request returns 500

2019-06-12 Thread Tgr
Tgr added a comment.


  You need to install dependencies of the extension via Composer. (We have some 
documentation  on it but it's not 
great.)

TASK DETAIL
  https://phabricator.wikimedia.org/T225506

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Tgr
Cc: Tgr, Lydia_Pintscher, Addshore, Tarrow, Aklapper, Moraorviz, darthmon_wmde, 
Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, Chicocvenancio, QZanden, 
LawExplorer, _jensen, rosalieper, Wikidata-bugs, aude, Mbch331, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T225506: OAuth authentication request returns 500

2019-06-12 Thread Moraorviz
Moraorviz added a comment.


  From exception log:
  
  2019-06-12 12:11:29 2cbdfcc4be24 my_wiki: [1314ae526f676f38c9d6f327] 
/w/index.php?title=Special%3AOAuth%2Fidentify   Error from line 330 of 
/var/www/html/extensions/OAuth/frontend/specialpages/SpecialMWOAuth.php
  : Class 'Firebase\JWT\JWT' not found

TASK DETAIL
  https://phabricator.wikimedia.org/T225506

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Moraorviz
Cc: Tgr, Lydia_Pintscher, Addshore, Tarrow, Aklapper, Moraorviz, darthmon_wmde, 
Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, Chicocvenancio, QZanden, 
LawExplorer, _jensen, rosalieper, Wikidata-bugs, aude, Mbch331, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T225506: OAuth authentication request returns 500

2019-06-12 Thread Tgr
Tgr added a comment.


  Set something like
  
$wgDebugLogGroups['exception'] = '/var/log/mediawiki/exception.log';
$wgDebugLogGroups['error'] = '/var/log/mediawiki/error.log';
$wgDebugLogGroups['fatal'] = '/var/log/mediawiki/fatal.log';
$wgDebugLogGroups['OAuth'] = '/var/log/mediawiki/OAuth.log';
  
  in your LocalSettings.php 
 (and make sure those 
files exist and are writable).

TASK DETAIL
  https://phabricator.wikimedia.org/T225506

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Tgr
Cc: Tgr, Lydia_Pintscher, Addshore, Tarrow, Aklapper, Moraorviz, darthmon_wmde, 
Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, Chicocvenancio, QZanden, 
LawExplorer, _jensen, rosalieper, Wikidata-bugs, aude, Mbch331, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T225506: OAuth authentication request returns 500

2019-06-11 Thread Moraorviz
Moraorviz added a comment.


  In T225506#5251950 , @Tgr 
wrote:
  
  > Check your exception logs.
  
  
  Hi, can you tell me the location of the server logs for the wikibase? Thx.

TASK DETAIL
  https://phabricator.wikimedia.org/T225506

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Moraorviz
Cc: Tgr, Lydia_Pintscher, Addshore, Tarrow, Aklapper, Moraorviz, darthmon_wmde, 
Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, Chicocvenancio, QZanden, 
LawExplorer, _jensen, rosalieper, Wikidata-bugs, aude, Mbch331, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T225506: OAuth authentication request returns 500

2019-06-11 Thread Tgr
Tgr added a comment.


  Check your exception logs.

TASK DETAIL
  https://phabricator.wikimedia.org/T225506

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Tgr
Cc: Tgr, Lydia_Pintscher, Addshore, Tarrow, Aklapper, Moraorviz, darthmon_wmde, 
Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, Chicocvenancio, QZanden, 
LawExplorer, _jensen, rosalieper, Wikidata-bugs, aude, Mbch331, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T225506: OAuth authentication request returns 500

2019-06-11 Thread Moraorviz
Moraorviz added a comment.


  mw_uri = http://35.181.143.201:8181/w/index.php.
  
  For oauth I got some credentials using my secret token.

TASK DETAIL
  https://phabricator.wikimedia.org/T225506

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Moraorviz
Cc: Lydia_Pintscher, Addshore, Tarrow, Aklapper, Moraorviz, darthmon_wmde, 
Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, Chicocvenancio, QZanden, 
LawExplorer, _jensen, rosalieper, Wikidata-bugs, aude, Mbch331, Krenair, Tgr
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T225506: OAuth authentication request returns 500

2019-06-11 Thread Addshore
Addshore added a comment.


  What is "mw_uri" set to in the example in the task description?
  
  Without knowing anything else right now it looks like you are hitting the 
wrong URL.

TASK DETAIL
  https://phabricator.wikimedia.org/T225506

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Addshore
Cc: Lydia_Pintscher, Addshore, Tarrow, Aklapper, Moraorviz, darthmon_wmde, 
Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, Chicocvenancio, QZanden, 
LawExplorer, _jensen, rosalieper, Wikidata-bugs, aude, Mbch331, Krenair, Tgr
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs