View Issue Details

IDProjectCategoryView StatusLast Update
761RackTablesdefaultpublic2013-03-04 18:34
Reporterjohnbstewart Assigned Toadoom42  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSCentosOS Version6.3
Product Version0.20.3 
Target Version0.20.4Fixed in Version0.20.4 
Summary761: Removing attribute causes error when trying to delete object
DescriptionI am starting with fresh install, was attempting to customize the attributes for our setup. Upon removing certain attributes and then adding a new object (server), I recieve this error when trying to delete said object:

Internal error: Argument '$attr_type' of value 'NULL' is invalid. (Unknown attribute type found in object #1, attribute #3)

Is it not possible to remove the default attributes?
Steps To ReproduceGo to: Configuration > Attributes > Edit Map:
Remove (-) all "Applies to" entries next to FQDN
Go to "Edit Attributes" tab and remove FQDN

Go to: Objects > Add more > Add "Server" object type
Go to "Browse" > click on newly created Server > Properties > Delete

Error then listed:
Internal error: Argument '$attr_type' of value 'NULL' is invalid. (Unknown attribute type found in object #1, attribute #3)
TagsNo tags attached.

Relationships

related to 771 closedadoom42 Prevent deletion of certain AttributeMap entries 

Activities

adoom42

adoom42

2013-03-02 23:06

administrator   ~0001183

You shouldn't delete the default attributes. Starting with 0.20.4, you won't be able to (at least not from the web interface). If you don't want to use a particular attribute, you can dissociate it from all object types.

To restore the FQDN attribute, run this manually:
INSERT INTO `Attribute` (`id`,`type`,`name`) VALUES (3,'string','FQDN');

You should do the same for any other attributes you've deleted to prevent future issues. See install.php for details.

Issue History

Date Modified Username Field Change
2013-02-26 11:48 johnbstewart New Issue
2013-03-02 23:06 adoom42 Note Added: 0001183
2013-03-02 23:06 adoom42 Assigned To => adoom42
2013-03-02 23:06 adoom42 Status new => closed
2013-03-02 23:06 adoom42 Resolution open => fixed
2013-03-02 23:06 adoom42 Fixed in Version => 0.20.4
2013-03-02 23:06 adoom42 Target Version => 0.20.4
2013-03-04 18:34 adoom42 Relationship added related to 771