bug
avatar brianteeman
brianteeman
15 May 2016

Error when editing category of a closed issue.

Steps to reproduce the issue

Try to add a category on a closed issue with no categories

Expected result

Category applied

Actual result

System information (as much as possible)

Additional comments

Votes

# of Users Experiencing Issue
0/1
Average Importance Score
5.00

avatar brianteeman brianteeman - open - 15 May 2016
avatar brianteeman
brianteeman - comment - 15 May 2016

422 RuntimeException

Invalid response from GitHub

exception: exception 'JTracker\Github\Exception\GithubException' with message 'Validation Failed' in ROOT/src/JTracker/Github/GithubObject.php:49
Stack trace:
#0 ROOT/src/JTracker/Github/Package/Issues.php(156): JTracker\GitHub\GithubObject->processResponse(Object(Joomla\Http\Response))
#1 ROOT/src/App/Tracker/Controller/Issue/Save.php(415): JTracker\Github\Package\Issues->edit('joomla', 'joomla-cms', 10470, 'open', '[plg_content_jo...', '### Summary of ...', NULL, '12', Array)
#2 ROOT/src/App/Tracker/Controller/Issue/Save.php(152): App\Tracker\Controller\Issue\Save->updateGitHub('10470', Array, 'closed', 'closed', NULL, '12', Array)
#3 ROOT/src/JTracker/Application.php(190): App\Tracker\Controller\Issue\Save->execute()
#4 ROOT/vendor/joomla/application/src/AbstractWebApplication.php(134): JTracker\Application->doExecute()
#5 ROOT/www/index.php(37): Joomla\Application\AbstractWebApplication->execute()
#6 {main}

Next exception 'RuntimeException' with message 'Invalid response from GitHub' in ROOT/src/App/Tracker/Controller/Issue/Save.php:173
Stack trace:
#0 ROOT/src/JTracker/Application.php(190): App\Tracker\Controller\Issue\Save->execute()
#1 ROOT/vendor/joomla/application/src/AbstractWebApplication.php(134): JTracker\Application->doExecute()
#2 ROOT/www/index.php(37): Joomla\Application\AbstractWebApplication->execute()
#3 {main}


This comment was created with the J!Tracker Application at issues.joomla.org/jtracker/788.

avatar b2z
b2z - comment - 16 May 2016

It seems that it is something specific for this issue only. API says:

Sending invalid fields will result in a 422 Unprocessable Entity response.

HTTP/1.1 422 Unprocessable Entity
Content-Length: 149

{
  "message": "Validation Failed",
  "errors": [
    {
      "resource": "Issue",
      "field": "title",
      "code": "missing_field"
    }
  ]
}

@mbabker any more info in logs?

avatar brianteeman
brianteeman - comment - 27 Jun 2016

It has happens with EVERY issue that doesnt have a category when you try to add a category and it is closed


This comment was created with the J!Tracker Application at issues.joomla.org/jtracker/788.

avatar b2z b2z - change - 15 Jul 2016
Labels Added: bug
avatar b2z
b2z - comment - 20 Jul 2016

Ok, just tried on 11212 - no bug. But for 11210 - same 422 RuntimeException...

avatar zero-24
zero-24 - comment - 20 Jul 2016

maybe there is something missing in the database for 11210?

avatar b2z
b2z - comment - 20 Jul 2016

The only difference I see between these two issues is a milestone: 11212 does not have it, but 11210 has it. BTW 10470 also has it (that's where Brian had issue).

avatar brianteeman
brianteeman - comment - 20 Jul 2016

If you remove the milestone does it work ?

(Sent from a bar or I would check)

avatar b2z
b2z - comment - 21 Jul 2016

When I try to remove milestone I have the same 422 error. And I have no rights to remove it on GitHub :) I tried on 10470.

avatar zero-24
zero-24 - comment - 21 Jul 2016

If you tryed on the CMS tracker it should not a permission issue as your tasks run in the context of the joomla bots ;)

avatar b2z
b2z - comment - 21 Jul 2016

@zero-24 I know but I have 422 error :(

avatar brianteeman brianteeman - change - 9 Dec 2016
The description was changed
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-12-09 17:40:27
Closed_By brianteeman
avatar brianteeman brianteeman - close - 9 Dec 2016

Add a Comment

Login with GitHub to post a comment