[MAGNOLIA-6619] Custom Command : Error Invalid Indexed Property Created: 30/Mar/16  Updated: 19/May/22  Resolved: 19/May/22

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 5.4.5
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Alexander Hems Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: architecture
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Java Source File ValidateAndReviewDialogAction.java     Java Source File ValidateCopybookCommand.java     Text File stacktrace-custom-command-2016-03-30.txt    
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:

 Description   

We get a Error message by using our own custom commands.
I add the Stacktrace as txt to this ticket.
We think the error can be found in this class : info.magnolia.module.site.provider.SiteProvider



 Comments   
Comment by Jan Haderka [ 31/Mar/16 ]
Caused by: java.lang.IllegalArgumentException: Invalid indexed property 'Key[type=info.magnolia.cms.core.AggregationState, annotation=[none]' on bean class 'class com.t8y.magnolia.mgnlimport.commands.ValidateCopybookCommand' Invalid index value 'type=info.magnolia.cms.core.AggregationState, annotation=[none'

So you have custom ValidateCopybookCommand that expects to get AggregationState configured and it doesn't.

Apart from the fact that AggregationState is related to the current request only and thus should not really be passed around, specially not into commands that might be executed asynchronously and thus on different thread, I fail to see how this anyhow related to SiteProvider.

Right now, I would suspect problem to be in the command itself or in the action (ValidateAndReviewDialogAction) invoking the command rather than being issue in the product itself. Can you attach both? If you feel uncomfortable attaching the code and have valid support contract, feel free to move this issue to support first to make it private before attaching the code.

Comment by Alexander Hems [ 31/Mar/16 ]

Here are the Files i hope you can find the error

Comment by Roman Kovařík [ 19/May/22 ]

Hello,

This ticket is now marked as closed due to one of the following reasons:

  • A long period of inactivity
  • Uses an old or Beta version of an application, module, or framework that we no longer support
  • The issue is no longer reproducible or has been fixed in later versions

If you are still facing a problem or consider this issue still relevant, please feel free to re-open the ticket and we will reach out to you.

Thank you,
The Magnolia Team

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