[MGNLWORKFLOW-352] Tasks are stored in wrong folder structure - month Created: 14/Jun/17  Updated: 21/Dec/21  Resolved: 21/Dec/21

Status: Closed
Project: Magnolia Workflow Module
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Mariusz Chruscielewski Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to TASKMGMT-56 Wrong month in tasks stored in JCR Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Visible to:
Federico Navarro, Marcel Boer, Marcel Evers, Stef te Winkel

 Description   

Hi, becasue Calendar indexes months from 0, task are stored in wrong folder structure. For exaple task from today will be saved in JCR as:
2017 / 5 / 14

This calculation is done in:
info.magnolia.task.persistence.TaskPathGenerator
method: getCurrentDateFolderPath()
String month = String.valueOf(cal.get(2)); <- this will return 5 for June

This is not very convinient for users who wants to check tasks archive. Can you please fix that?

Thanks
Mariusz



 Comments   
Comment by Thuy To [ 21/Dec/21 ]

This issue is fixed in https://jira.magnolia-cms.com/browse/TASKMGMT-56

Generated at Mon Feb 12 10:09:14 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.