Project

General

Profile

Bug #6195

403 when trying to remove a content view version

Added by Walden Raines almost 5 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Steps to Reproduce:

1. Create a content view
1. Publish a new version
1. Attempt to remove the version
1. Note 403, even as admin or a user with the correct permissions

Associated revisions

Revision 2f3006da (diff)
Added by Partha Aji almost 5 years ago

Fixes #6195, bz1109386 - 403 on cv version delete

Content view remove call specifying versions and envs to be removed / unasssociated
had a minor glitch -> env_ids - @view.environment_ids.map(&:to_s)).empty?
env_ids = [1,2,3] while @view.environment_ids.map(&:to_s) = [1,2,3]
Problem was API was treating it like a list of strings while params code changed it to ints
This commit should fix that issue

Revision f2423e86
Added by Partha Aji almost 5 years ago

Merge pull request #4279 from parthaa/cvv-perms-fix

Fixes #6195, bz1109386 - 403 on cv version delete

History

#1 Updated by Partha Aji almost 5 years ago

  • Bugzilla link set to https://bugzilla.redhat.com/show_bug.cgi?id=1109386

#2 Updated by Eric Helms almost 5 years ago

  • Triaged changed from No to Yes

#3 Updated by Eric Helms almost 5 years ago

  • Target version changed from 45 to 48

#5 Updated by Partha Aji almost 5 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset katello|commit:2f3006da1d878e6d63f4744adf79cabbd2607f0e.

#6 Updated by Eric Helms almost 5 years ago

  • Legacy Backlogs Release (now unused) set to 13

Also available in: Atom PDF