Project

General

Profile

Actions

Task #84717

closed

Reconsider serialized array for Linkvalidator

Added by Sybille Peters almost 6 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Category:
Linkvalidator
Target version:
-
Start date:
2019-12-13
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

see decisions:Breaking LinkValidator

Can be converted to JSON as suggested in #83338 for scheduler.

Specifically the field tx_linkvalidator_link.url_response is used to handle results of link check, including the error message:

It may contain something like this:

a:2:{s:5:"valid";b:0;s:11:"errorParams";a:2:{s:9:"errorType";s:7:"network";s:7:"message";s:30:"Network error / invalid domain";}}

So, we have:

  • bool valid (currently only used if _GP('showalllinks') is set, not really used, maybe we can remove this entirely)

errorParams array:

  • string errorType
  • string message (should be removed also, we should get the error message when generating the report, depending on current language of BE user)
  • exception

some depends on type of link:

page (internal) link:

  • in addition to errorType and message: contains additional information about page / content element

Also, the errorParams array includes an errorType and the (localized) error message. This does not really make sense anyway, because it is localized while checking links. It should be localized while viewing results because checking links and viewing the results may be done by different users at different times (and checking may also be done via the scheduler).

I am not creating another issue for this, but this should be considered when handling the array differently.

It might also make sense to store the errorType in a seperate database field for easier aggregation of results.


Subtasks 1 (0 open1 closed)

Task #89944: Remove serialization within linkvalidator storageClosedBenni Mack2019-12-13

Actions

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #83338: Move scheduler tasks from serialized data to JSONClosed2017-12-15

Actions
Related to TYPO3 Core - Task #88991: Unify handling of errorParams in linkvalidatorClosedSybille Peters2019-08-21

Actions
Actions #1

Updated by Susanne Moog almost 6 years ago

  • Related to Feature #83338: Move scheduler tasks from serialized data to JSON added
Actions #2

Updated by Sybille Peters almost 6 years ago

  • Subject changed from Reconsider serialized array to Reconsider serialized array for Linkvalidator
Actions #3

Updated by Sybille Peters almost 6 years ago

  • Description updated (diff)
Actions #4

Updated by Sybille Peters almost 6 years ago

  • Parent task set to #85006
Actions #5

Updated by Sybille Peters over 4 years ago

  • Description updated (diff)
Actions #6

Updated by Sybille Peters over 4 years ago

  • Related to Task #88991: Unify handling of errorParams in linkvalidator added
Actions #7

Updated by Sybille Peters over 4 years ago

  • Description updated (diff)
Actions #8

Updated by Sybille Peters over 4 years ago

  • Parent task deleted (#85006)
Actions #9

Updated by Sybille Peters over 4 years ago

  • Description updated (diff)
Actions #10

Updated by Georg Ringer about 4 years ago

  • Status changed from New to Closed

closed as solved with #89944

Actions

Also available in: Atom PDF