1

Closed

Manager search issue

description

Hello,
i was working around with the source code and trying to add more fields, it was easy to add all the fields that are on the AD user property tags General, Address, Phones and Organisation. it is really a nice webpart.
However i had one issue with the manager search feature :
  1. I had 2 demo users with each one of them having his manager field in AD assigned to the other one (user1 manager is user2 and user2 manager is user1) don't ask how is it possible to have this in AD ... :)
  2. when i try to set a third user "user3" manager field through the ADSelfService web part to point to either user1 or user2 i the application hangs (w3wsvc). And when debuging in VS i get in the FindOne() function, line "result = search.FindOne()" a System.stackOverflowException.
  3. when user1 or user2 try to open the page with the webpart the whole sharepoint site hangs.
     
    Voila!! i hope my explanition is clear enough :)
     
    waiting for any respond.
    rz
Closed Dec 10, 2008 at 8:00 PM by burkeholland
Fixed in this latest release.

As a side note, it's probably not good for two people to report to each other. That could cause a conflict of interest within the organization. :)

comments

burkeholland wrote Dec 10, 2008 at 5:49 PM

Thank you for that update.

The problem is that if each employee is set as the other's manager, you have a recursive relationship that never ends.

I will update the code to try and fix this.

burkeholland wrote Dec 10, 2008 at 7:59 PM

Fixed in this latest release.

As a side note, it's probably not good for two people to report to each other. That could cause a conflict of interest within the organization. :)

wrote Dec 10, 2008 at 8:00 PM

wrote Feb 14, 2013 at 7:48 PM

wrote May 16, 2013 at 9:40 AM