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

[BUG] Get-PnPList no longer accepts site-relative URL as identity #2999

Closed
5 tasks
tmohrlueder opened this issue Apr 11, 2023 · 1 comment · Fixed by #3005
Closed
5 tasks

[BUG] Get-PnPList no longer accepts site-relative URL as identity #2999

tmohrlueder opened this issue Apr 11, 2023 · 1 comment · Fixed by #3005
Labels
bug Something isn't working

Comments

@tmohrlueder
Copy link

tmohrlueder commented Apr 11, 2023

Reporting an Issue or Missing Feature

It is no longer possible to use a site-relative list URL as the -Identity value of Get-PnPList as of version 2.1.1 (haven't checked 2.1.0). The documentation states the site-relative URL of a list should be supported as a value and it used to work with version 1.12.0. Using the list name as -Identity works as expected.

Expected behavior

Executing Get-PnPList -Identity "Lists/MyList" returns the list, if it exists.

Actual behavior

Executing Get-PnPList -Identity "Lists/MyList" returns the error message "Get-PnPList: List 'https://tenant.sharepoint.com/sites/sitecoll/Lists/MyList' does not exist at site with URL 'https://tenant.sharepoint.com/sites/sitecoll'.".
Executing Get-PnPList -Identity "My List" works as expected for the same list.

Steps to reproduce behavior

When connected to a site:
Get-PnPList -Identity "Lists/MyList" (MyList must exist)

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

2.1.1 (was working with 1.12.0), PowerShell 7.3.3 win-x64

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

  • [x ] Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify
@tmohrlueder tmohrlueder added the bug Something isn't working label Apr 11, 2023
gautamdsheth pushed a commit to gautamdsheth/powershell that referenced this issue Apr 11, 2023
gautamdsheth added a commit that referenced this issue Apr 11, 2023
Fix #2999 - issue with site relative url in Get-PnPList
@gautamdsheth
Copy link
Collaborator

Have merged a PR that fixes this issue, will be available in tomorrow's nightly.

Not sure what changed, must be in CSOM I guess, we haven't changed anything related to that in quite some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants