[SRU] Multipart base64 file decoding of fails with large files - greater than 47406
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Jason Hobbs | ||
python-django (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Trusty |
Fix Released
|
Critical
|
Unassigned |
Bug Description
[Impact]
This is with 1.7.0~beta2+
Attempting to upload boot-resources files larger than 47406 bytes results in this error:
"Could not decode base64 data: TypeError(
Larger stack trace:
http://
[Test Case]
1. Install MAAS
2. Create a file that's larger than 47406 bytes.
(dd if=/dev/urandom of=blah bs=47407 count=1)
3. Try to upload to MAAS (With the Fix it will succeed, without the fix, it will fail).
(maas local boot-resources create name=testing/
Could not decode base64 data: TypeError(
[Regression Potential]
Minimal. This has been fixed upstream and has been tested by the MAAS developers.
[Old Information]
You can reproduce this with dd:
ubuntu@
{
"name": "testing/testing",
"title": "",
"architecture": "amd64/generic",
"sets": {
"20140830": {
}
},
"size": 47406
}
},
"type": "Generated",
"id": 130,
"resource_uri": "/MAAS/
}
ubuntu@
1+0 records in
1+0 records out
47407 bytes (47 kB) copied, 0.0140973 s, 3.4 MB/s
ubuntu@
Could not decode base64 data: TypeError(
Changed in maas: | |
status: | New → Triaged |
milestone: | none → 1.7.0 |
tags: | added: api cli |
summary: |
- Image uploads from the cli fail when file size is greater than 47406 + Multipart base64 file decoding of fails with large files - greater than + 47406 |
Changed in maas: | |
status: | Triaged → Fix Released |
Changed in python-django (Ubuntu): | |
importance: | Undecided → Critical |
Changed in python-django (Ubuntu Trusty): | |
importance: | Undecided → Critical |
status: | New → Confirmed |
summary: |
- Multipart base64 file decoding of fails with large files - greater than - 47406 + [SRU] Multipart base64 file decoding of fails with large files - + greater than 47406 |
description: | updated |
Changed in python-django (Ubuntu Trusty): | |
status: | Confirmed → New |
Changed in maas: | |
assignee: | nobody → Jason Hobbs (jason-hobbs) |
This looks similar to https:/ /code.djangopro ject.com/ ticket/ 19036, but that bug should be fixed django 1.6.