Access Denied in Document Manager (MOSS)

6 posts, 0 answers
  1. Ulf
    Ulf avatar
    9 posts
    Member since:
    Feb 2009

    Posted 11 Oct 2010 Link to this post

    Hi Support,

    We are using SharePoint 2007 SP2 and RadEditor 5.8 with .NET 3.5 AJAX configured.

    Imagine this site structure: our-company.com/knowledge/wiki
    The User has read permissions on /knowledge and contribute on /knowledge/wiki. On both sites are publishing features activated.
    We get an access denied when trying to upload a document to the wiki site via the document manager.
    When granting the user contribute to /knowledge too it works fine.

    Note: when uploading with the Image Manager to the same site and document library, it works even with the read permissions on /knowledge.

    Regards
    Ulf

  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 13 Oct 2010 Link to this post

    Hello Ulf,

    Both ImageManager and DocumentManager use the same content provider for viewing, uploading and deleting files. The only thing that differs is the extensions of the managed files. In order to upload or delete files you need at least contribute permissions for the current library an all its parents.


    Sincerely yours,
    Stanimir
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  3. Ulf
    Ulf avatar
    9 posts
    Member since:
    Feb 2009

    Posted 13 Oct 2010 Link to this post

    Hi Stanimir,

    Thanks for the quick reply. We found a (strange) solution for the problem:
    When we add the Document Manager to the toolbar, it works fine. When we remove the Document Manager from the toolbar and only access it via Link Manager, we get access denied.
    Putting the Document Manager on the toolbar works for us, but its a little bit strange ... :)

    Regards
    Ulf

    BTW: Your service is great!
  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 13 Oct 2010 Link to this post

    Hi Ulf,

    Could you provide me with your ConfigFile.xml and your ListConfigFile.xml, which are located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder? I need to run one more test and these file will make it more accurate.

    Thank you.


    Sincerely yours,
    Stanimir
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Ulf
    Ulf avatar
    9 posts
    Member since:
    Feb 2009

    Posted 13 Oct 2010 Link to this post

    Hi Stanimir,

    These are the files which did not work:
    <configuration>
        <property name="ToolbarMode">Default</property>
        <property name="ToolsWidth">680px</property>
        <property name="DocumentsFilters">
            <item>*.*</item>
        </property>
        <property name="MaxDocumentSize">51200000</property>
        <property name="ImagesFilters">
            <item>*.jpg</item>
            <item>*.jpeg</item>
            <item>*.gif</item>
            <item>*.png</item>
        </property>
        <property name="MaxImageSize">51200000</property>
        <property name="ContentFilters">FixEnclosingP</property>
        <property name="NewLineBr">false</property>
        <property name="AllowScripts">true</property>
        <property name="AllowSpecialTags">true</property>
    <property name="ImagesPaths">
            <item>PublishingImages</item>
            <item>/SiteCollectionImages</item>
        </property>
        <property name="FlashPaths">
            <item>PublishingImages</item>
            <item>/SiteCollectionImages</item
        </property>
        <property name="MediaPaths">
            <item>PublishingImages</item>
            <item>/SiteCollectionImages</item>
        </property>
        <property name="DocumentsPaths">
            <item>Documents</item>
            <item>/SiteCollectionDocuments</item>  
        </property>
    </configuration>

    <root>
      <modules>
        <module name="RadEditorDomInspector" />
      </modules>
      <tools name="MossTools1">   
        <tool name="AjaxSpellCheck" />
        <tool name="FindAndReplace" />
        <tool separator="true" />
        <tool name="Cut" shortcut="CTRL+X" />
        <tool name="Copy" shortcut="CTRL+C" />
        <tool name="Paste" shortcut="CTRL+V" />
        <tool name="PasteFromWord" />
        <tool separator="true" />
        <tool name="Undo" shortcut="CTRL+Z" />
        <tool name="Redo" shortcut="CTRL+Y" />
        <tool separator="true" />
        <tool name="LinkManager" shortcut="CTRL+K"/>
        <tool name="ImageManager" shortcut="CTRL+G" />
        <tool name="ImageMapDialog" />
        <tool name="MOSSTemplateManager" />
        <tool separator="true" />
        <tool name="MOSSInsertTable" />
        <tool name="SetTableProperties" />
        <tool name="ToggleTableBorder" />
        <tool separator="true" />
        <tool name="MOSSInsertTableElement">
          <tool name="InsertRowAbove" />
          <tool name="InsertRowBelow" />
          <tool name="InsertColumnLeft" />
          <tool name="InsertColumnRight" />
          <tool name="DeleteRow" />
          <tool name="DeleteColumn" />
          <tool name="SplitCell" />
        </tool>
        <tool name="MergeColumns" />
        <tool separator="true" />
        <tool name="FormatStripper" />
        <tool separator="true" />
        <tool name="MOSSRightToLeft" />
        <tool name="MOSSLeftToRight" />
      </tools>
      <tools name="MossTools2">
        <tool name="FormatBlock" />
        <tool separator="true" />
        <tool name="Bold" shortcut="CTRL+B" />
        <tool name="Italic" shortcut="CTRL+I" />
        <tool name="Underline" shortcut="CTRL+U" />
        <tool separator="true" />
        <tool name="JustifyLeft" />
        <tool name="JustifyCenter" />
        <tool name="JustifyRight" />
        <tool separator="true" />
        <tool name="InsertOrderedList" />
        <tool name="InsertUnorderedList" />
        <tool separator="true" />
        <tool name="Indent" />
        <tool name="Outdent" />
        <tool name="ForeColor" />
        <tool name="BackColor" />   
        <tool name="Zoom" />
      </tools>
      <contextMenus>
        <contextMenu forElement="*">
          <tool name="Cut"/>
          <tool name="Copy"/>
          <tool name="Paste"/>
          <tool name="LinkManager"/>
        </contextMenu>
        <contextMenu forElement="A">
          <tool name="Unlink"/>
          <tool name="LinkManager"/>
        </contextMenu>
      </contextMenus>
      <paragraphs>
          <paragraph name="<P>Paragraph</P>" value="<P>" />
          <paragraph name="<H3>Headline</H3>" value="<H3>" />
          <paragraph name="<H4>Sub Headline</H4>" value="<H4>" />
          <paragraph name="<div class='code'>code</div>" value="<div class='code'>" />
      </paragraphs>
      <fontNames>
          <item name="Arial" />
      </fontNames>
    </root>

     Adding <tool name="DocumentManager" /> to the config file did the trick.

    Regards
    UIf
  6. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 15 Oct 2010 Link to this post

    Hello Ulf,

    Thank you for the provided information. It was very helpful. Indeed the problem is when the DocumentManager is used though the LinkManager and you set the path without starting / such as:
    <property name="DocumentsPaths">
        ...
        <item>Documents</item>
        ...
    </property>

    I logged the issue in our bug-traking system, so we will work on fixing it.



    Regards,
    Stanimir
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top