Menu

#1083 imm: ccbCreate - default values for PRTA's do not reach PBE or special applier

4.3.3
fixed
None
defect
imm
nd
major
2014-09-17
2014-09-15
No

Runtime attributes (persistent or not) that are

  • part of a config object.
  • have a default value.
  • have not been explicitly assigned a value

Will not get the default value written to PBE or included in special applier
callback.

The problem is in the calculation in IF statement, which is always true if attr->flags contains SA_IMM_ATTR_RUNTIME flag.

                if((attr->mFlags & SA_IMM_ATTR_RUNTIME) && 
                  ~(attr->mFlags & SA_IMM_ATTR_PERSISTENT) &&
                  ~(attr->mFlags & SA_IMM_ATTR_NOTIFY)) {

Sign "~" should be replaced with "!".

Related

Tickets: #1083
Wiki: ChangeLog-4.3.3
Wiki: ChangeLog-4.4.1

Discussion

  • Anders Bjornerstedt

    I dont think they are trimmed from the PBE.
    Thewy are trimmed from the special-applier.

    /AnersBj


    From: Zoran Milinkovic [mailto:zmilinkovic@users.sf.net]
    Sent: den 15 september 2014 15:30
    To: opensaf-tickets@lists.sourceforge.net
    Subject: [tickets] [opensaf:tickets] #1083 imm: runtime attributes are trimmed away for PBE


    [tickets:#1083]http://sourceforge.net/p/opensaf/tickets/1083 imm: runtime attributes are trimmed away for PBE

    Status: unassigned
    Milestone: 4.3.3
    Created: Mon Sep 15, 2014 01:29 PM UTC by Zoran Milinkovic
    Last Updated: Mon Sep 15, 2014 01:29 PM UTC
    Owner: nobody

    Runtime attributes are trimmed away for PBE.

    The problem is in the calculation in IF statement, which is always true if attr->flags contains SA_IMM_ATTR_RUNTIME flag.

                if((attr->mFlags & SA_IMM_ATTR_RUNTIME) &&
                  ~(attr->mFlags & SA_IMM_ATTR_PERSISTENT) &&
                  ~(attr->mFlags & SA_IMM_ATTR_NOTIFY)) {
    

    Sign "~" should be replaced with "!".


    Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is subscribed to https://sourceforge.net/p/opensaf/tickets/https://sourceforge.net/p/opensaf/tickets

    To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.

     

    Related

    Tickets: #1083
    Tickets: tickets

  • Anders Bjornerstedt

    • summary: imm: runtime attributes are trimmed away for PBE --> imm: runtime attributes are trimmed away for Special-applier
     
  • Anders Bjornerstedt

    • summary: imm: runtime attributes are trimmed away for Special-applier --> imm: persistent runtime attributes are trimmed away for Special-applier
     
  • Anders Bjornerstedt

    • summary: imm: persistent runtime attributes are trimmed away for Special-applier --> imm: ccbCreate - default values for PRTA's do not reach PBE or special applier
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,11 @@
    -Runtime attributes are trimmed away for PBE.
    +Runtime attributes (persistent or not) that are
    +
    +  - part of a config object.
    +  - have a default value.
    +  - have not been explicitly assigned a value
    +
    +Will not get the default value written to PBE or included in special applier
    +callback.
    
     The problem is in the calculation in IF statement, which is always true if attr->flags contains SA_IMM_ATTR_RUNTIME flag.
    
     
  • Anders Bjornerstedt

    • status: unassigned --> assigned
    • assigned_to: Zoran Milinkovic
     
  • Anders Bjornerstedt

    • assigned_to: Zoran Milinkovic --> Anders Bjornerstedt
     
  • Anders Bjornerstedt

    • status: assigned --> accepted
     
  • Anders Bjornerstedt

    • status: accepted --> review
     
  • Anders Bjornerstedt

    changeset: 5820:1f9c742d88af
    tag: tip
    parent: 5816:2d9a9b89a37e
    user: Anders Bjornerstedt anders.bjornerstedt@ericsson.com
    date: Tue Sep 16 10:18:06 2014 +0200
    summary: imm: ccbCreate - Fix expression for appending default values to ccb-create-callback [#1083]

    changeset: 5819:5ba2ce6686ff
    branch: opensaf-4.5.x
    parent: 5815:a26f26296454
    user: Anders Bjornerstedt anders.bjornerstedt@ericsson.com
    date: Tue Sep 16 10:18:06 2014 +0200
    summary: imm: ccbCreate - Fix expression for appending default values to ccb-create-callback [#1083]

    changeset: 5818:ab467ca21b2b
    branch: opensaf-4.4.x
    parent: 5814:904b98fa3101
    user: Anders Bjornerstedt anders.bjornerstedt@ericsson.com
    date: Tue Sep 16 10:18:06 2014 +0200
    summary: imm: ccbCreate - Fix expression for appending default values to ccb-create-callback [#1083]

    changeset: 5817:0ebd64fc24f4
    branch: opensaf-4.3.x
    parent: 5813:0a124b589f61
    user: Anders Bjornerstedt anders.bjornerstedt@ericsson.com
    date: Tue Sep 16 10:18:06 2014 +0200
    summary: imm: ccbCreate - Fix expression for appending default values to ccb-create-callback [#1083]

     

    Related

    Tickets: #1083

  • Anders Bjornerstedt

    • status: review --> fixed
     

Log in to post a comment.