diff --git a/Configuration/Services.yaml b/Configuration/Services.yaml index 627726d..5edeae7 100644 --- a/Configuration/Services.yaml +++ b/Configuration/Services.yaml @@ -59,6 +59,7 @@ services: $rule: > not (context.getAspect("backend.user").isLoggedIn()) and not (context.getAspect("frontend.preview").isPreview()) + and request.getHeader("User-Agent")[0] and not (request.getHeader("User-Agent")[0] matches "/^TYPO3|TYPO3 linkvalidator/") and not (request.getHeader("User-Agent")[0] matches "/Wget|curl|Go-http-client/") and not (request.getHeader("User-Agent")[0] matches "/Googlebot|Bingbot|bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Sogou|Exabot|NextCloud-News|Feedly|XING FeedReader|CCBot|SemrushBot|SEOkicks|Twitterbot|Seekport Crawler|SemanticScholarBot|ia_archiver|PaperLiBot|TrendsmapResolver|AhrefsBot|Nuzzel/") diff --git a/Documentation/Changelog/1.1.6.rst b/Documentation/Changelog/1.1.6.rst new file mode 100644 index 0000000..a85eede --- /dev/null +++ b/Documentation/Changelog/1.1.6.rst @@ -0,0 +1,40 @@ +1.1.6 +===== + +Breaking +-------- + +Nothing + +Features +-------- + +Nothing + +Fixes +----- + +* Do not break Symfony Expression Language in case no user agent is provided. + Some requests might ommit the user agent header. + The default configuration for tracking pageviews would result in an error raised + from Symfony Expression Language. + + This got fixed as the existence is checked first, before comparing against agents + that should not be tracked. + + You should check your own rules if you defined any, see: :ref:`pageview` as well as + :ref:`recordview`. + + The raised error looks like this on my own website: + + Core: Exception handler (WEB): Uncaught TYPO3 Exception: Argument 2 passed to Symfony\Component\ExpressionLanguage\Node\BinaryNode::evaluateMatches() must be of the type string, null given, called in vendor/symfony/expression-language/Node/BinaryNode.php on line 167 | TypeError thrown in file vendor/symfony/expression-language/Node/BinaryNode.php in line 176. Requested URL: https://daniel-siepmann.localhost/ + +Tasks +----- + +Nothing + +Deprecation +----------- + +Nothing diff --git a/ext_emconf.php b/ext_emconf.php index adde0d3..e1c9d38 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -11,7 +11,7 @@ $EM_CONF[$_EXTKEY] = [ 'author' => 'Daniel Siepmann', 'author_email' => 'coding@daniel-siepmann.de', 'author_company' => '', - 'version' => '1.1.2', + 'version' => '1.1.6', 'constraints' => [ 'depends' => [ 'core' => '',