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

Issues saving items via the tracker #834

Closed
brianteeman opened this issue Jul 14, 2016 · 13 comments
Closed

Issues saving items via the tracker #834

brianteeman opened this issue Jul 14, 2016 · 13 comments

Comments

@brianteeman
Copy link
Contributor

Steps to reproduce the issue

trying to change the category on 1120
(not just this one but its an example)

Expected result

Actual result

0 UnexpectedValueException

No issue number received.

exception: exception 'UnexpectedValueException' with message 'No issue number received.' in ROOT/src/App/Tracker/Controller/Issue/Save.php:57
Stack trace:
#0 ROOT/src/JTracker/Application.php(170): App\Tracker\Controller\Issue\Save->execute()
#1 ROOT/vendor/joomla/application/src/AbstractWebApplication.php(134): JTracker\Application->doExecute()
#2 ROOT/www/index.php(97): Joomla\Application\AbstractWebApplication->execute()
#3 {main}

System information (as much as possible)

Additional comments

@elkuku
Copy link
Contributor

elkuku commented Jul 16, 2016

This is one of those issues that really suck....

I just "requested" a database dump to test with locally (#839).

Otherwise I only have the unhelpfully "can't reproduce" message...

Just to be sure: does it happen only when adding categories? The error message seems to indicate that it happens on every edit?

@elkuku
Copy link
Contributor

elkuku commented Jul 17, 2016

Just a little update: Instead of solving the issue, I discovered more bugs along the way...

@brianteeman may I beg you for some more information? Does it only happen on 11120 or on which other issue(s)?

@brianteeman
Copy link
Contributor Author

brianteeman commented Jul 17, 2016 via email

@elkuku
Copy link
Contributor

elkuku commented Jul 17, 2016

TBH I'm a bit more confused now...
I've tried to change the category on several closed PRs successfully, also 11120 is actually open.....

I can however confirm the bug on 11120 (and only on 11120), so yes, it's not specific to you 😉

@brianteeman
Copy link
Contributor Author

brianteeman commented Jul 18, 2016 via email

@elkuku
Copy link
Contributor

elkuku commented Aug 9, 2016

Just a wild guess: Could the unfriendly behavior of mod_security reported in #850 be related to the issue we are facing here? The only thing I can really confirm is that something or someone is wiping out the request data on the server.
So the mod_security thingy would be the last explication I got left and if this can be confirmed I could finally sleep in peace (somewhat, because someone else has to solve it) 😉

I labeled them both as server issues.

@mbabker
Copy link
Contributor

mbabker commented Aug 9, 2016

No idea, since the data gets stripped before it hits any place we can log it.

FWIW the GitHub hooks should fail less frequently again, I had the rules loosened up again.

@elkuku
Copy link
Contributor

elkuku commented Aug 9, 2016

FWIW the GitHub hooks should fail less frequently again, I had the rules loosened up again.

Glad to hear some good news in those days with logs full of strange errors...

@mbabker
Copy link
Contributor

mbabker commented Sep 5, 2016

If it happens again someone say something, I've got logging in place to get the submitted data now.

@brianteeman
Copy link
Contributor Author

I just made it happen right now on 11899

0 UnexpectedValueException

No issue number received.

exception: exception 'UnexpectedValueException' with message 'No issue number received.' in ROOT/src/App/Tracker/Controller/Issue/Save.php:61
Stack trace:
#0 ROOT/src/JTracker/Application.php(174): App\Tracker\Controller\Issue\Save->execute()
#1 ROOT/vendor/joomla/application/src/AbstractWebApplication.php(134): JTracker\Application->doExecute()
#2 ROOT/www/index.php(104): Joomla\Application\AbstractWebApplication->execute()
#3 {main}

@mbabker
Copy link
Contributor

mbabker commented Sep 5, 2016

[2016-09-05 09:35:30] JTracker.DEBUG: Submitted data from save controller. {"data":[]} {"url":"/tracker/joomla-cms/11899/edit-save","http_method":"GET","server":"issues.joomla.org","referrer":"https://issues.joomla.org/tracker/joomla-cms/11899/edit","unique_id":"V82CskgdfJ4AADOldOYAAAAO"}

Have I mentioned lately how much I hate ModSec?

@mbabker
Copy link
Contributor

mbabker commented Sep 5, 2016

Wait a second. That says it was submitted with a GET request. The page is set to submit the form via POST (side note the controller's not checking in POST for that data so that shouldn't make a huge difference I'd think). Something with the JavaScript handlers messing that up somehow?

Either way I'm submitting a ticket to Rochen right now to see if anything's being stripped. We'll see what happens.

@mbabker mbabker changed the title Unable to add category and other edits Issues saving items via the tracker Sep 5, 2016
@mbabker
Copy link
Contributor

mbabker commented Sep 6, 2016

The save route should now be whitelisted on ModSec.

@mbabker mbabker closed this as completed Nov 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants