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(connectors): treat a zero-byte source file as nothing to index (#6848)
Observed in production after connectors began delivering source files: a
zero-byte PDF was stored and shipped to OCR, which answered `400 Bad Request`.
That bills an external call to discover the file was empty and reports it as an
API fault rather than as what it is. Before source files existed, an empty file
produced empty extracted text and was dropped at the empty-content check, so
this was a regression.
The emptiness rule now lives in one place, `hasIndexablePayload`, used by the
sync engine's classify and hydrate gates and by both connectors' `getDocument`.
It previously existed twice — the connectors asked whether a source file was
present while the sync engine asked the same question a second way — and a
source file with no bytes satisfied both.
0 commit comments