You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(fmodata): handle missing Location header in batch insert sub-responses
FileMaker batch sub-responses may not include the Location header that
standalone responses provide. Instead of throwing InvalidLocationHeaderError,
return ROWID -1 when the header is absent in a batch context.
This fixes the follow-up issue from #207 where batch writes (INSERT/UPDATE)
failed with InvalidLocationHeaderError after the URL fix.
Copy file name to clipboardExpand all lines: .changeset/fix-batch-sub-request-urls.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,4 @@
2
2
"@proofkit/fmodata": patch
3
3
---
4
4
5
-
Fix batch sub-request URLs to use canonical FileMaker OData path format. Strips the Otto proxy prefix (`/otto/`) and `.fmp12` file extension from database names in sub-request URLs inside multipart batch bodies, which are processed directly by FileMaker's OData engine.
5
+
Fix batch sub-request URLs to use canonical FileMaker OData path format. Strips the Otto proxy prefix (`/otto/`) and `.fmp12` file extension from database names in sub-request URLs inside multipart batch bodies, which are processed directly by FileMaker's OData engine. Also fix `InvalidLocationHeaderError` in batch insert/update sub-responses by gracefully handling missing Location headers (returns ROWID -1 instead of throwing).
0 commit comments