Skip to content

Office ID is Case Sensitive and returns empty timeseries group if wrong case is input #1562

@msweier

Description

@msweier

Describe the bug
At timeseries group endpoint, the office ID is case sensitive for the owning office. If the wrong case is provided an empty group is returned.

Expected behavior
I would expect some sort of error stating that the group couldn't be found.

To Reproduce

curl -X 'GET' \
  'https://DEV/cwms-data/timeseries/group/Web?office=mvp&category-office-id=mvp&group-office-id=mvp&category-id=MVP%20Dissemination&_cb=1770150293517' \
  -H 'accept: application/json' \
  -H 'Cache-Control: no-cache, no-store, max-age=0' \
  -H 'Pragma: no-cache'

returns

{
  "office-id": "MVP",
  "id": "Web",
  "time-series-category": {
    "office-id": "MVP",
    "id": "MVP Dissemination"
  },
  "assigned-time-series": []
}

Where

curl -X 'GET' \
  'https://DEV/cwms-data/timeseries/group/Web?office=MVP&category-office-id=MVP&group-office-id=MVP&category-id=MVP%20Dissemination&_cb=1770151790542' \
  -H 'accept: application/json' \
  -H 'Cache-Control: no-cache, no-store, max-age=0' \
  -H 'Pragma: no-cache'

returns the group as expected.

CDA Version (please complete the following information):

2026.02.03-develop

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions