Mikilvægt uppfærslu: Waldek Mastykarz has posted a workaround here: http://blog.mastykarz.nl/inconvenient-sharepoint-2010-content-query-web-part-anonymous-access/.
</enda uppfærslu>
Í þessari viku, 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.
Við fórum í gegnum mjög nákvæma málsmeðferð til að tryggja nákvæmni, 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. Sérstaklega, our CQWP wouldn’t render for anonymous users. It rendered find for the authors (sem voru skráð í), en það vildi ekki sýna efni fyrir nafnlausa notendur.
Við gerðum mikið af rannsóknum og þetta eru breytur og aðgerðir við tók að einangra hegðun:
- CQWP geri fínt þegar það var að toga efni úr sérsniðnum lista.
- CQWP geri efni frá / síður bókasafn.
- Það myndi ekki láta efni frá / SiteCollectionImages
- 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.
- Við (nokkuð skyndilega) setja upp nýja SP 2010 umhverfi, beint út af the kassi aftur og endurtaka þessa hegðun.
Neðsta lína, 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?
Þetta er villa sem við sáum í logs:
Web Part titill: Content Fyrirspurn Web Part 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 tilvísun ekki sett til dæmis á hlut. at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.SetDocumentIconUrlAndOnClickString(Spweb vefur, DataRow róður, String strDefaultItemOpen, Boolean fSetDocIcon, Boolean 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, vinsamlegast staða a athugasemd.
</enda>
Gerast áskrifandi að bloggið mitt.
Fylgdu mér á Twitter á http://www.twitter.com/pagalvin