sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Trusting an App (that has been removed and currently in the Recycle Bin) when re-adding it (via Site Contents) requires "re-trusting" the App for it to actually be trusted

Open CANUSA opened this issue 8 years ago • 2 comments

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

I had a real hard time coming up with a title for this issue, so let me explain... This issue should manifest with any App that has at least one permission and code that tries to do something requiring that permission.

In my case, I have an SPO PHA, that asks for Web Full Control permission. As mentioned earlier, I don't think the specific permission matters, only that you have at least one permission that will need to be granted such that your code will work when your App is trusted. I install the App and of course, as part of that installation, I am asked to review the permissions and trust it. I do that. I can now use the app as designed. I now remove the App. I change my mind, and re-install the app, not by restoring it from the Recycle Bin, but by re-adding it via Site Contents. As part of the re-adding process, like any other app, I am asked to trust it again. If I remember correctly, this is a relatively new feature, in the past, if the App was in the Recycle Bin, it could not be added again. Manual clearing of the Recycle Bin(s) was required before re-adding in this fashion would work. When I launch the App after adding it this way, it does not work. It will only work if I go to the Permissions screen and click on the "here" link to "trust" it again. Remember, I had already trusted it when I re-installed it. It seems that the process that adds an App that is also in the Recycle Bin, doesn't respect the initial trust operation and requires a retrust. I hope this all makes sense. In my case, this renders my app unusable, as the Access Denied exception I receive due to it not truly being trusted crippled it. I can reproduce this on demand, so if you need any server correlation ids or other information about the Access Denied exception I am seeing, please reach out.

CANUSA avatar Apr 30 '18 16:04 CANUSA

This issue is being closed as part of an issue list cleanup project. Issues with no activity in the past 3 months that aren't tracked by engineering as bugs were closed as part of this inititive. If this is still an issue, please follow the steps outlined to re-open or submit a new issue.

ghost avatar Dec 29 '21 14:12 ghost

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

ghost avatar Jan 06 '22 06:01 ghost