Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-580

When upload file size exceeds limitation of provider, consumer will return a confusing response

    XMLWordPrintableJSON

Details

    Description

      Test based on 1.0.0.B009

      Let user upload file to consumer, and then consumer upload file to provider. If the file size is under the limitation of consumer but exceeds the limitation of provider, the provider will throw a NullPointerException, but the consumer will response "method POST, path /upload/multipartFileUpload/, statusCode 500, reasonPhrase Internal Server Error, response content-type null is not supported".(In the log of consumer, no error is printed)
      provider log:

      consumer response:

      Attachments

        1. compile_warning.PNG
          4 kB
          Haishi Yao
        2. consumerResponse.PNG
          14 kB
          Haishi Yao
        3. providerExceptionLog.PNG
          72 kB
          Haishi Yao

        Issue Links

          Activity

            People

              yaohaishi Haishi Yao
              yaohaishi Haishi Yao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: