<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Rich Finn - SharePoint 2007</title>
    <link>http://blog.richfinn.net/blog/</link>
    <description>sharepointer</description>
    <language>en-us</language>
    <copyright>Rich Finn</copyright>
    <lastBuildDate>Thu, 06 May 2010 20:06:35 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>blog.richfinn.net@gmail.com</managingEditor>
    <webMaster>blog.richfinn.net@gmail.com</webMaster>
    <item>
      <trackback:ping>http://blog.richfinn.net/blog/Trackback.aspx?guid=4fce2e56-8e53-48cb-b6d9-6249af8e2141</trackback:ping>
      <pingback:server>http://blog.richfinn.net/blog/pingback.aspx</pingback:server>
      <pingback:target>http://blog.richfinn.net/blog/PermaLink,guid,4fce2e56-8e53-48cb-b6d9-6249af8e2141.aspx</pingback:target>
      <dc:creator>Your DisplayName here!</dc:creator>
      <wfw:comment>http://blog.richfinn.net/blog/CommentView,guid,4fce2e56-8e53-48cb-b6d9-6249af8e2141.aspx</wfw:comment>
      <wfw:commentRss>http://blog.richfinn.net/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=4fce2e56-8e53-48cb-b6d9-6249af8e2141</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Recently a client has been having issue with page layouts that contain a UserField
control (People Picker). Sometimes, the People Picker will loose the resolution of
the user selected and instead display a bunch of strange XML/XSL along with the message
'<em><font color="#ff0000">You are only allowed to enter one item</font></em>', as
shown below: 
<br /><a href="http://blog.richfinn.net/blog/content/binary/WindowsLiveWriter/IssueWithPeoplePickerShowingStrangeXML_C660/image_2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blog.richfinn.net/blog/content/binary/WindowsLiveWriter/IssueWithPeoplePickerShowingStrangeXML_C660/image_thumb.png" width="517" height="111" /></a></p>
        <p>
As you can see, there’s also a reference to the css class ‘ms-entity-resolved’ in
the XSL. 
</p>
        <p>
It turns out that the issue is due to a conflict between the Content Editor Web Part
and the People Picker. 
</p>
        <p>
The path to duplicate the issue in a clean environment is as follows:
</p>
        <p>
1) Create a new page layout containing a single web part zone and add the Contact
field to the layout, which adds the People Picker to the page. 
<br />
2) Create a page using the layout, go into edit mode, and select a user in the People
Picker. 
<br />
3) Add a Content Editor Web Part to the web part zone, and modify the part. 
<br />
4) Open the Rich Text Editor, add some content, click OK which will refresh the page.
</p>
        <p>
After the page refreshes, the user selected in the People Picker shows like it does
in the screen shot above.
</p>
        <p>
Here are some links I’ve found with other people who have seen a similar behavior.
</p>
        <p>
          <a href="http://vspug.com/teameli/2009/07/28/moss-2007-sp2-april-cu-publishing-bug/" target="_blank">MOSS
2007 – SP2 / April CU Publishing Bug</a> (Team Eli’s blog) 
<br /><a href="http://community.bamboosolutions.com/forums/t/15052.aspx" target="_blank">Problem
adding alerts after installing SharePoint Service Pack 2</a> (Bamboo Nation) 
<br /><a href="http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/464c272f-a449-4592-b452-8df0935917ac" target="_blank">Issue
with Content Editor Web Part and UserField</a> (MSDN SharePoint forums)
</p>
        <p>
Looking at the posts, it seems this issue was introduced with Service Pack 2 for SharePoint.
As of the December 2009 Cumulative Update (CU), however, it’s still an issue. Luckily,
it looks like the February 2010 CU fixes it. 
</p>
        <img width="0" height="0" src="http://blog.richfinn.net/blog/aggbug.ashx?id=4fce2e56-8e53-48cb-b6d9-6249af8e2141" />
      </body>
      <title>Issue With People Picker Showing Strange XML</title>
      <guid isPermaLink="false">http://blog.richfinn.net/blog/PermaLink,guid,4fce2e56-8e53-48cb-b6d9-6249af8e2141.aspx</guid>
      <link>http://blog.richfinn.net/blog/2010/05/06/IssueWithPeoplePickerShowingStrangeXML.aspx</link>
      <pubDate>Thu, 06 May 2010 20:06:35 GMT</pubDate>
      <description>&lt;p&gt;
Recently a client has been having issue with page layouts that contain a UserField
control (People Picker). Sometimes, the People Picker will loose the resolution of
the user selected and instead display a bunch of strange XML/XSL along with the message
'&lt;em&gt;&lt;font color="#ff0000"&gt;You are only allowed to enter one item&lt;/font&gt;&lt;/em&gt;', as
shown below: 
&lt;br /&gt;
&lt;a href="http://blog.richfinn.net/blog/content/binary/WindowsLiveWriter/IssueWithPeoplePickerShowingStrangeXML_C660/image_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blog.richfinn.net/blog/content/binary/WindowsLiveWriter/IssueWithPeoplePickerShowingStrangeXML_C660/image_thumb.png" width="517" height="111" /&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
As you can see, there’s also a reference to the css class ‘ms-entity-resolved’ in
the XSL. 
&lt;/p&gt;
&lt;p&gt;
It turns out that the issue is due to a conflict between the Content Editor Web Part
and the People Picker. 
&lt;/p&gt;
&lt;p&gt;
The path to duplicate the issue in a clean environment is as follows:
&lt;/p&gt;
&lt;p&gt;
1) Create a new page layout containing a single web part zone and add the Contact
field to the layout, which adds the People Picker to the page. 
&lt;br /&gt;
2) Create a page using the layout, go into edit mode, and select a user in the People
Picker. 
&lt;br /&gt;
3) Add a Content Editor Web Part to the web part zone, and modify the part. 
&lt;br /&gt;
4) Open the Rich Text Editor, add some content, click OK which will refresh the page.
&lt;/p&gt;
&lt;p&gt;
After the page refreshes, the user selected in the People Picker shows like it does
in the screen shot above.
&lt;/p&gt;
&lt;p&gt;
Here are some links I’ve found with other people who have seen a similar behavior.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://vspug.com/teameli/2009/07/28/moss-2007-sp2-april-cu-publishing-bug/" target="_blank"&gt;MOSS
2007 – SP2 / April CU Publishing Bug&lt;/a&gt; (Team Eli’s blog) 
&lt;br /&gt;
&lt;a href="http://community.bamboosolutions.com/forums/t/15052.aspx" target="_blank"&gt;Problem
adding alerts after installing SharePoint Service Pack 2&lt;/a&gt; (Bamboo Nation) 
&lt;br /&gt;
&lt;a href="http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/464c272f-a449-4592-b452-8df0935917ac" target="_blank"&gt;Issue
with Content Editor Web Part and UserField&lt;/a&gt; (MSDN SharePoint forums)
&lt;/p&gt;
&lt;p&gt;
Looking at the posts, it seems this issue was introduced with Service Pack 2 for SharePoint.
As of the December 2009 Cumulative Update (CU), however, it’s still an issue. Luckily,
it looks like the February 2010 CU fixes it. 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.richfinn.net/blog/aggbug.ashx?id=4fce2e56-8e53-48cb-b6d9-6249af8e2141" /&gt;</description>
      <comments>http://blog.richfinn.net/blog/CommentView,guid,4fce2e56-8e53-48cb-b6d9-6249af8e2141.aspx</comments>
      <category>SharePoint 2007</category>
    </item>
  </channel>
</rss>