Issue #4472
closedRelative_path error when uploading a file
Description
If you follow the docs to upload a file and create an rpm, you get the following error:
HTTP/1.1 400 Bad Request
Allow: GET, POST, HEAD, OPTIONS
Content-Length: 46
Content-Type: application/json
Date: Tue, 26 Feb 2019 09:27:59 GMT
Server: WSGIServer/0.2 CPython/3.7.2
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN
{
"_relative_path": [
"This field is required."
]
}
We need to update our code based on https://pulp.plan.io/issues/4394.
Files
Related issues
Updated by daviddavis over 5 years ago
- Related to Issue #4394: Content serializer validate should ensure a saveable object added
Updated by daviddavis over 5 years ago
I'm trying to update this code but I have a couple questions here:
https://pulp-rpm.readthedocs.io/en/latest/workflows/upload.html#create-rpm-content-from-an-artifact
It seems like relative_path and filename are redundant and should be combined? Moreover, I don't see a filename field in the api docs nor on the PackageSerializer.
I'm also wondering if we should just remove this endpoint and just use the one shot uploader?
Edit: Filed separate issue about filename param: https://pulp.plan.io/issues/4473
Added by daviddavis over 5 years ago
Updated by ttereshc over 5 years ago
- Related to Issue #4446: multiple test failures on master branch added
Updated by daviddavis over 5 years ago
- Status changed from ASSIGNED to MODIFIED
Applied in changeset 060627d07a50493c45b20f8118265777ad94c4dd.
Updated by daviddavis over 5 years ago
Updated by Anonymous almost 5 years ago
Updated by ttereshc almost 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Fixing package upload
Fixing package upload after changes from https://pulp.plan.io/issues/4394.
fixes #4472 https://pulp.plan.io/issues/4472