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-20071220.zip
        4 kB
        takanori
      2. diff-files.zip
        8 kB
        takanori
      3. sample-files.zip
        2 kB
        takanori
      4. patch-files.zip
        8 kB
        takanori

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        3d 20h 29m 1 Keith Godwin Chapman 13/Dec/07 02:55
        Resolved Resolved Reopened Reopened
        7d 10h 58m 1 takanori 20/Dec/07 13:54
        Reopened Reopened Resolved Resolved
        97d 20h 42m 1 Keith Godwin Chapman 27/Mar/08 10:36
        Keith Godwin Chapman made changes -
        Resolution Fixed [ 1 ]
        Status Reopened [ 4 ] Resolved [ 5 ]
        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
        takanori made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        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" ?
        takanori made changes -
        Comment [ I create the original DataSource, because MultipartFormDataBuilder class has a problem that the cache file is deleted.
        ]
        takanori made changes -
        Attachment patch-files-20071220.zip [ 12372023 ]
        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.
        takanori made changes -
        Attachment patch-files-20071220.zip [ 12372020 ]
        takanori made changes -
        Attachment patch-files-20071220.zip [ 12372020 ]
        Keith Godwin Chapman made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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.
        Keith Godwin Chapman made changes -
        Assignee Keith Godwin Chapman [ keithgchapman ]
        takanori made changes -
        Attachment diff-files.zip [ 12371429 ]
        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 -

        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.
        takanori made changes -
        Attachment sample-files.zip [ 12371306 ]
        Hide
        takanori added a comment -

        This is a file uploading sample.

        Show
        takanori added a comment - This is a file uploading sample.
        takanori made changes -
        Field Original Value New Value
        Attachment patch-files.zip [ 12371305 ]
        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.
        takanori created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development