-
Notifications
You must be signed in to change notification settings - Fork 136
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
Bulk: malformed JSON hangs bulk service #7641
Labels
bulk
bulk service
Comments
Hi Onno, |
Hi Dmitry,
Oops you're right, my apologies. Here's a trace from our test server, running a 10.1.0 master snapshot at commit d772420. We see the same behavior in production at 9.2.20.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear dCache devs,
My colleague Natalie found out, that a malformed JSON hangs the bulk service.
The logs show the full request and the error:
Not sure the bad character ("code 160", a non-breaking space?) will get through after pasting in this issue. Here's a hexdump of the character:
A hexdump of a normal space:
So, after submitting the request, we see that the request and all following requests are stuck as "QUEUED":
Listing the request fails because of a JSON error (both with API and with admin commands).
A database query shows some more info:
I was unable to remove the request with admins commands. The problem can be fixed by deleting the request directly from the database:
And then restarting the domain containing the bulk service.
So, we have a situation where any user with a crafted API request can hang up the bulk service.
It would be nice if JSON errors don't hang up the bulk service but instead are returned as failed.
Cheers,
Onno
The text was updated successfully, but these errors were encountered: