Tag Archives: CQWP

SP 2010 CQWP, Dokumento aklatan at Anonymous mga gumagamit

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

Sa linggong ito, 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.

Kami nagpunta sa pamamagitan ng isang detalyadong pamamaraan upang matiyak ang katumpakan, 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. Tiyakan, our CQWP wouldn’t render for anonymous users. It rendered find for the authors (na naka-log in), ngunit hindi ito ay nagpapakita ng nilalaman para sa mga hindi kilalang gumagamit.

Ginawa namin ang isang pulutong ng mga pananaliksik at ang mga ito ay ang mga parameter at mga aksyon na namin kinuha upang ihiwalay ang pag-uugali:

  • CQWP render pinong kapag ito ay batak na nilalaman mula sa isang pasadyang listahan.
  • CQWP ay render ng nilalaman mula sa / library Pahina.
  • Hindi ito ay render ang nilalaman mula sa / 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.
  • Kami (medyo dali-dali) set up ng isang bagong SP 2010 kapaligiran, tuwid out ng muli ang kahon at replicated ang pag-uugaling ito.

Ika-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?

Ito ay ang error na nakita natin sa ang mga tala:

Web Bahagi pamagat: Bahagi ng nilalaman Query Web 653d91fb-2f83-4e6a na-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 reference hindi nakatakda sa isang halimbawa ng isang bagay. at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.SetDocumentIconUrlAndOnClickString(SPWeb web, DataRow hilera, 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, paki-post ng komento.

</dulo>

Mag-subscribe sa aking blog.

Sundin ako sa Twitter sa http://www.twitter.com/pagalvin