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

log more detail when user misuse the query parameter as request body in rest

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Java-Chassis

    Description

      As a dev get used to traditional springmvc development, if I need to post a request with customize type as its body, I just need to pass that in the methods argument without annotations. However, in Java Chassis, the argument in methods are query parameter by default. If I pass a customize instance as the parameter, it will throw exception saying it does not support complex type. This is very confusing. Maybe we should tell user to add the RequestBody annotation or when we detect the complex type in post request query parameter, we just take it as the request body?

      Attachments

        Activity

          People

            Unassigned Unassigned
            ericlee Eric Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: