Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST API add bug note fixes #1981

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

dregad
Copy link
Member

@dregad dregad commented Mar 24, 2024

  • HTTP 500 when calling POST /api/rest/issues/{{id}}/notes with invalid view_state #34348
  • Invalid language string in helper_parse_view_state() #34359

Remove array type on $p_view_state parameter which was causing a PHP
TypeError when REST API client was providing an unexpected value.

Throw a ClientException if $p_view_state is not an array.

Fixes #34348
Lanuage string `view_state` does not exist. This was causing application
error 300 ERROR_LANG_STRING_NOT_FOUND to be triggered if one of the
invalid states were reached.

Replacing invalid string by `bugnote_view_state`.

Fixes #34359
@dregad dregad self-assigned this Mar 24, 2024
@dregad dregad merged commit 8365ddf into mantisbt:master-2.26 Mar 28, 2024
@dregad dregad deleted the i34348-invalid_view_state branch March 28, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant