IBX-12127: Fixed valid URLs being marked as invalid by ibexa:check-urls - #809
Open
tbialcz wants to merge 1 commit into
Open
IBX-12127: Fixed valid URLs being marked as invalid by ibexa:check-urls#809tbialcz wants to merge 1 commit into
tbialcz wants to merge 1 commit into
Conversation
tbialcz
force-pushed
the
ibx-12127-check-urls-head-get-fallback
branch
from
August 20, 2026 06:23
5b182e3 to
9149e7e
Compare
tbialcz
force-pushed
the
ibx-12127-check-urls-head-get-fallback
branch
from
August 20, 2026 06:28
9149e7e to
3fc0d75
Compare
|
ibexa-workflow-automation-1
Bot
requested review from
Steveb-p,
ViniTou,
alongosz,
barw4,
bnowak,
ciastektk,
konradoboza,
mikadamczyk and
wiewiurdp
and removed request for
a team
August 20, 2026 07:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description:
ibexa:check-urlschecked links with a bare cURLHEADrequest without any headers (since the original implementation, EZP-28505). WAFs like Cloudflare block such requests, so working links were marked as invalid.Now the request sends browser-like
User-Agent/Acceptheaders, and a failedHEADis retried once withGET. New optional handler options:method,fallback_to_get,user_agent,headers.Also fixed in the same code: the
httpshandler was readinghttpoptions, and thecurl_multiloop could skip trailing URLs.For QA:
https://www.tiendanimal.es/and to a URL that rejectsHEADrequests (e.g. a localphp -Sserver returning 403 forHEAD), publish.php bin/console ibexa:check-urls— both links are Valid in Link manager (before the fix: Invalid).Documentation:
Yes — document the new
url_checker.handlers.http|httpsoptions:method,fallback_to_get,user_agent,headers.