Bug 1031220 - pulp.server.db.model.base.Models return None when accessing attributes that do not exist
Summary: pulp.server.db.model.base.Models return None when accessing attributes that d...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: Master
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: 2.4.0
Assignee: Michael Hrivnak
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-15 22:47 UTC by Randy Barlow
Modified: 2014-08-09 06:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-09 06:54:51 UTC
Embargoed:


Attachments (Terms of Use)

Description Randy Barlow 2013-11-15 22:47:53 UTC
Our base Model class has a very surprising property in that it will return None if attributes are accessed that do not exist. This is unexpected behavior. It would be more appropriate for an AttributeError to be raised.

Comment 1 Michael Hrivnak 2013-12-09 15:23:00 UTC
https://github.com/pulp/pulp/pull/732

Comment 2 Michael Hrivnak 2013-12-09 15:29:23 UTC
QE: I'm not sure how you'll want to verify this. There was not an incorrect behavior from a user standpoint. This was just a code change to make our lives much much easier, and the user experience deliberately did not change at all. Feel free to ping me for details.

Comment 3 Jeff Ortel 2014-04-03 13:36:00 UTC
build: 2.4.0-0.7.beta

Comment 4 Preethi Thomas 2014-07-07 13:13:09 UTC
Moving to verified as per https://bugzilla.redhat.com/show_bug.cgi?id=1031220#c2

Comment 5 Randy Barlow 2014-08-09 06:54:51 UTC
This has been fixed in Pulp 2.4.0-1.


Note You need to log in before you can comment on or make changes to this bug.