Commit 7133bb2
SK-3061: fix bulkInsert(sync) interceptor-exception leak
processBulkInsertSync called insertBatchFutures - which synchronously
invokes the caller's RequestInterceptor - before entering its own try
block, so a throwing interceptor escaped bulkInsert() as a raw,
undeclared exception instead of the documented SkyflowException.
processBulkDetokenizeSync/processBulkDeleteTokensSync/processBulkTokenizeSync
already call their own *BatchFutures inside their own try/catch(Exception),
which is why they were not exploitable the same way. This moves
insertBatchFutures's call inside processBulkInsertSync's existing try,
matching that same structure, instead of adding a new catch-all to the
4 public sync methods (the broader fix reverted here).
Added a regression test asserting a throwing interceptor surfaces as
SkyflowException from bulkInsert. Confirmed via TDD: failed before this
change (raw IllegalStateException), passes after.
mvn -pl common,flowvault -am test -> 709 (flowvault) + 106
(common/ValidationsTests) tests, 0 failures, BUILD SUCCESS.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 59f21f9 commit 7133bb2
2 files changed
Lines changed: 27 additions & 1 deletion
File tree
- flowvault/src
- main/java/com/skyflow/vault/controller
- test/java/com/skyflow/vault/controller
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | | - | |
782 | 781 | | |
783 | 782 | | |
| 783 | + | |
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1164 | 1164 | | |
1165 | 1165 | | |
1166 | 1166 | | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
1167 | 1193 | | |
0 commit comments