refactor: ValidationException — исключительная собственность WordPdfValidator
PR checks / web (pull_request) Successful in 37s
PR checks / java (pull_request) Successful in 1m24s
Main: tests, deploy, autotests / web (push) Successful in 32s
Main: tests, deploy, autotests / java (push) Successful in 1m8s
Main: tests, deploy, autotests / images-web (push) Successful in 32s
Main: tests, deploy, autotests / images-app (push) Successful in 49s
Main: tests, deploy, autotests / deploy (push) Successful in 3m58s
Main: tests, deploy, autotests / autotests (push) Successful in 41s
Main: tests, deploy, autotests / rollback (push) Has been skipped
PR checks / web (pull_request) Successful in 37s
PR checks / java (pull_request) Successful in 1m24s
Main: tests, deploy, autotests / web (push) Successful in 32s
Main: tests, deploy, autotests / java (push) Successful in 1m8s
Main: tests, deploy, autotests / images-web (push) Successful in 32s
Main: tests, deploy, autotests / images-app (push) Successful in 49s
Main: tests, deploy, autotests / deploy (push) Successful in 3m58s
Main: tests, deploy, autotests / autotests (push) Successful in 41s
Main: tests, deploy, autotests / rollback (push) Has been skipped
Мост .doc → .docx (internal/doc) и javadoc-контракты переводятся на ConversionException; WordPdfValidator.checkPageCountDoc оборачивает отказ моста в ValidationException с сохранением текста (вердикт «вход некорректен» выносит только валидатор; глубина, ловимая лишь при конвертации, становится 500 — как у .docx). Проверки ConvertController переезжают на новый app-класс BadRequestException (400 с теми же текстами), ApiExceptionHandler получает хендлер. Тесты моста доказывают ровно тип (assertSame(ConversionException.class, ...)); новый регрессивный WordPdfValidatorTest#checkPageCountDoc_brokenBridge_wrappedAsValidation. Документация (AGENTS.md, docs/agent/doc-bridge.md) синхронизирована.
This commit was merged in pull request #93.
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
|
||||
|Класс|Семантика (полные байтовые раскладки — `docs/agent/doc-bridge.md`)|
|
||||
|---|---|
|
||||
|`CfbReader`, `FibHeader`, `PieceTable`|CFB ([MS-CFB], любой брак → `ValidationException`) + FIB (§2.4.1: `fWhichTblStm`, пары `fc*`) + текст §2.9.135 (compressed CP1252 / UTF-16LE)|
|
||||
|`CfbReader`, `FibHeader`, `PieceTable`|CFB ([MS-CFB], любой брак → `ConversionException`) + FIB (§2.4.1: `fWhichTblStm`, пары `fc*`) + текст §2.9.135 (compressed CP1252 / UTF-16LE)|
|
||||
|`Grpprl`, `ChpxIndex`, `PapxIndex`, `PrcData`|sprm'ы CHPX/PAPX/TAP/Sepx (§2.6.2) + FKP-индексы (§2.4.6; bOffset=0 — дефолт с сохранением границы рана) + разворот grpprl вне FKP (§2.9.210)|
|
||||
|`Styles`, `FontTable`, `Lists`|STSH-цепочки base-first, символьные stk=3 → `charChain` (§2.9.271) + ftc→`w:rFonts` (§2.9.147) + PlfLst/PlfLfo → `word/numbering.xml` (§2.9.200/.201)|
|
||||
|`Tables`, `Sections`, `Headers`|TAP → сетка/границы/`w:jc`/vAlign/`w:tcMar` (§2.6.3; битый TDefTable → плоские абзацы) + секции (PlcfSed §2.8.26: continuous/landscape/колонтитуки/колонки/titlePage) + Plcfhdd → `headerN.xml`/`footerN.xml`|
|
||||
|
||||
Reference in New Issue
Block a user