Skip to content

[BUG] Get-PnPSiteCollectionAppCatalogs showing old site urls after the site is renamed and url changed #2041

New issue

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

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

Already on GitHub? # to your account

Closed
potluri96 opened this issue Jun 27, 2022 · 2 comments · Fixed by #2044
Assignees
Labels
bug Something isn't working reproduced Issue reproduced after testing

Comments

@potluri96
Copy link

Notice

Many bugs reported are actually related to the PnP Framework which is used behind the scenes. Consider carefully where to report an issue:

  1. Are you using Invoke-PnPSiteTemplate or Get-PnPSiteTemplate? The issue is most likely related to the Provisioning Engine. The Provisioning engine is not located in the PowerShell repo. Please report the issue here: https://github.com/pnp/pnpframework/issues.
    No
  2. Is the issue related to the cmdlet itself, its parameters, the syntax, or do you suspect it is the code of the cmdlet that is causing the issue? Then please continue reporting the issue in this repo.
    Code
  3. If you think that the functionality might be related to the underlying libraries that the cmdlet is calling (We realize that might be difficult to determine), please first double check the code of the cmdlet, which can be found here: https://github.com/pnp/powershell/tree/master/src/Commands. If related to the cmdlet, continue reporting the issue here, otherwise report the issue at https://github.com/pnp/pnpframework/issues
    No

Reporting an Issue or Missing Feature

Please confirm what it is that your reporting

I am running Get-PnPSiteCollectionAppCatalogs and I realized that if a site url was updated for site collection app catalog its not updated in the output of the command.

Get-PnPSiteCollectionAppCatalogs

Expected behavior

Please describe what output you expect to see from the PnP PowerShell Cmdlets

The output will include updated url for the sitecollectionappcatalog instead of the original url

Actual behavior

Please describe what you see instead. Please provide samples of output or screenshots.

The output is including the old sitecollectionappcatalog

Steps to reproduce behavior

Please include complete script or code samples in-line or linked from gists

$data = Get-PnPSiteCollectionAppCatalogs

What is the version of the Cmdlet module you are running?

(you can retrieve this by executing Get-Module -Name "PnP.PowerShell" -ListAvailable)

1.10.0

Which operating system/environment are you running PnP PowerShell on?

  • Windows
@potluri96 potluri96 added the bug Something isn't working label Jun 27, 2022
@potluri96 potluri96 changed the title [BUG] Get-PnPSiteCollectionAppCatalogs showing old site urls after the site is renamed [BUG] Get-PnPSiteCollectionAppCatalogs showing old site urls after the site is renamed and url changed Jun 27, 2022
@KoenZomers KoenZomers self-assigned this Jun 28, 2022
@KoenZomers
Copy link
Collaborator

I can reproduce this and am working on a fix

KoenZomers pushed a commit to KoenZomers/pnppowershell that referenced this issue Jun 28, 2022
@KoenZomers
Copy link
Collaborator

PR submitted for this

@KoenZomers KoenZomers added the reproduced Issue reproduced after testing label Jun 28, 2022
gautamdsheth added a commit that referenced this issue Jun 29, 2022
* Fixes #2041

* Added additional CurrentSite parameter

Co-authored-by: = <=>
Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working reproduced Issue reproduced after testing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants