Ticket #40 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by jasper

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.

comment:2 Changed 3 years ago by jasper

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in commit #138

comment:3 Changed 3 years ago by michelpons

  • Milestone set to Maintenance of Phase II
Note: See TracTickets for help on using tickets.