Axis2
  1. Axis2
  2. AXIS2-3394

multipart/form-data problem at the RESTFul Service

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Axis2 1.3,Tomcat 5.5,JDK 1.5.0

      Description

      If a enctype="multipart/form-data request is sent by HTTP POST,
      I get the following exception:

      java.lang.ClassCastException: [Ljava.lang.String;
      at org.apache.axis2.builder.BuilderUtil.createSOAPMessageWithoutSchema(BuilderUtil.java:183)
      at org.apache.axis2.builder.BuilderUtil.buildsoapMessage(BuilderUtil.java:130)
      at org.apache.axis2.builder.MultipartFormDataBuilder.processDocument(MultipartFormDataBuilder.java:56)
      at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:160)
      at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:111)

      1. patch-files.zip
        8 kB
        takanori
      2. sample-files.zip
        2 kB
        takanori
      3. diff-files.zip
        8 kB
        takanori
      4. patch-files-20071220.zip
        4 kB
        takanori

        Activity

        Hide
        takanori added a comment -

        MultipartFormDataBuilder has a problem,
        so I attach files.

        p.s
        Attach files has some problem.
        I comment it into the source files.

        I hope it will be fixed the when you marge.

        Show
        takanori added a comment - MultipartFormDataBuilder has a problem, so I attach files. p.s Attach files has some problem. I comment it into the source files. I hope it will be fixed the when you marge.
        Hide
        takanori added a comment -

        This is a file uploading sample.

        Show
        takanori added a comment - This is a file uploading sample.
        Hide
        Keith Godwin Chapman added a comment -

        Hi Can you attach a diff instead of the whole fille. If you are on linux you can create the patch as svn diff>patch.txt on windows you can crete the diff using your svn client. With that applying patches are reliable.

        thanks,
        Keith.

        Show
        Keith Godwin Chapman added a comment - Hi Can you attach a diff instead of the whole fille. If you are on linux you can create the patch as svn diff>patch.txt on windows you can crete the diff using your svn client. With that applying patches are reliable. thanks, Keith.
        Hide
        takanori added a comment -

        I attach diff files.

        Show
        takanori added a comment - I attach diff files.
        Hide
        Keith Godwin Chapman added a comment -

        Fixed in revision 603805. Aplied modified version of the patch (did not include the formatting). Thanks Takanori. Also please avoid formatting the file when sending a patch cause it makes things difficult in figuring out the exact essence of the patch.

        Show
        Keith Godwin Chapman added a comment - Fixed in revision 603805. Aplied modified version of the patch (did not include the formatting). Thanks Takanori. Also please avoid formatting the file when sending a patch cause it makes things difficult in figuring out the exact essence of the patch.
        Hide
        takanori added a comment -

        I create the original DataSource, because MultipartFormDataBuilder class has a problem that the cache file is deleted.

        Show
        takanori added a comment - I create the original DataSource, because MultipartFormDataBuilder class has a problem that the cache file is deleted.
        Hide
        takanori added a comment -

        I said :
        > Attach files has some problem.
        > I comment it into the source files.

        So, I create the patch for the critical problem.
        Can you marge "patch-files-20071220.zip" ?

        Show
        takanori added a comment - I said : > Attach files has some problem. > I comment it into the source files. So, I create the patch for the critical problem. Can you marge "patch-files-20071220.zip" ?
        Hide
        Keith Godwin Chapman added a comment -

        Applied patch to revision 641770. Tested and verified

        Show
        Keith Godwin Chapman added a comment - Applied patch to revision 641770. Tested and verified

          People

          • Assignee:
            Keith Godwin Chapman
            Reporter:
            takanori
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development