This issue has been created
 
 
Security Advisory Application / cid:jira-generated-image-avatar-56f3510f-e85d-4dd3-98dc-6bcb68e49fd3 SPAPP-42 Open

Advisories created in the wiki by the importer user are not assigned to their creator

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-ec8ee8eb-cc5d-45f9-b880-c2632535edfa Simon Urli created this issue on 12/Nov/26 10:56
 
Summary: Advisories created in the wiki by the importer user are not assigned to their creator
Issue Type: cid:jira-generated-image-avatar-56f3510f-e85d-4dd3-98dc-6bcb68e49fd3 Bug
Affects Versions: 2.3.0
Assignee: Unassigned
Created: 12/Nov/26 10:56
Priority: cid:jira-generated-image-static-major-a16321e3-e8bf-466b-8d64-9102b06922b7 Major
Reporter: Simon Urli
Description:

Steps to reproduce:

  1. Keep the default configuration of the application (no importer user set).
  2. As XWiki.Admin, create an advisory with "Add new entry" on the application home page and save it.

Expected: the advisory is assigned to its creator, as stated by the hint of the "Assignee" field ("advisories created in the wiki [are assigned] to their creator").

Actual: the advisory has no assignee.

CreatorAssigneeListener considers an advisory created by the importer user as imported, and doesn't assign it. The importer user defaults to XWiki.Admin when it isn't configured, so the advisories created in the wiki by that user, or by any user configured as importer user, are never assigned to their creator.