Project

Profile

Help

Issue #8770

Error when adding content

Added by ciokan 4 months ago. Updated 4 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Debian:
Platform Release:
Target Release - Debian:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

pulp_worker_1            | pulp [480b66bac84f441e969095f0f132c3a1]: rq.worker:ERROR: Traceback (most recent call last):
pulp_worker_1            |   File "/usr/local/lib/python3.9/site-packages/rq/worker.py", line 1013, in perform_job
pulp_worker_1            |     rv = job.perform()
pulp_worker_1            |   File "/usr/local/lib/python3.9/site-packages/rq/job.py", line 709, in perform
pulp_worker_1            |     self._result = self._execute()
pulp_worker_1            |   File "/usr/local/lib/python3.9/site-packages/rq/job.py", line 732, in _execute
pulp_worker_1            |     result = self.func(*self.args, **self.kwargs)
pulp_worker_1            |   File "/usr/local/lib/python3.9/site-packages/pulpcore/app/tasks/base.py", line 34, in general_create
pulp_worker_1            |     serializer.is_valid(raise_exception=True)
pulp_worker_1            |   File "/usr/local/lib/python3.9/site-packages/rest_framework/serializers.py", line 228, in is_valid
pulp_worker_1            |     raise ValidationError(self.errors)
pulp_worker_1            | rest_framework.exceptions.ValidationError: {'section': [ErrorDetail(string='This field may not be blank.', code='blank')], 'priority': [ErrorDetail(string='This field may not be blank.', code='blank')]}
pulp_worker_1            |

I used the DRF form to upload content (/pulp/api/v3/content/deb/packages/). I also tried adding content by linking an artifact instead but the error is the same.


Related issues

Related to Debian Support - Test #7279: Add a test that uploads a "minimal" Debian package.NEW<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by ciokan 4 months ago

pulp-deb==2.12.0
pulp-rpm==3.11.0
pulpcore==3.12.2

#2 Updated by quba42 4 months ago

It looks like the package you tried to upload does not have a Section nor a Priority field in its metadata, but pulp_deb considers these to be required fields.

Can you tell me what package it was you were trying to upload?

I will have a more detailed look at this problem some time next week.

#3 Updated by quba42 4 months ago

  • Related to Test #7279: Add a test that uploads a "minimal" Debian package. added

#4 Updated by quba42 4 months ago

  • Sprint/Milestone set to Katello

#5 Updated by quba42 4 months ago

Neither section nor priority is a required field in the pulp_deb package model or serializer. This error message does not make much sense to me...

#6 Updated by quba42 4 months ago

Looks like "blank" here refers to a Null value, so this may be related to empty string vs. Null value.

See: https://www.django-rest-framework.org/api-guide/fields/#string-fields

Please register to edit this issue

Also available in: Atom PDF