Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed issue #788

Closed
brianteeman opened this issue May 15, 2016 · 10 comments
Closed

Closed issue #788

brianteeman opened this issue May 15, 2016 · 10 comments
Labels

Comments

@brianteeman
Copy link
Contributor

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

@brianteeman
Copy link
Contributor Author

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.

@b2z
Copy link
Member

b2z commented May 16, 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?

@brianteeman
Copy link
Contributor Author

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.

@b2z b2z added the bug label Jul 15, 2016
@b2z
Copy link
Member

b2z commented Jul 20, 2016

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

@zero-24
Copy link
Member

zero-24 commented Jul 20, 2016

maybe there is something missing in the database for 11210?

@b2z
Copy link
Member

b2z commented Jul 20, 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).

@brianteeman
Copy link
Contributor Author

brianteeman commented Jul 20, 2016 via email

@b2z
Copy link
Member

b2z commented Jul 21, 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.

@zero-24
Copy link
Member

zero-24 commented Jul 21, 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 ;)

@b2z
Copy link
Member

b2z commented Jul 21, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants