SP 2010 CQWP, Dokument biblioteke en anonieme gebruikers

Belangrike update: Waldek Mastykarz has posted a workaround here: http://blog.mastykarz.nl/inconvenient-sharepoint-2010-content-query-web-part-anonymous-access/.
</eindig update>

Hierdie week, my team and I were upgrading a customer’s public internet site from MOSS to SP 2010. The MOSS site uses the CQWP in several places.

Ons het deur 'n baie gedetailleerde proses om akkuraatheid te verseker, quality and all that good stuff. Despite that, we ran into a problem in the 11th hour that we didn’t expect or uncover until very late. Spesifiek, our CQWP wouldn’t render for anonymous users. It rendered find for the authors (wat aangemeld), maar dit sou nie die inhoud wys vir anonieme gebruikers.

Ons het 'n baie navorsing gedoen en hierdie is die parameters en aksies wat ons het om die gedrag te isoleer:

  • CQWP sou lewer boete van wanneer dit trek die inhoud van 'n persoonlike lys.
  • CQWP sal maak die inhoud van die / bladsye biblioteek.
  • Dit sou nie die inhoud van / SiteCollectionImages lewer
  • We created a new document library and uploaded a few docs to it. We did not add any content types to the library – this was a simple out of the box doc lib with no customization. Existing CQWP could not read from it.
  • We created a new page and added a CQWP to it using all default values. it would not render for anonymous.
  • Ons ('n bietjie haastig) die opstel van 'n nuwe SP 2010 omgewing, reguit uit die boks weer en gerepliseer hierdie gedrag.

Bottom line, it appears that CQWP in SP2010 can’t render content for anonymous users when the data source is a document library. Can this be true?

Dit is die fout wat ons gesien het in die logs:

Web Deel titel: Inhoud Query Web Deel 653d91fb 2f83-4e6a-83af-1f39e8939f0a
07/30/2010 12:03:56.90 w3wp.exe (0x0F30) 0x1540 SharePoint Foundation Web Parts 89a1 High Error while executing web part: System.NullReferenceException: Object verwys nie na 'n geval van 'n voorwerp. at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.SetDocumentIconUrlAndOnClickString(SPWeb web, DataRow ry, String strDefaultItemOpen, Boole fSetDocIcon, Boole fSetOnClick, String fileRefColumnRef, String progIdColumnRef, String fsobjTypeColumnRef, String permMaskColumnRef) at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.PreProcessForDocumentIconAndOnClickAttribute() at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.AddContentQueryData() at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.GetXPathNavigator(String viewPath) at Microsoft.SharePoint.WebPartPages.DataFormWebPart…. 653d91fb-2f83-4e6a-83af 1f39e8939f0a-

It just seems kind of impossible that CQWP wouldn’t work for anonymous users. If you know any more about this, post a comment.

</einde>

Skryf in op my blog.

Volg my op Twitter http://www.twitter.com/pagalvin

7 gedagtes oor "SP 2010 CQWP, Dokument biblioteke en anonieme gebruikers

  1. Skakelkennisgewing: Tweets wat noem SP 2010 CQWP, Dokument biblioteke en anonieme gebruikers «Paul Galvin se SharePoint Space -- Topsy.com

  2. Skakelkennisgewing: Inconvenient SharePoint 2010 Inhoud Query Web Deel en Anonieme toegang - Waldek Mastykarz

  3. Dennis

    Net omdat ek didnt sien enige skakels postet hier nog, 'n paar wenke:

    http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010general/thread/892c9b5e-9ef3-4471-8825-6d632d046118
    http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/thread/90223bf3-278f-4168-b124-3413489b936a
    http://www.sharepointoverflow.com/questions/3979/content-query-web-part-cqwp-fails-to-show-picture-items-from-a-document-picture/4008#4008
    http://blog.mastykarz.nl/inconvenient-sharepoint-2010-content-query-web-part-anonymous-access/

    'N Paar regstellings, maar daar blykbaar geen oplossing vir hierdie probleem. Die CQWP nie die geval is net werk anoniem Ek veronderstel…

    Antwoord
  4. Etienne

    Het jy al ooit vind meer uit oor hierdie kwessie?

    Ek het dieselfde probleem. Site gaan live gou en ek het ontdek dat CQWP nie inhoud van die bladsye wat biblioteek wys wanneer dit nie in geteken. Ek het trippel nagegaan dat alle bladsye nagegaan-in en gepubliseer.

    Antwoord
  5. GavinB

    Ek het net gehardloop in hierdie probleem, however I also have a case of it working when querying for videos 😐

    If I find out more I’ll report back

    Antwoord

Laat 'n antwoord te Kerron Braham Kanseleer antwoord

Jou e-posadres sal nie gepubliseer word nie. Verpligte velde gemerk *