Skip to content

Recently updated macro gives out XWikiDateTool error in the logs #237

@LucianCheve

Description

@LucianCheve

THIS ISSUE WAS REPRODUCED WITH AN EXPORT OF A WIKI PAGE THAT WAS MIGRATED FROM CONFLUENCE.

Reproduced on XWiki 15.10.7 having the following extensions installed:

  • Confluence Migrator Pro 1.12.0
  • Task Manager Pro 3.4.0
  • Pro Macros 1.16.1

On XWiki 14.10.18, with the same extensions and the same versions, I did not reproduce the error.

Steps to reproduce:

  1. Have an XWiki version 15.10.7 with the following extensions installed:
  • Confluence Migrator Pro 1.12.0
  • Task Manager Pro 3.4.0
  • Pro Macros 1.16.1
  1. Have an XWiki page migrated from Confluence that contains the "recently-updated" macro
  2. Access the page

Expected results:
The server logs don't show any errors.

Actual result:
Each time the page is accessed, the logs show the following error:
2024-03-26 13:44:33,576 [qtp1413246829-114 - http://192.168.150.173:8080/xwiki/bin/view/MathSeminarWiki/] ERROR o.a.v.rendering - Left side ($datetool.difference($mostRecentDate, $date).getMilliseconds()) of comparison operation has null value at xwiki:MathSeminarWiki.WebHome[line 206, column 98]

Link to where the error is pointing to:

#if ($mostRecentDate == $NULL || $datetool.difference($mostRecentDate, $date).getMilliseconds() > 0)

Screenshot 2024-03-26 104250

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions