Uploaded image for project: 'Wink'
  1. Wink
  2. WINK-339

org.apache.wink.test.mock.MockHttpServletRequestWrapper doesn't handle getContentType() and parameter related methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.2
    • 1.1.2
    • Testsuite
    • None
    • Patch Available

    Description

      We have a MockHttpServletRequestWrapper that extends from org.springframework.mock.web.MockHttpServletRequest. The base class uses instance vars for certain header and it doesn't look up from the headers, for example, getContentType(). The other thing is that it doesn't handle POSTed form (the parameters are in the body) for parameter related calls.

      I'm providing a patch to fix them.

      Attachments

        1. rfeng.diff
          4 kB
          Zhaohui Feng
        2. test.diff
          3 kB
          Zhaohui Feng

        Activity

          People

            Unassigned Unassigned
            rfeng Zhaohui Feng
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: