Skip to content

fix: use phrase query for URL in scraper jobs delete endpoint - #1124

Merged
AndreiBarari merged 1 commit into
masterfrom
fix/delete-url-phrase-query
Jul 30, 2026
Merged

fix: use phrase query for URL in scraper jobs delete endpoint#1124
AndreiBarari merged 1 commit into
masterfrom
fix/delete-url-phrase-query

Conversation

@sebiboga

@sebiboga sebiboga commented Jul 30, 2026

Copy link
Copy Markdown
Member

Problem

The DELETE /v1/scraper/jobs/delete/ endpoint fails with 503 when deleting by URL. solrEscape() over-escapes URL chars (/, -, :) causing Solr to reject with 400.

Fix

Use phrase query (url:"...") for URL values instead of solrEscape(). Only \ and " are escaped. CIF path unchanged (safe since CIF is digits only).

Fixes #1125

@AndreiBarari
AndreiBarari merged commit 82a03be into master Jul 30, 2026
1 check passed
@sebiboga
sebiboga deleted the fix/delete-url-phrase-query branch July 30, 2026 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: DELETE /v1/scraper/jobs/delete/ fails on URL-based deletion due to solrEscape over-escaping

2 participants