pnp / pnp/pnpframework

AvailableApps Throws Error When Using `AppCatalogScope.Site`

Open
#445 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

https://github.com/pnp/pnpframework/blob/52fa3cf3e779e455a562f7f54a07f42584b757dc/src/lib/PnP.Framework/ALM/AppManager.cs#L655

The above line wants to use the following URL when trying to use AppCatalogScope.Site : /_api/web/sitecollectionappcatalog/AvailableApps

In REST, this returns:

<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
    <m:code>-1, Microsoft.SharePoint.Client.ResourceNotFoundException</m:code>
    <m:message xml:lang="en-US">Cannot find resource for the request SP.RequestContext.current/web/sitecollectionappcatalog/.</m:message>
</m:error>

In code, this returns:
image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/lib/PnP.Framework/ALM/AppManager.cs line 655 and compare the request made for AppCatalogScope.Site with the reported REST URL and error. Confirm the expected endpoint or behavior for this scope, then verify the change with coverage for AvailableApps; done means the scope no longer raises the reported resource-not-found error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.