3 Replies Latest reply on Feb 28, 2008 2:41 PM by mrostan

    Signature is invalid error when the message contains \r

    mrostan

      Hi.
      Well, I know it seems hard to believe.
      The signature verification fails if a string argument contains a \r character.

      To verify it simply modify the JAX-WS SimpleSignTestCase and change Kermit to Ke\r\nmit (I have tested it with \r\n, but if you remove \r it works)

      in0.setMsg("Ke\r\nmit");
      


      I was debugging the JBossWS 2.0.1 and 2.0.3 sources, but I didn't find the problem.

      Someboy knows if this problem is something related to canonicalization, or something like that?
      Maybe \r is a restricted character, but I think it should be escaped automatically

      Thanks,
      Martin