Project

General

Profile

Actions

Bug #79166

closed

Wrong parameter type in LinkAnalyzer causes exception

Added by Christer V almost 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Linkvalidator
Target version:
-
Start date:
2017-01-05
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

How to replicated: Run Linkvalidator somewhere that already has broken link. When trying to delete the previous broken links you get a exception.

To fix:

In TYPO3\CMS\Linkvalidator\LinkAnalyzer::getLinkStatistics

$queryBuilder->expr()->in(
    'link_type',
    $queryBuilder->createNamedParameter($checkKeys, Connection::PARAM_INT_ARRAY)
)

Should be changed to
$queryBuilder->expr()->in(
    'link_type',
    $queryBuilder->createNamedParameter($checkKeys, Connection::PARAM_STR_ARRAY)
)

Tested in T3 8.5.1. PHP 7. MySQL 5.7

Actions #1

Updated by Morton Jonuschat almost 8 years ago

  • Assignee set to Morton Jonuschat
Actions #2

Updated by Gerrit Code Review almost 8 years ago

  • Status changed from New to Under Review

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51319

Actions #3

Updated by Georg Ringer almost 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF