Skip to content

For Those Who Still Live in One Tab: district dockets no longer inherit the last case's id

Latest

Choose a tag to compare

@ERosendo ERosendo released this 04 Aug 20:08
· 1 commit to main since this release

This release fixes a bug that could cause a district court docket to be uploaded to the RECAP Archive under the wrong case_id, merging one case's entries and parties into another.

Fixes:

  • District docket uploads no longer inherit a stale case id from the tab

    When a district docket report didn't expose its own pacer_case_id, not in the URL or in the form inputs, the extension fell back to the id it had cached for that browser tab. Nothing cleared that cache on navigation, so a docket you opened after viewing a different case in the same tab could be uploaded under the earlier case's id.

    The extension now extracts the case ID directly from the docket sheet. Every document link includes the case ID in its goDLS() handler, and the extension selects the ID that appears most frequently across those links. This ensures that a stray link to a document from another case can't override the case ID for the current docket.

    If no single ID is the clear winner, the extension treats the result as inconclusive and leaves the value unchanged. Likewise, if the page already provides a pacer_case_id, that value always takes precedence. These safeguards ensure the new logic only applies when the page itself doesn't provide a case ID.

    See: courtlistener#5247, #428