Project

General

Profile

Actions

Bug #21465

closed

Setting owner does not work under non-admin user in some taxonomy

Added by Marek Hulán about 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Organizations and Locations
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The host owner association is polymorphic belongs_to and in case we're in specific Organization, it applies default scope from Taxonomix, therefore it can't find owner by just calling self.owner. This causes problems in Katello when register content host in a specific org.

The issue can be probably reproduced also in core, make sure a host is owner by e.g. admin who's not in any organization, then under user in specific org/loc try to edit it. The before_validation fitler that sets the owner will fail to find self.owner even though self.owner_id is 3 and self.owner_type is admin.

The similar fix like for #16363 should help


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #16363: "Unknown member type" error when deleting or editing usergroups with users from different locationsClosedMarek Hulán08/29/2016Actions
Actions #1

Updated by Marek Hulán about 7 years ago

  • Description updated (diff)
Actions #2

Updated by Marek Hulán about 7 years ago

  • Related to Bug #16363: "Unknown member type" error when deleting or editing usergroups with users from different locations added
Actions #3

Updated by The Foreman Bot about 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4954 added
Actions #4

Updated by Marek Hulán about 7 years ago

  • Target version set to 1.16.0-RC1
Actions #5

Updated by Marek Hulán about 7 years ago

  • Target version changed from 1.16.0-RC1 to 1.16.2
Actions #6

Updated by Marek Hulán about 7 years ago

  • Target version changed from 1.16.2 to 1.16.1
Actions #7

Updated by Marek Hulán almost 7 years ago

  • Target version changed from 1.16.1 to 238
Actions #8

Updated by Marek Hulán almost 7 years ago

  • Bugzilla link set to 1533044
Actions #9

Updated by Marek Hulán almost 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #10

Updated by Daniel Lobato Garcia almost 7 years ago

  • Translation missing: en.field_release set to 296
Actions #11

Updated by Marek Hulán almost 7 years ago

  • Translation missing: en.field_release changed from 296 to 330
Actions

Also available in: Atom PDF