Issues icon indicating copy to clipboard operation
Issues copied to clipboard

Downloading telemetry preview will generate warnings in the log if another user exists with a private space

Open N-lson opened this issue 2 years ago • 1 comments

Team

  • [X] I've assigned a team label to this issue

Severity

Not blocking but can cause confusion in the logs

Version

Latest

Latest Version

I could reproduce the problem in the latest build

What happened?

You can download a preview of the telemetry at Configuration -> Telemetry -> Download Preview. This will cause warnings if any users exist with their own private spaces as the current user won't have access to those spaces.

Reproduction

Requires a version which creates private spaces for new users (master should work).

  1. Create an instance
  2. Create a user
  3. Download telemetry preview

Error and Stacktrace

No response

More Information

Internal slack thread: https://octopusdeploy.slack.com/archives/CNHBHV2BX/p1652678952393799

Workaround

No response

N-lson avatar May 16 '22 05:05 N-lson

This issue is not caused by or limited to private spaces, the same warnings appear whenever there's a space that the user downloading the telemetry preview is not able to access.

To reproduce:

  • Create a user
  • Create a space
  • Assign the new user to be the space manager for the new space
  • Download telemetry logs

To be able to do this in local development, you'll likely need to increase the limit on the number of spaces allowed. Insert the following at line 928 of LicenseKey.cs:

                        SpaceLimit = SpacesLicenseLimit.Unlimited,

To rule out the new user's private space being the cause of the warnings, apply the change from the branch that excludes Private Spaces from the telemetry preview (which will not be merged).

iryan2 avatar Jun 03 '22 01:06 iryan2