Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access denied to service documents after pro macro upgrade to version 1.19.x when using a xwiki.pro license #34

Closed
petrenkonikita112263 opened this issue Jun 20, 2024 · 4 comments

Comments

@petrenkonikita112263
Copy link

Steps to reproduce

  1. Install XWiki Pro (v 13.22)
  2. Obtain trial license
  3. Install Pro Macros (old version)
  4. Upgrade Pro Macros up to 1.19.2 from XWiki.Updater
  5. Go to Sandbox page and try to input RecentUpdated macro

Actual result

XWiki Admin will have a velocity error instead of result

Failed to execute the [include] macro. Cause: [Current user [xwiki:XWiki.Admin] doesn't have view rights on document [xwiki:Confluence.Macros.RecentlyUpdatedService]]. Click on this message for details.

If XWiki Admin try to visit "Confluence.Macros.RecentlyUpdatedService" that user will have a warning window

image

Expected result

Macro displays result with recently updated documents in XWiki

@petrenkonikita112263
Copy link
Author

petrenkonikita112263 commented Jun 20, 2024

Note that issue won't happen if I install Pro Macros separately with further upgrade and not from XWiki Pro package.

The current workaround is to downgrade the version of Pro Macros to v1.18.3 via Extension Manager from the list of stable versions.

@raphj raphj changed the title The new version of Pro Macros after upgrade displays velocity errors Access denied to service documents after pro macro upgrade to version 1.19.x when using a xwiki.pro license Jun 20, 2024
@raphj
Copy link

raphj commented Jun 20, 2024

Hi,

This is caused by xwikisas/application-licensing#174.

Users can downgrade. XWiki support can try regenerating the license instead of downgrading.

@petrenkonikita112263
Copy link
Author

Downgrade will bring the version of Pro Macros v.1.16.3 because it's the latest version for XWiki Pro v.13.22, can be seen here

@raphj
Copy link

raphj commented Jun 20, 2024

This is worked around in pro macros version 1.19.3. Proper fixes will come in application-licensing.

@raphj raphj closed this as completed Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants