2014-08-30 05:23:16 |
Jason Hobbs |
bug |
|
|
added bug |
2014-08-30 05:24:14 |
Jason Hobbs |
description |
Attempting to upload boot-resources files larger than 47406 bytes results in this error:
"Could not decode base64 data: TypeError(Error('Incorrect padding',),)"
Larger stack trace:
http://paste.ubuntu.com/8184315/
You can reproduce this with dd:
ubuntu@trusty-maas6:~$ maas local boot-resources create name=testing/testing architecture=amd64/generic content@=/home/ubuntu/blah
{
"name": "testing/testing",
"title": "",
"architecture": "amd64/generic",
"sets": {
"20140830": {
"files": {
"tgz": {
"filename": "tgz",
"filetype": "tgz",
"sha256": "a76c2f1ca615406f257e0eb8148b1aecc404266497ec5ce472141f560abcc59f",
"complete": true,
"size": 47406
}
},
"label": "generated",
"version": "20140830",
"complete": true,
"size": 47406
}
},
"type": "Generated",
"id": 130,
"resource_uri": "/MAAS/api/1.0/boot-resources/130/"
}
ubuntu@trusty-maas6:~$ dd if=/dev/urandom of=blah bs=47407 count=1
1+0 records in
1+0 records out
47407 bytes (47 kB) copied, 0.0140973 s, 3.4 MB/s
ubuntu@trusty-maas6:~$ maas local boot-resources create name=testing/testing architecture=amd64/generic content@=/home/ubuntu/blah
Could not decode base64 data: TypeError(Error('Incorrect padding',),) |
This is with 1.7.0~beta2+bzr2847-0ubuntu1
Attempting to upload boot-resources files larger than 47406 bytes results in this error:
"Could not decode base64 data: TypeError(Error('Incorrect padding',),)"
Larger stack trace:
http://paste.ubuntu.com/8184315/
You can reproduce this with dd:
ubuntu@trusty-maas6:~$ maas local boot-resources create name=testing/testing architecture=amd64/generic content@=/home/ubuntu/blah
{
"name": "testing/testing",
"title": "",
"architecture": "amd64/generic",
"sets": {
"20140830": {
"files": {
"tgz": {
"filename": "tgz",
"filetype": "tgz",
"sha256": "a76c2f1ca615406f257e0eb8148b1aecc404266497ec5ce472141f560abcc59f",
"complete": true,
"size": 47406
}
},
"label": "generated",
"version": "20140830",
"complete": true,
"size": 47406
}
},
"type": "Generated",
"id": 130,
"resource_uri": "/MAAS/api/1.0/boot-resources/130/"
}
ubuntu@trusty-maas6:~$ dd if=/dev/urandom of=blah bs=47407 count=1
1+0 records in
1+0 records out
47407 bytes (47 kB) copied, 0.0140973 s, 3.4 MB/s
ubuntu@trusty-maas6:~$ maas local boot-resources create name=testing/testing architecture=amd64/generic content@=/home/ubuntu/blah
Could not decode base64 data: TypeError(Error('Incorrect padding',),) |
|
2014-08-30 05:24:27 |
Jason Hobbs |
bug watch added |
|
http://code.djangoproject.com/ticket/19036 |
|
2014-08-30 20:57:54 |
Jason Hobbs |
attachment added |
|
lp-1363348.patch https://bugs.launchpad.net/maas/+bug/1363348/+attachment/4191079/+files/lp-1363348.patch |
|
2014-09-01 00:31:50 |
Julian Edwards |
maas: status |
New |
Triaged |
|
2014-09-01 00:31:53 |
Julian Edwards |
maas: milestone |
|
1.7.0 |
|
2014-09-01 00:32:03 |
Julian Edwards |
tags |
|
api cli |
|
2014-09-02 17:35:22 |
Jason Hobbs |
bug watch added |
|
http://code.djangoproject.com/ticket/23397 |
|
2014-09-02 17:37:49 |
Jason Hobbs |
bug task added |
|
python-django (Ubuntu) |
|
2014-09-02 20:25:22 |
Ubuntu Foundations Team Bug Bot |
tags |
api cli |
api cli patch |
|
2014-09-02 20:25:29 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Review Team |
2014-09-08 20:33:42 |
Launchpad Janitor |
python-django (Ubuntu): status |
New |
Confirmed |
|
2014-09-18 22:20:50 |
Andres Rodriguez |
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 |
|
2014-09-18 23:22:10 |
Andres Rodriguez |
maas: status |
Triaged |
Fix Released |
|
2014-09-18 23:22:42 |
Andres Rodriguez |
nominated for series |
|
Ubuntu Trusty |
|
2014-09-18 23:22:42 |
Andres Rodriguez |
bug task added |
|
python-django (Ubuntu Trusty) |
|
2014-09-18 23:22:50 |
Andres Rodriguez |
python-django (Ubuntu): importance |
Undecided |
Critical |
|
2014-09-18 23:22:53 |
Andres Rodriguez |
python-django (Ubuntu Trusty): importance |
Undecided |
Critical |
|
2014-09-18 23:22:55 |
Andres Rodriguez |
python-django (Ubuntu Trusty): status |
New |
Confirmed |
|
2014-09-18 23:23:02 |
Andres Rodriguez |
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 |
|
2014-09-18 23:25:58 |
Andres Rodriguez |
description |
This is with 1.7.0~beta2+bzr2847-0ubuntu1
Attempting to upload boot-resources files larger than 47406 bytes results in this error:
"Could not decode base64 data: TypeError(Error('Incorrect padding',),)"
Larger stack trace:
http://paste.ubuntu.com/8184315/
You can reproduce this with dd:
ubuntu@trusty-maas6:~$ maas local boot-resources create name=testing/testing architecture=amd64/generic content@=/home/ubuntu/blah
{
"name": "testing/testing",
"title": "",
"architecture": "amd64/generic",
"sets": {
"20140830": {
"files": {
"tgz": {
"filename": "tgz",
"filetype": "tgz",
"sha256": "a76c2f1ca615406f257e0eb8148b1aecc404266497ec5ce472141f560abcc59f",
"complete": true,
"size": 47406
}
},
"label": "generated",
"version": "20140830",
"complete": true,
"size": 47406
}
},
"type": "Generated",
"id": 130,
"resource_uri": "/MAAS/api/1.0/boot-resources/130/"
}
ubuntu@trusty-maas6:~$ dd if=/dev/urandom of=blah bs=47407 count=1
1+0 records in
1+0 records out
47407 bytes (47 kB) copied, 0.0140973 s, 3.4 MB/s
ubuntu@trusty-maas6:~$ maas local boot-resources create name=testing/testing architecture=amd64/generic content@=/home/ubuntu/blah
Could not decode base64 data: TypeError(Error('Incorrect padding',),) |
[Impact]
This is with 1.7.0~beta2+bzr2847-0ubuntu1
Attempting to upload boot-resources files larger than 47406 bytes results in this error:
"Could not decode base64 data: TypeError(Error('Incorrect padding',),)"
Larger stack trace:
http://paste.ubuntu.com/8184315/
[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/testing architecture=amd64/generic content@=/home/ubuntu/blah
Could not decode base64 data: TypeError(Error('Incorrect padding',),))
[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@trusty-maas6:~$ maas local boot-resources create name=testing/testing architecture=amd64/generic content@=/home/ubuntu/blah
{
"name": "testing/testing",
"title": "",
"architecture": "amd64/generic",
"sets": {
"20140830": {
"files": {
"tgz": {
"filename": "tgz",
"filetype": "tgz",
"sha256": "a76c2f1ca615406f257e0eb8148b1aecc404266497ec5ce472141f560abcc59f",
"complete": true,
"size": 47406
}
},
"label": "generated",
"version": "20140830",
"complete": true,
"size": 47406
}
},
"type": "Generated",
"id": 130,
"resource_uri": "/MAAS/api/1.0/boot-resources/130/"
}
ubuntu@trusty-maas6:~$ dd if=/dev/urandom of=blah bs=47407 count=1
1+0 records in
1+0 records out
47407 bytes (47 kB) copied, 0.0140973 s, 3.4 MB/s
ubuntu@trusty-maas6:~$ maas local boot-resources create name=testing/testing architecture=amd64/generic content@=/home/ubuntu/blah
Could not decode base64 data: TypeError(Error('Incorrect padding',),) |
|
2014-09-19 00:23:09 |
Andres Rodriguez |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2014-09-19 00:24:10 |
Andres Rodriguez |
python-django (Ubuntu Trusty): status |
Confirmed |
New |
|
2014-09-19 01:03:48 |
Launchpad Janitor |
python-django (Ubuntu): status |
Confirmed |
Fix Released |
|
2014-09-23 20:52:36 |
Chris J Arges |
python-django (Ubuntu Trusty): status |
New |
Fix Committed |
|
2014-09-23 20:52:40 |
Chris J Arges |
bug |
|
|
added subscriber SRU Verification |
2014-09-23 20:52:42 |
Chris J Arges |
tags |
api cli patch |
api cli patch verification-needed |
|
2014-09-29 14:12:03 |
Andres Rodriguez |
tags |
api cli patch verification-needed |
api cli patch verification-done |
|
2014-10-02 16:28:37 |
Launchpad Janitor |
python-django (Ubuntu Trusty): status |
Fix Committed |
Fix Released |
|
2014-10-02 16:28:42 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2014-10-02 20:55:52 |
Christian Reis |
maas: assignee |
|
Jason Hobbs (jason-hobbs) |
|