Revisionless bundle requests raise ValueError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charmworld |
Triaged
|
High
|
Unassigned |
Bug Description
I saw this error on staging. I think it should raise a NotFound error.
2013-09-23 12:57:27 [9772] [ERROR] http://
Traceback (most recent call last):
File "/home/
return handler(request)
File "/home/
response = view_callable(
File "/home/
result = view(context, request)
File "/home/
response = view(request)
File "/home/
bundle = find_bundle(
File "/home/
spec[
ValueError: invalid literal for int() with base 10: 'wiki'
Another manifestation of the same error.
2013-10-11 19:14:44 [13601] [ERROR] http:// staging. jujucharms. com/api/ 3/charm/ precise/ juju-gui webops_ deploy/ charmworld/ charmworld/ views/api. py", line 497, in charm charm(path) webops_ deploy/ charmworld/ charmworld/ views/api. py", line 433, in _find_charm 'store_ data.revision' ] = int(revision)
...
File "/home/
charm_id, trailing, charm_data = self._find_
File "/home/
query[
ValueError: invalid literal for int() with base 10: 'gui'