[LIVECOPY-246] Publishing doesn't set the userName property on the task Created: 19/Feb/21  Updated: 28/Oct/22  Resolved: 24/Mar/21

Status: Closed
Project: Live Copy
Component/s: None
Affects Version/s: 3.2.1
Fix Version/s: 3.2.3

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Yen Lac Tue
Resolution: Fixed Votes: 1
Labels: VN-Maintenance, VN-Testing, maintenance
Remaining Estimate: Not Specified
Time Spent: 2.25d
Original Estimate: Not Specified

Attachments: PNG File missing-sender.png     File tasks.tasks.2021.1.17.1612888001618.yaml    
Issue Links:
relation
is related to TASKMGMT-39 Rename Task#requestor property to #us... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Date of First Response:
Epic Link: AuthorX Maintenance
Sprint: Maintenance 49, Maintenance 50
Story Points: 3

 Description   

Reproduce

  • Create a live copy of the travel demo
  • Change a page on the master
  • Push and publish changes

Example of of incomplete task: tasks.tasks.2021.1.17.1612888001618.yaml
While the userName exists on the content subnode it is missing as a property on the task node itself.

'1612888001618':
  'actorId': 'sjones'
  'comment': ''
  'groupIds': ['publishers']
  'jcr:primaryType': 'mgnl:task'
  'jcr:uuid': '3ee9fa8c-c3a6-4013-b74b-44fbaf44816d'
  'mgnl:created': 2021-02-17T09:22:46.209Z
  'mgnl:createdBy': 'System [sjones]'
  'mgnl:lastModified': 2021-02-17T09:24:57.075Z
  'mgnl:lastModifiedBy': 'System [sjones]'
  'name': 'publish'
  'ocm_classname': 'info.magnolia.module.workflow.jbpm.humantask.HumanTask'
  'priority': 0
  'skippable': false
  'status': 'info.magnolia.task.Task$Status:Resolved'

Notes

  • The problem is a missing userName property on the mgnl:task node.
  • Be sure to add an update task to fix the broken task nodes.


 Comments   
Comment by Richard Gange [ 03/Mar/21 ]
task.setUserName((String) content.get(Context.ATTRIBUTE_USERNAME));

See Context

Comment by Richard Gange [ 08/Mar/21 ]

ldelnevo it's only a one line change if I am not mistaken.

This line should be:

task.setUserName((String) content.get(Context.ATTRIBUTE_USERNAME));
Comment by Richard Gange [ 08/Mar/21 ]

Or just add the one line is also good. It wound not hurt to have both.

Generated at Mon Feb 12 02:26:52 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.