Project

Profile

Help

Issue #2985

closed

I can create importers/publishers for any repo while targeting a specific repo URL

Added by bizhang over 6 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 25
Quarter:

Description

I have two repositories- repo1 and repo2. If I POST to the repo1 URL to create an importer/publisher, I can target repo2 with the repository field so that the importer/publisher gets created on repo2 instead.

http --auth admin:admin --json POST http://127.0.0.1:3000/api/v3/repositories/repo1/publishers/file/ name='publisher1' feed_url='asdfasdf' download_policy='IMMEDIATE' repository='http://127.0.0.1:3000:3000/api/v3/repositories/repo2/'

This is not what I would expect from a RESTful API; I would expect any request to the repo1 url to target the repo1 resource, and not have to pass an additional repository parameter.

Actions #1

Updated by ttereshc over 6 years ago

  • Sprint/Milestone set to 43
  • Triaged changed from No to Yes

This issue is likely present for any nested URLs.

Actions #2

Updated by bizhang over 6 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bizhang
Actions #3

Updated by jortel@redhat.com over 6 years ago

  • Sprint/Milestone changed from 43 to 44
Actions #4

Updated by bizhang over 6 years ago

  • Status changed from ASSIGNED to POST

Added by werwty over 6 years ago

Revision 5c7aed9a | View on GitHub

Set the href_writable on RepositoryRelatedFields

The parent repo will now be determined by the url instead of by request parameters.

closes #2985 https://pulp.plan.io/issues/2985

Added by werwty over 6 years ago

Revision 5c7aed9a | View on GitHub

Set the href_writable on RepositoryRelatedFields

The parent repo will now be determined by the url instead of by request parameters.

closes #2985 https://pulp.plan.io/issues/2985

Actions #5

Updated by werwty over 6 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by bmbouter about 6 years ago

  • Sprint set to Sprint 25
Actions #7

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (44)
Actions #8

Updated by daviddavis about 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #9

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #10

Updated by bmbouter over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF