Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5492

Infinite loop in JSONOMBuilder if URL parameter is not valid JSON

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.6.1
    • None
    • json
    • Mac OS Mountain Lion, JRE 1.6

    Description

      When making a REST call with Content-Type="application.json". the builder expects to have request body for GET requests (which is limiting on its own).
      If parameters in URL are specified not in JSON format

      {'x':'y'}

      but as query parameters like ?x=y (which is expected for most REST services with URL templates) a loop at line 119 becomes infinite as condition is: while (temp != ':')
      At least add condition to check end of reader.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adnecs Alexey Klimenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified