Skip to content
This repository has been archived by the owner. It is now read-only.

[dev.icinga.com #3423] Bad Attributes during create user #954

Closed
icinga-migration opened this issue Nov 5, 2012 · 5 comments

Comments

Projects
None yet
1 participant
@icinga-migration
Copy link
Member

commented Nov 5, 2012

This issue has been migrated from Redmine: https://dev.icinga.com/issues/3423

Created by ossmon on 2012-11-05 14:52:32 +00:00

Assignee: mhein
Status: Resolved (closed on 2012-12-19 15:49:12 +00:00)
Target Version: 1.8.2
Last Update: 2013-02-11 17:49:34 +00:00 (in Redmine)

Icinga Version: 1.8.1
Icinga Web Version: 1.8.0
IDO Version: 1.8.1
OS Version: RHEL 6.1
DB Type: MySQL
DB Version: 5.1.61
Browser Version: Firefox 11.0

When i create a new user without to specify any attributes (for example credentials, roles, customvariable,...), the user is saved with more information that i set.

When i load the user in the admin ui after creation, i see that

  • all the credentials are set
  • some customvariables are set (sometimes without variable and value as in the screenshot). It seems that sometimes the new user inherit the custom variables from the last user that have some custom variables set (i'am not sure).

CreateUserBadCredentialsAndCustomvariable.JPG

Attachments

Changesets

2012-12-19 13:17:21 +00:00 by jmosshammer 6596265

Fixed wrong credentials being given when user without credentials is being created (fixes #3423)

2012-12-20 15:35:52 +00:00 by jmosshammer 7208f5f

Fixed wrong credentials being given when user without credentials is being created (fixes #3423)
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Nov 7, 2012

Updated by ossmon on 2012-11-07 13:57:15 +00:00

I have done some more tests:

case 1: there are many users (in my case 28) and nobody has restrictions with custom variables => after save the new user has 2 empty custom variables (as in the screenshot)

case 2: there are many users (in my case 28) and one user (in my case user1 in the middle of the list, sorted by id), has restrictions with two custom variables (one host and one service custom variable) => after save the new user user2 has the same custom variables than user1 with the two custom variables. And when you delete user2, user1 lost its custom variables.

One another problem is that it is not possible to define more than one custom variable per type (host or service).

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Nov 20, 2012

Updated by mfriedrich on 2012-11-20 15:09:31 +00:00

  • Status changed from New to Assigned
  • Assigned to set to mhein
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Dec 19, 2012

Updated by jmosshammer on 2012-12-19 13:32:36 +00:00

I fixed this in my jmosshammer/performance branch, will be in 1.8.2

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Dec 19, 2012

Updated by jmosshammer on 2012-12-19 15:49:12 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 6596265.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Feb 11, 2013

Updated by mfrosch on 2013-02-11 17:49:34 +00:00

  • Target Version set to 1.8.2

@icinga-migration icinga-migration added this to the 1.8.2 milestone Jan 17, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.