Project

Profile

Help

Task #6771

Users not setting CONTENT_ORIGIN receive an error message that is not the most helpful

Added by bmbouter 3 months ago. Updated about 1 month ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 75

Description

Background

The CONTENT_ORIGIN setting is a required Pulp setting, and if unset Pulp refuses to start. This is by design.

In that situation the use receives a message that says You must specify the CONTENT_ORIGIN setting. This comes from this line in the settings file: https://github.com/pulp/pulpcore/blob/master/pulpcore/app/settings.py#L233

This error message is technically correct, but it's not very helpful.

Solution

  1. Switch the exception type to be a Django ImproperlyConfigured exception.
  2. Make the text longer. It should include:
  • That the CONTENT_ORIGIN setting is required.
  • That the Installer sets it automatically
  • It could be a permissions problem.

Associated revisions

Revision d7163c32 View on GitHub
Added by Lubos Mjachky about 2 months ago

Provide a more descriptive error message

closes #6771

History

#1 Updated by fao89 3 months ago

  • Tracker changed from Issue to Task
  • % Done set to 0
  • Sprint set to Sprint 73

#2 Updated by lmjachky 3 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to lmjachky

#3 Updated by pulpbot 3 months ago

  • Status changed from ASSIGNED to POST

#4 Updated by rchan 3 months ago

  • Sprint changed from Sprint 73 to Sprint 74

#5 Updated by rchan 2 months ago

  • Sprint changed from Sprint 74 to Sprint 75

#6 Updated by Anonymous about 2 months ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#7 Updated by fao89 about 1 month ago

  • Sprint/Milestone set to 3.5.0

#8 Updated by pulpbot about 1 month ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF