Ticket #40 (closed defect: fixed)
PMC registration fails for all users
Reported by: | jasper | Owned by: | jasper |
---|---|---|---|
Priority: | critical | Milestone: | Maintenance of Phase II |
Component: | Registrar | Version: | 1.2.0.0 |
Keywords: | Cc: |
Description
PMC registration fails for all users.
This statement
merge the writer key
(isAllUsers)?rootKey->allUsers:rootKey->currentUser=hive;
is not executed correctly, due to apparent operator precedence issues. After fixing with an additional pair of brackets it works as expected:
((isAllUsers)?rootKey->allUsers:rootKey->currentUser)=hive;
Change History
Note: See
TracTickets for help on using
tickets.
Interestingly the operators have the same precedence, so it may or may not compile ok:
https://en.cppreference.com/w/cpp/language/operator_precedence
The construct is used in a few other places in COBIA - but there the surrounding brackets were already present.