Project

Profile

Help

Story #1520

closed

make relative_url as supported optional key in repo export distributor creation

Added by ipanova@redhat.com almost 9 years ago. Updated over 5 years ago.

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

100%

Estimated time:
Platform Release:
2.8.0
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

$ curl -H "Accept: application/json" -X POST -k -u admin:admin -d '{"distributor_type_id": "export_distributor", "distributor_config": {"http": false, "https":true, "relative_url":"123"}}' 'https://localhost/pulp/api/v2/repositories/test/distributors/'|python -m json.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   527  100   407  100   120   1409    415 --:--:-- --:--:-- --:--:--  1413
{
    "_href": "/pulp/api/v2/repositories/test/distributors/",
    "args": [
        "Configuration key 'relative_url' is not supported"
    ],
    "error": {
        "code": "PLP0000",
        "data": {},
        "description": "Configuration key 'relative_url' is not supported",
        "sub_errors": []
    },
    "error_message": "Configuration key 'relative_url' is not supported",
    "exception": null,
    "http_request_method": "POST",
    "http_status": 400,
    "traceback": null
}

Related issues

Blocks RPM Support - Story #1398: pulp group exporter does not honor relative_urlCLOSED - CURRENTRELEASEpcreech

Actions

Also available in: Atom PDF