mozilla :: #bugzilla

21 Apr 2017
00:36ShaneAny experts here on Bugzilla 4.4.x?
00:36ShaneEspecially pertaining to the jsonrpc.cgi service?
00:36ShaneCan I pick someones brain for a few minutes?
00:40ShaneMy code is
00:40Shane ob_start(); // Get cURL resource $curl = curl_init(); // Set some options - we are passing in a useragent too here curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => 'https://landfill.bugzilla.org/bugzilla-4.4-branch/jsonrpc.cgi', CURLOPT_USERAGENT => 'Codular Sample cURL Request', CURLOPT_POST => 1, CURLOPT_HEADER =>1, CURLOPT_POSTFIELDS => array( Bugzilla_login => 'username', Bugz
00:41Shanebut i get a 403 fobidden response yet I do get a Bugzilla_Login_Request_Cookie but when I send it back it still says 403 error
00:41ShaneI have been struggling for a while on this and I am ready to throw in the towel
00:43ShaneSorry lost connection for a second...
00:43ShaneI have the following snippet
00:43Shaneob_start(); // Get cURL resource $curl = curl_init(); // Set some options - we are passing in a useragent too here curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => 'https://landfill.bugzilla.org/bugzilla-4.4-branch/jsonrpc.cgi', CURLOPT_USERAGENT => 'Codular Sample cURL Request', CURLOPT_POST => 1, CURLOPT_HEADER =>1, CURLOPT_POSTFIELDS => array( Bugzilla_login => 'username', Bugzil
00:44Shanebut i get a 403 fobidden response yet I do get a Bugzilla_Login_Request_Cookie but when I send it back it still says 403 error..
00:44ShaneThank you for any ideas or help on this one.. I am going crazy
01:07jfearnShane, is that php?
01:07Shanees
01:07ShaneYes
01:07ShaneThe format didn't go well into the chat screen
01:07jfearnnever does, pastebin ftw
01:09ShaneIf you copy and past the code into a simply PHP file and run it you can see the error I am getting, 403. You do have to have a user/pass on the landfill site
01:12jfearnI don't have a php server
01:14Shanedoes the code look right though? I can post the response here to see if that offers any insight
01:16jfearnI haven't done php in a decade :} is this what you are using http://php.net/manual/en/book.curl.php ?
01:17ShaneYes,
01:17ShaneWhich are you familier with? C? VB? Java?
01:17jfearnPerl :)
01:18Shane"I havent done PERL in a decade "
01:18jfearnare you using setName, setPath and useAuth?
01:18jfearnsetPass
01:19Shaneno, I think I am missing something obvious when I am doing this..
01:19ShaneAre those the headers?
01:19ShaneI do get a "Bugzilla_Login_Request_Cookie" back from the request
01:19ShaneIs that what I need?
01:20jfearnno they are methods in the curl class
01:23Shaneif it is posting the array to the jsonrpc.cgi wouldn't I just receive the headers back from the service
01:24Shaneand if the array has the user and pass information I wouldn't need it on the cURL instance.. I would just read the response back...
01:24Shaneof course that could be why I am not getting this to work right
01:28jfearnto use the cookie it needs to be sent in the curl header, otherwise you can embed your user and password in the json payload
01:29ShaneCan I just embed the username and password for each call rather than get the session cookie and then resubmit with that cookie
01:30jfearniirc yes
01:30Shaneiirc?
01:30jfearnIf I Recall Correctly
01:31Shanehmm let me try
01:31jfearnbbl lunch time!
01:35ShaneLOL
01:35Shanesame damn thing
01:35Shanenothing changes
01:35Shaneugh
10:52bugbotNew User Interface bug 1358449 filed by baffclan@yahoo.co.jp.
10:52bugbotBug https://bugzilla.mozilla.org/show_bug.cgi?id=1358449 User Interface, normal, --, ---, ui, UNCONFIRMED , Does not open user's Profile/Activity/Mail list at Cc's people in Bugzilla
15:30garvan"Follow" button: how do I show the bugs for which I clicked this button?
15:32dklgarvan: if talking about bugzilla.mozilla.org, then it is just simply adding your account to the cc list of the bug. So you can search for all bugs you are cc'ed on.
15:35garvanYes for bugzilla.mozilla.org. Thanks for the info, got it, same as adding myself to the cc list
15:48garvanWhere in the bug form would I add personal-use tags? they are mentioned in the doc: "Adding/removing tags to/from bugs"
15:48garvanhttps://www.bugzilla.org/docs/4.4/en/html/query.html
15:55garvannvm, found it, bottom of the bug page
19:38justdavehow's Jive docs coming?https://www.g2crowd.com/survey_responses/bugzilla-review-273229
19:39justdaveer, https://www.g2crowd.com/survey_responses/bugzilla-review-273229
19:39justdaveignore the first part :)
19:41justdavebumped my up arrow as I was pasting and grabbed something from my history on another channel :)
22 Apr 2017
No messages
   
Last message: 62 days and 20 hours ago