Project

General

Profile

Actions

Defect #2026

closed

Purging temp files fails for higher TTL

Added by Alena Peterová over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Low
Assignee:
Radek Tomiška
Category:
Attachment manager
Target version:
Start date:
01/29/2020
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

Version: 9.7.11

We increased temporary files TTL to twice the default value - 28 days (idm.sec.core.attachment.tempTtl=2419200000) - and purging temp files fails with the following error:

2020-01-29 12:31:57.371  INFO 1497 --- [MessageBroker-1] e.b.i.c.m.s.i.DefaultLongPollingManager  : Start scheduled clearUnUseSubscribers ...
2020-01-29 12:31:57.565 ERROR 1497 --- [MessageBroker-2] o.s.s.s.TaskUtils$LoggingErrorHandler    : Unexpected error occurred in scheduled task.

java.lang.ArithmeticException: integer overflow
        at java.lang.Math.toIntExact(Math.java:1011)
        at eu.bcvsolutions.idm.core.ecm.service.impl.DefaultAttachmentManager.purgeTemp(DefaultAttachmentManager.java:359)
Actions

Also available in: Atom PDF