Uploaded image for project: 'Rampart/C'
  1. Rampart/C
  2. RAMPARTC-23

Rampart does not work correctly with mtom.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Current
    • Current
    • None
    • None

    Description

      Rampart with signature and encryption enabled does not work with mtom.
      With encryption it does not send the attachment to the server.

      With Signature it seg faults with the following back trace.

      #0 0xb7a4027b in c14n_normalize_text (text=0x0, ctx=0x817d6e8) at c14n.c:1090
      #1 0xb7a3f660 in c14n_apply_on_text (node=0x8176a10, ctx=0x817d6e8) at c14n.c:713
      #2 0xb7a3f70d in c14n_apply_on_node (node=0x8176a10, ctx=0x817d6e8) at c14n.c:738
      #3 0xb7a3f99e in c14n_apply_on_element (node=0x8176948, ctx=0x817d6e8) at c14n.c:835
      #4 0xb7a3f6f9 in c14n_apply_on_node (node=0x8176948, ctx=0x817d6e8) at c14n.c:735
      #5 0xb7a3f99e in c14n_apply_on_element (node=0x8176790, ctx=0x817d6e8) at c14n.c:835
      #6 0xb7a3f6f9 in c14n_apply_on_node (node=0x8176790, ctx=0x817d6e8) at c14n.c:735
      #7 0xb7a3f99e in c14n_apply_on_element (node=0x8176d08, ctx=0x817d6e8) at c14n.c:835
      #8 0xb7a3f6f9 in c14n_apply_on_node (node=0x8176d08, ctx=0x817d6e8) at c14n.c:735
      #9 0xb7a3f44d in oxs_c14n_apply_stream (env=0x804b1f0, doc=0x0, comments=0, stream=0x817ceb0, exclusive=1, ns_prefixes=0x0, node=0x8176d08)
      at c14n.c:593
      #10 0xb7a3f53b in oxs_c14n_apply (env=0x804b1f0, doc=0x0, comments=0, outbuf=0xbfe54634, exclusive=1, ns_prefixes=0x0, node=0x8176d08)
      at c14n.c:671
      #11 0xb7a3f2f2 in oxs_c14n_apply_algo (env=0x804b1f0, doc=0x0, outbuf=0xbfe54634, ns_prefixes=0x0, node=0x8176d08,
      algo=0xb7a428bc "http://www.w3.org/2001/10/xml-exc-c14n#") at c14n.c:552
      #12 0xb7a3adbe in oxs_transforms_exc_c14n (env=0x804b1f0, input=0x8176d08, input_dtype=OXS_TRANSFORM_TYPE_NODE, output=0xbfe5467c)
      at transforms_factory.c:47
      #13 0xb7a391a0 in oxs_xml_sig_transform_n_digest (env=0x804b1f0, node=0x8176d08, transforms=0x817b280,
      digest_mtd=0x817b658 "http://www.w3.org/2000/09/xmldsig#sha1") at xml_signature.c:86
      #14 0xb7a39496 in oxs_xml_sig_build_reference (env=0x804b1f0, parent=0x817c338, sign_part=0x817b268) at xml_signature.c:152
      #15 0xb7a39889 in oxs_xml_sig_sign (env=0x804b1f0, sign_ctx=0x817be48, parent=0x8177638, sig_node=0xbfe54790) at xml_signature.c:268
      #16 0xb7aa8112 in rampart_sig_sign_message (env=0x804b1f0, msg_ctx=0x8176ad8, rampart_context=0x81770c8, soap_envelope=0x8175908,
      sec_node=0x8177638) at rampart_signature.c:369
      #17 0xb7aa368e in rampart_shb_build_message (env=0x804b1f0, msg_ctx=0x8176ad8, rampart_context=0x81770c8, soap_envelope=0x8175908)
      at rampart_sec_header_builder.c:213
      #18 0xb7a9ce73 in rampart_out_handler_invoke (handler=0x8094000, env=0x804b1f0, msg_ctx=0x8176ad8) at rampart_out_handler.c:133
      #19 0xb7e7b85b in axis2_handler_invoke (handler=0x8094000, env=0x804b1f0, msg_ctx=0x8176ad8) at handler.c:91
      #20 0xb7e7f57b in axis2_phase_invoke (phase=0x80a4cc0, env=0x804b1f0, msg_ctx=0x8176ad8) at phase.c:199
      #21 0xb7e84bc0 in axis2_engine_invoke_phases (engine=0x8175350, env=0x804b1f0, phases=0x815f5c8, msg_ctx=0x8176ad8) at engine.c:574
      #22 0xb7e83bdc in axis2_engine_send (engine=0x8175350, env=0x804b1f0, msg_ctx=0x8176ad8) at engine.c:131
      #23 0xb7eab3cc in axis2_op_client_two_way_send (env=0x804b1f0, msg_ctx=0x8176ad8) at op_client.c:1048
      #24 0xb7eaa329 in axis2_op_client_execute (op_client=0x8176d80, env=0x804b1f0, block=1) at op_client.c:436
      #25 0xb7eaced7 in axis2_svc_client_send_receive_with_op_qname (svc_client=0x804b3f8, env=0x804b1f0, op_qname=0x8178d38, payload=0x8176790)
      at svc_client.c:735
      #26 0xb7ead0bf in axis2_svc_client_send_receive (svc_client=0x804b3f8, env=0x804b1f0, payload=0x8176790) at svc_client.c:800
      #27 0x080490ae in main (argc=1, argv=0xbfe54c34) at mtom_client.c:151

      Attachments

        Activity

          People

            dumindu Pallewela Perera
            manjula peiris Manjula Peiris
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: