pnp/PnP

Issue with People Picker Component

marcelomusza opened this issue · 0 comments

Details:

  • PnP Core - People Picker

Category

[X] Bug
[ ] Enhancement

Environment

[X] Office 365 / SharePoint Online
[ ] SharePoint 2016
[ ] SharePoint 2013

Hi team, I've noticed a weird behavior I'd like to share with you, since it was introduced as a bug in the asp.net mvc app that I manage and it most likely seems to be related to how the component works

We have an asp.net mvc 5 application, which connects to SharePoint Online to create Site Collections.
The submission form has all required data that is submitted to a web service which then creates the site in the tenant.

Our issue was discovered around this people picker we implemented to search for the Primary and Secondary Site Collection Administrators.

For a new site submission, the component works as expected, no issues at all.
But, if we open the form in edit mode for an existing request, the Primary SCA field gets populated correctly, but the Secondary SCA does not. It just remains blank. It fills some of the information in the html code as I was able to discover by inspecting it, but it does not complete it entirely, resulting in the empty field.

The way this field is implemented for Secondary SCA is exactly the same as primary, we've revised several times to look for typos, or anything that might be looking different, but the both are exactly the same.
So, we are wondering, what might be happening with this Secondary SCA field?

This was tested on:

  • Local environment: It works fine
  • Dev Environment: Does not work
  • Stg Environment: Does not work
  • Prod Environment: Does not work

Only on an app deployed in localhost this works fine, then in the other environments (server hosted), the problem remains the same for all of them. The code is exactly the same on all environments.

Additionallly, we made different tests against different user accounts but it is not the problem, it is not related to the users that are captured with the component.

Hope the information is enough, please let me know if you need more details.
Thanks in advance for your assistance.