No Code Attached Yet bug
avatar david19161
david19161
15 Jan 2023

Steps to reproduce the issue

Somehow! set your user agent to "Chrome Privacy Preserving Prefetch Proxy"

Expected result

no warnings

Actual result

Undefined array key 1 in libraries/vendor/joomla/application/src/Web/WebClient.php on line 439

System information (as much as possible)

joomla 4.2.6
php 8.0.23

Additional comments

seeing a lot of these in the php error log.
its obvious why, there is no "/" in the user agent string

avatar david19161 david19161 - open - 15 Jan 2023
avatar david19161 david19161 - change - 15 Jan 2023
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 15 Jan 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Jan 2023
avatar ReLater
ReLater - comment - 15 Jan 2023

Something seems to be wrong with your testing instructions. Line 439 is surrounded by

elseif (stripos($userAgent, 'Chrome') !== false)
{

}

but there is no Chrome in your UserAgent string.

avatar ReLater
ReLater - comment - 15 Jan 2023

For reference: https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers

As far as I see Google never adds the string Chrome/W.X.Y.Z to Feedfetcher user agents or just Chrome.

It looks like somebody is visiting your site with a badly faked user agent. Block them!

Or do I miss something?

avatar david19161 david19161 - change - 15 Jan 2023
The description was changed
avatar david19161
david19161 - comment - 15 Jan 2023

corrected instructions


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39637.
avatar david19161 david19161 - edited - 15 Jan 2023
avatar david19161
david19161 - comment - 15 Jan 2023

user agent is "Chrome Privacy Preserving Prefetch Proxy"


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39637.
avatar ReLater
ReLater - comment - 15 Jan 2023

Maybe a solution could be:

elseif (stripos($userAgent, 'Chrome/') !== false)

The correct repository for this issue is https://github.com/joomla-framework/application

I'm out.

avatar Simran180
Simran180 - comment - 16 Feb 2023

can I work on this issue?

avatar alikon
alikon - comment - 16 Feb 2023

there is no need to ask, please submit your pull request

avatar ReLater
ReLater - comment - 16 Feb 2023

@Simran180

Like said in #39637 (comment) it's not the joomla-cms repository here but joomla-framework. See joomla-framework/application#112 there.

avatar Hackwar Hackwar - change - 23 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 23 Feb 2023
avatar Rartg
Rartg - comment - 14 Mar 2023

Add a "/" to the end of the user agent string.
Update the version of Joomla or PHP to ensure compatibility with the user agent string.

avatar brianteeman brianteeman - close - 1 Sep 2023
avatar brianteeman
brianteeman - comment - 1 Sep 2023

Closing this here as a relevant issue has been created in the upstream library

avatar brianteeman brianteeman - change - 1 Sep 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-09-01 11:34:12
Closed_By brianteeman

Add a Comment

Login with GitHub to post a comment