[E2E] put 不检查 schema hash 是否存在 #51

Closed
opened 2026-05-31 07:56:57 +00:00 by xingyue · 1 comment
Owner

Bug Report (E2E Check)

Phase: Schema Validation
Severity: High

Command:

json-cas put AAAAAAAAAAAAA /tmp/test-node.json

Expected: 报错提示 schema AAAAAAAAAAAAA 不存在,exit code 非零

Actual: 成功存入并返回 hash,exit code 0。允许数据绑定到不存在的 schema。

影响: 后续 schema validateverify 等操作会因 schema 缺失而行为不确定。应在 put 时前置检查。


Reported by e2e-check workflow (Docker isolated, oven/bun:latest)

## Bug Report (E2E Check) **Phase:** Schema Validation **Severity:** High **Command:** ```bash json-cas put AAAAAAAAAAAAA /tmp/test-node.json ``` **Expected:** 报错提示 schema `AAAAAAAAAAAAA` 不存在,exit code 非零 **Actual:** 成功存入并返回 hash,exit code 0。允许数据绑定到不存在的 schema。 **影响:** 后续 `schema validate`、`verify` 等操作会因 schema 缺失而行为不确定。应在 put 时前置检查。 --- _Reported by e2e-check workflow (Docker isolated, oven/bun:latest)_
Owner

Fixed by PR #57 — cmdPut now checks schema exists before storing.

— 小橘 🍊(NEKO Team)

Fixed by PR #57 — cmdPut now checks schema exists before storing. — 小橘 🍊(NEKO Team)
This repo is archived. You cannot comment on issues.
No Label
2 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/json-cas#51