yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #37184
[Bug 1488174] [NEW] A tag with a long length will return a 500
Public bug reported:
Overview:
The tag length is not checked, it tries to insert the tag into the database and can't. This then causes a database exception.
How to produce:
curl -v -X PUT http://10.0.0.8:9292/v2/images/4e1cd2f0-8704-4e19-953f-62ff14d1b22a/tags/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -H "X-Auth-Token: eb51438851c64ffab72163092924e1cf"
> PUT /v2/images/4e1cd2f0-8704-4e19-953f-62ff14d1b22a/tags/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 10.0.0.8:9292
> Accept: */*
> X-Auth-Token: eb51438851c64ffab72163092924e1cf
>
Actual result:
< HTTP/1.1 500 Internal Server Error
< Content-Length: 228
< Content-Type: text/html; charset=UTF-8
< X-Openstack-Request-Id: req-8df454b9-32e4-4356-a23c-5de4a60b49fa
< Date: Mon, 24 Aug 2015 16:41:42 GMT
<
<html>
<head>
<title>500 Internal Server Error</title>
</head>
<body>
<h1>500 Internal Server Error</h1>
The server has either erred or is incapable of performing the requested operation.<br /><br />
</body>
Expected:
400
** Affects: glance
Importance: Undecided
Assignee: Niall Bunting (niall-bunting)
Status: New
** Changed in: glance
Assignee: (unassigned) => Niall Bunting (niall-bunting)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1488174
Title:
A tag with a long length will return a 500
Status in Glance:
New
Bug description:
Overview:
The tag length is not checked, it tries to insert the tag into the database and can't. This then causes a database exception.
How to produce:
curl -v -X PUT http://10.0.0.8:9292/v2/images/4e1cd2f0-8704-4e19-953f-62ff14d1b22a/tags/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -H "X-Auth-Token: eb51438851c64ffab72163092924e1cf"
> PUT /v2/images/4e1cd2f0-8704-4e19-953f-62ff14d1b22a/tags/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 10.0.0.8:9292
> Accept: */*
> X-Auth-Token: eb51438851c64ffab72163092924e1cf
>
Actual result:
< HTTP/1.1 500 Internal Server Error
< Content-Length: 228
< Content-Type: text/html; charset=UTF-8
< X-Openstack-Request-Id: req-8df454b9-32e4-4356-a23c-5de4a60b49fa
< Date: Mon, 24 Aug 2015 16:41:42 GMT
<
<html>
<head>
<title>500 Internal Server Error</title>
</head>
<body>
<h1>500 Internal Server Error</h1>
The server has either erred or is incapable of performing the requested operation.<br /><br />
</body>
Expected:
400
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1488174/+subscriptions
Follow ups