984ddd Fix: liblrmd: Limit node name addition to proxied attrd update commands

1 file Authored by Reid Wahl 4 years ago, Committed by Packit Service 4 years ago,
    Fix: liblrmd: Limit node name addition to proxied attrd update commands
    
    remote_proxy_cb() currently adds the remote node's name as
    PCMK__XA_ATTR_NODE_NAME if that attribute is not explicitly set. This is
    necessary for attrd update commands. For those, lack of an explicit node
    name means to use the local node. Since requests are proxied to full
    nodes, the node hosting the remote resource would be incorrectly treated
    as the "local node", causing the attribute to be updated for the wrong
    node.
    
    However, for other commands, this is not the case. Lack of an explicit
    node name can mean "all nodes" (as for CLEAR_FAILURE and QUERY), or a
    node name may be ignored (as for REFRESH). In these cases (the
    non-update commands), we don't want to add a node name automatically if
    it's not explicitly set.
    
    Resolves: RHBZ#1907726
    
    Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
    
    patch_name: 018-rhbz1907726.patch
    present_in_specfile: true
    location_in_specfile: 18
    squash_commits: true
    
        
file modified
+5 -1