KamoCRM

A bad assocType index is a 400, not a 500

FixConversionService
Shipped
18 ஜூலை, 2026 அன்று 6:06 PM UTC
Author
Kamo
Commit
87f5389

The upload/register paths indexed ImageAssocType.values() with the client's raw index, so an out-of-range value surfaced as an ArrayIndexOutOfBoundsException (500) and a null one as an NPE. assocTypeOf() range-checks it and reports the valid range as a clean 400. Also picks up the new CATALOG_SOURCE assoc type from shared-lib, which the MLOS rate-sheet ingest uploads its source documents under.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing