Uploaded image for project: 'SiteWhere'
  1. SITEWHERE-348

Duplicate keys in REST services generate 500 rather then 409

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.9.0
    • Component/s: Core
    • Labels:
      None

      Description

      The REST services currently return a 500 error code for duplicate keys due to exception handling in the API implementations. Instead, a 409 (conflict) error code should be returned to more clearly indicate what happened and be consistent with expected REST behaviors.

        Attachments

          Activity

            People

            • Assignee:
              dadams Derek Adams [Administrator]
              Reporter:
              dadams Derek Adams [Administrator]
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Stride room