[MGNLTOOLS-52] Purge versions of previously deleted content no longer executes Created: 10/Apr/12  Updated: 20/Jul/16  Resolved: 20/Jul/16

Status: Closed
Project: Repository Tools
Component/s: None
Affects Version/s: 1.1.4, 1.2
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Matt Dertinger Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: tools, versioning
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File VersionStorePurgeCommand.java.patch    
Issue Links:
relation
Template:
Patch included:
Yes
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   

Hi,

Currently, it seems that the command for Purge versions of previously deleted content does not execute.

Steps to Reproduce

  1. Log into http://demoauthor.magnolia-cms.com as superuser
  2. Go to Tools -> Repository Tools
  3. On the Repository Tools page, click the Purge versions button located under the heading Purge versions of previously deleted content
  4. Note the error message that displays at the top of the page that reads: Error occurred during garbage collector command execution. (Custom access managers are no longer supported. Use Repository level security checks instead.

Please let me know if you have any questions.

Cheers,
Matt



 Comments   
Comment by Matt Dertinger [ 10/Apr/12 ]

Hi,

I just attached a patch that may address the issue related to Custom access managers are no longer supported error message.

Basically, it just updates the checkWriteAccess method to call the hm.isGranted method instead of the Access.isGranted method. Additionally, I put in a little clean-up related to use of the deprecated info.magnolia.cms.beans.config.ContentRepository class by replacing it with info.magnolia.repository.RepositoryConstants.

Note: I haven't had a chance to test it, but I believe it should work. Please let me know if you run into any issues while testing it.

Cheers,
Matt

Comment by Jan Haderka [ 20/Jul/16 ]

Affected class have been rewritten and code in question removed.

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