Repository navigation
fix(assembly): refuse an HTML NUL on the assembly host - #5429
Merged
Merged
Conversation
Saving HTML that contains a NUL does not write. Ordinary HTML still saves. Cancel and HTTP 400 are not success. Single-line and long-text NUL gates are unchanged. Fixes #5412 > Co-Authored by Grok Build 1.0.46 using grok-4.7 with agent night-issue-prs.
Machine review of the issue 5412 branch. No in-diff bugs. > Co-Authored by Grok Build 1.0.46 using grok-4.7 with agent night-issue-prs.
Independent review of the assembly HTML NUL change. No in-diff bugs. > Co-Authored by Grok Build 1.0.46 using grok-4.7 with agent night-issue-prs-erlang.
Collaborator
Author
|
LGTM. Independent Erlang review: no in-diff bugs. Recommendation: approve. Preexisting complexity and the Ollama CUDA failure do not block. Squash-merging.
|
1 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Assembly host save refuses an HTML value that contains a NUL. The previous markup stays after reload. Ordinary HTML still saves. Cancel does not write. HTTP 400 is not success. The single-line and long-text NUL gates are unchanged.
Parent: #4530. Slice 111.
Fixes #5412
Operator: Grok: night-issue-prs (model grok-4.7)
Test plan
H2 proof used mocked assembly routes in
tests/assembly-html-nul-field.spec.js(4 passed). Console errors on those paths were asserted empty. CMSserver.logadded only login-success INFO lines.Checklist
product-docs/8.2/admin/content-explorer.md(Active Assembly HTML NUL)modules/perc-qa-automation/frontend/tests/assembly-html-nul-field.spec.jsBuild evidence
modules_built: WebUI, modules/perc-qa-automation
downstream_checked: none (no public Java API or
final/sealedchange)cd WebUI && JAVA_HOME=/usr/lib/jvm/java-21-openjdk rtk mvn clean install— BUILD SUCCESS. JavaTests run: 69, Failures: 0, Errors: 0, Skipped: 0. VitestTest Files 747 passed,Tests 7245 passed.overlayFields.test.ts61 passed,AssemblyHost.test.tsx123 passed.cd modules/perc-qa-automation && JAVA_HOME=/usr/lib/jvm/java-21-openjdk rtk mvn clean install— BUILD SUCCESS. No tests to run (Playwright is not bound to the default Maven test phase).UI proof (C5)
python3 docker/scripts/perc-devctl.py qa-up --skip-image-build --then-qa-deploy-webuiRESULT:OKTEST_CMS_URL=http://127.0.0.1:9993containerperc-matrix-cms-h2generated-webui/cm/modernand restarted Jetty inside the cell (notdocker restart).python3 docker/scripts/perc-devctl.py qa-health—RESULT:OKHEALTH:healthyHTTP:200cd modules/perc-qa-automation/frontend && TEST_CMS_URL=http://127.0.0.1:9993 ADMIN_USERNAME=Admin TEST_DB_TYPE=h2 TEST_PRODUCT=cms rtk npm run test:surface -- --path tests/assembly-html-nul-field.spec.jsassertQuiet). server.log-clean=yes (new lines were login-success INFO only).python3 docker/scripts/perc-devctl.py qa-downafter the run.Pre-push local code review
Summary
Machine analysis found 3 finding(s), 0 bug(s).
Scope
Recommendation
approve
Gate
Issues
Issue 1 -- Severity: bug
complexity.cognitivearborist-metricshandleSaveFieldscognitive=49 (max 15), cyclomatic=46 (max 15)Issue 2 -- Severity: suggestion
complexity.cognitivearborist-metricsreadNodeValuecognitive=20 (max 15), cyclomatic=15 (max 15)Issue 3 -- Severity: suggestion
File: review
Rule:
llm.errorTool:
llmDescription: model
ollama-dev-coderfailed: http: status 500 Internal Server Error body {"error":{"message":"llama-server process has terminated: exit status 1: cudaMalloc failed: out of memory\nalloc_tensor_range: failed to allocate CUDA0 buffer of size 5064192000\nerror loading model: unable to allocate CUDA0 buffer","type":"api_error","param":null,"code":null}}Status: open
Independent gate: approve. In-diff blocking bugs: 0. Preexisting
handleSaveFieldscomplexity does not block.readNodeValuecomplexity is a suggestion. The Ollama CUDA failure is fail-open, not a product defect. Report:docs/ai-generated/code-reviews/pr-5429-erlang.md.