[Bug 1363348] Re: Multipart base64 file decoding of fails with large files - greater than 47406
Andres Rodriguez
andreserl at ubuntu-pe.org
Thu Sep 18 23:22:10 UTC 2014
** Changed in: maas
Status: Triaged => Fix Released
** Also affects: python-django (Ubuntu Trusty)
Importance: Undecided
Status: New
** Changed in: python-django (Ubuntu)
Importance: Undecided => Critical
** Changed in: python-django (Ubuntu Trusty)
Importance: Undecided => Critical
** Changed in: python-django (Ubuntu Trusty)
Status: New => Confirmed
** Summary changed:
- 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 changed:
+ [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 at 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 at 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 at 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',),)
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to python-django in Ubuntu.
https://bugs.launchpad.net/bugs/1363348
Title:
[SRU] Multipart base64 file decoding of fails with large files -
greater than 47406
To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1363348/+subscriptions
More information about the Ubuntu-server-bugs
mailing list