Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.1.0.DR11, 7.1.0.DR16, 7.1.0.DR17, 7.1.0.DR18, 7.1.0.DR19
    • Fix Version/s: 7.1.0.ER1
    • Component/s: Clustering
    • Labels:
      None
    • Target Release:
    • Steps to Reproduce:
      Hide

      Set up AUTH, try to start two servers in a cluster.

      /subsystem=jgroups/stack=udp2/protocol=AUTH:add()
      /subsystem=jgroups/stack=udp2/protocol=AUTH/property=auth_class:add(value=org.jgroups.auth.MD5Token)
      /subsystem=jgroups/stack=udp2/protocol=AUTH/property=auth_value:add(value=mytoken)
      /subsystem=jgroups/stack=udp2/protocol=AUTH/property=token_hash:add(value=MD5)
      
      Show
      Set up AUTH , try to start two servers in a cluster. /subsystem=jgroups/stack=udp2/protocol=AUTH:add() /subsystem=jgroups/stack=udp2/protocol=AUTH/property=auth_class:add(value=org.jgroups.auth.MD5Token) /subsystem=jgroups/stack=udp2/protocol=AUTH/property=auth_value:add(value=mytoken) /subsystem=jgroups/stack=udp2/protocol=AUTH/property=token_hash:add(value=MD5)

      Description

      When setting up AUTH protocol and starting two servers, they fail to establish a view, because they never authenticate to each other:

      Server 1:

      12:21:59,348 WARN  [org.jgroups.protocols.AUTH] (thread-2) rjanik: failed to validate AuthHeader (token: SimpleToken) from node2; dropping message
      

      Server 2:

      12:23:17,370 WARN  [org.jgroups.protocols.AUTH] (thread-1) node2: failed to validate AuthHeader (token: SimpleToken) from node2; dropping message
      12:23:17,371 WARN  [org.jgroups.protocols.AUTH] (thread-1) node2: failed to validate AuthHeader (token: SimpleToken) from node2; dropping message
      12:23:17,372 WARN  [org.jgroups.protocols.AUTH] (thread-2) node2: failed to validate AuthHeader (token: SimpleToken) from rjanik; dropping message
      12:23:22,370 WARN  [org.jgroups.protocols.pbcast.GMS] (MergeTask,ee,node2) node2: merge is cancelled: did not get any merge responses from partition coordinators
      

      AUTH does not set up the auth_value field for the SimpleToken and MD5Token when creating them and it looks like setAuthToken is not called later. Those tokens then fail when authenticating, referencing the auth_value field.

      AUTH:

          public void setAuthClass(String class_name) throws Exception {
              Object obj=Class.forName(class_name).newInstance();
              auth_token=(AuthToken)obj;
              auth_token.setAuth(this);
          }
      

      MD5Token:

                  return (this.auth_value != null) && (serverToken.auth_value != null)
                    && (this.auth_value.equalsIgnoreCase(serverToken.auth_value));
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pferraro Paul Ferraro
                  Reporter:
                  rjanik Richard Janik
                  Tester:
                  Richard Janik
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: