Skip to content
Snippets Groups Projects
Commit b6f3e80f authored by Jim Sheckard's avatar Jim Sheckard
Browse files

uniform_weblog_digging: Strings where strings are wanted, and the extended...

parent 6922765b
No related branches found
No related tags found
3 merge requests!1059Catchup 2.7 with main,!1058Draft: Rebase 2.7 on main,!1026uniform_weblog_digging: Strings where strings are wanted, and the extended...
Pipeline #6331 passed
...@@ -202,7 +202,7 @@ class WorkflowWorkingDirRestService: ...@@ -202,7 +202,7 @@ class WorkflowWorkingDirRestService:
) )
qa_notes_text = "" qa_notes_text = ""
with open(str(qa_notes_path), "r") as qa_notes: with open(qa_notes_path, "r") as qa_notes:
qa_notes_text = qa_notes.read() qa_notes_text = qa_notes.read()
return Response(status_int=http.HTTPStatus.OK, json_body={"resp": f"{qa_notes_text}"}) return Response(status_int=http.HTTPStatus.OK, json_body={"resp": f"{qa_notes_text}"})
...@@ -223,7 +223,7 @@ class WorkflowWorkingDirRestService: ...@@ -223,7 +223,7 @@ class WorkflowWorkingDirRestService:
}, },
) )
with open(str(qa_notes_path), "w") as qa_notes: with open(qa_notes_path, "w") as qa_notes:
# sanitize input before writing/persisting # sanitize input before writing/persisting
# \\u0000 is an invalid character that is incompatible with postgres json columns # \\u0000 is an invalid character that is incompatible with postgres json columns
# from StackOverflow: https://stackoverflow.com/questions/63092267/how-to-handle-api-responsesjson-containing-x00-or-u0000-in-its-data-and-s # from StackOverflow: https://stackoverflow.com/questions/63092267/how-to-handle-api-responsesjson-containing-x00-or-u0000-in-its-data-and-s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment