This is a migrated thread and some comments may be shown as answers.

Document manager automatically approves documents that are uploaded with the document manager

7 Answers 86 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Jeroen
Top achievements
Rank 1
Jeroen asked on 23 Apr 2009, 02:05 PM
Hi,

We are using the telerik rad editor for MOSS version 5.3.2

We have the following problem. When we want to upload a document with the document manager, we click the document manager, then the library we want to upload the document in, we click browse, browse to the file, click ok and click upload. Now we get an error page:
Error
However the document is uploaded to the library.

We also found out the problem, the logged in user does not have approval rights on the document library where the document is uploaded in. The document library as the setting "require content approval for submitted items" checked as yes. So Documents uploaded to this library need to be approved.

When we do the same with the administrator account, the problem does not occur, the administrator as approval rights, and we see that the document is upload and also automatically approved.

When we set the "require content approval for submitted items" and we log in as the user that does not have approval rights, and we upload a document again, we don't get the error.

So the problem is, when "require content approval for submitted items"  on a library is checked to "yes" the document manager automatically wants to approve the documents that are uploaded, but when you're logged in as a user that does not have approval rights the error page occurs.

Do you have a solution for it?



7 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 28 Apr 2009, 08:30 AM
Hello Jeroen,

What I suggest to you is to upgrade to the latest version of RadEditor for MOSS 5.4.0. In the following help article you can find information on Upgrading to a newer version of RadEditor for MOSS http://www.telerik.com/help/aspnet-ajax/upgrade_to_a_newer_version_of_radeditor_for_moss.html

In this version if a user, who can not approve documents try to upload a document in a library, which requires approval, he will receive an Error: Access Denied message and the document will be uploaded with Approval status: Draft. This means that this document will be available only for the user, who uploaded it and for the users, who have approval rights. When a user with approval rights uploads a document it will be deployed with Approval status: Approved.

This is the default RadEditor behavior.

I hope this helps.

Sincerely yours,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jeroen
Top achievements
Rank 1
answered on 28 Apr 2009, 09:05 AM
I installed the new version, but the behaviour isn't exactly as you describe.

These are the steps i followed:

- I logged on as a user who doesn't have approval rights
- I tried to upload a document, but i get the following error, this is not the same error as you described in the previous post.
- I went to the document library where i just wanted to upload a document, the document wasn't in there. I checked if the user was able to upload a document in this document library, and he was able, so the error message i got earlier using the document manager isn't correct.


EDIT: I tested this version further and with every manager i get this error, also with every user, even administrators.

0
Stanimir
Telerik team
answered on 30 Apr 2009, 09:02 AM
Hi Jeroen,

Please check if Adding the following code to the respective ConfigFile.xml, ListConfigFile.xml (for forms such as list, wiki, blog ...), which are located in the Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.4.0.0__1f131a624888eeed\Resources folder will resolve the problem?
<property name="DocumentsPaths"
    <item>/Documents</item> 
    <item>/SiteCollectionDocument</item> 
</property> 

/Documents and /SiteCollectionDocument should be the full path to the libraries.

Unfortunately we discovered a bug in the new FileBrowser provider in the RadEditor for MOSS dialogues. The issue is that if the paths do not start with /, when the user tries to upload a file he will receive the error message that you posted in your previous thread. Our developers are working on fixing it, and it should be done soon.

I apologize for the inconvenience.


Sincerely yours,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jeroen
Top achievements
Rank 1
answered on 05 May 2009, 09:59 AM
When I use

<property name="DocumentsPaths">  
    <item>/Documents</item>  
    <item>/SiteCollectionDocument</item>  
</property>  
I still have the same problems.
0
Stanimir
Telerik team
answered on 07 May 2009, 02:17 PM
Hi Jeroen,

Could you please provide us with your configuration files (ConfigFile.xml, ListConfigFile.xml, ToolsFile.xml, ListToolsFile.xml). This way we will try to reproduce the problem more accuratly in our test server.

Thank you.

Best wishes,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jeroen
Top achievements
Rank 1
answered on 28 May 2009, 10:49 AM
We now use the latest version of the editor SP1. But I still have the same error.

here are my config files:

configfile.xml:
<configuration> 
  <property name="EditModes">Design,Preview</property>  
  <property name="ToolbarMode">Default</property>  
  <property name="Skin">Telerik</property>  
  <property name="Width">740px</property>  
<property name="CssFiles"
  <item>\wpresources\RadEditorSharePoint\5.3.2.0__1f131a624888eeed\Resources\CssEditor.css</item>  
  </property> 
<property name="ImagesPaths"
  <item>PublishingImages</item>  
  <item>/SiteCollectionImages</item>  
  </property> 
<property name="DocumentsPaths"
  <item>Documents</item>  
  <item>/SiteCollectionDocuments</item>  
  </property> 
<property name="FlashPaths"
  <item>/Flash Library</item>  
  </property> 
<property name="FlashFilters"
  <item>*.swf</item>  
  <item>*.flv</item>  
  </property> 
  <property name="MaxDocumentSize">50000000</property>  
  </configuration> 

toolsfile.xml:
<root> 
<tools name="MossTools1"
  <tool name="InsertSymbol" />  
  <tool name="FormatStripper" />  
  <tool name="InsertTable" />  
  <tool name="Undo" />  
  <tool name="Redo" />  
  <tool name="Cut" />  
  <tool name="Copy" />  
  <tool name="Paste" />  
  <tool name="PasteFromWord" />  
  <tool name="PasteFromWordNoFontsNoSizes" />  
  <tool name="PastePlainText" />  
  <tool name="Print" />  
  <tool name="FindAndReplace" />  
  <tool name="SelectAll" />  
  <tool name="InsertGroupbox" />  
  <tool name="InsertHorizontalRule" />  
  <tool name="InsertSnippet" />  
  <tool name="InsertDate" />  
  <tool name="InsertTime" />  
  <tool name="ImageManager" />  
  <tool name="ImageMapDialog" />  
  <tool name="FlashManager" />  
  <tool name="DocumentManager" />  
  <tool name="AbsolutePosition" />  
  <tool name="LinkManager" />  
  <tool name="Unlink" />  
  </tools> 
<tools name="MossTools2"
  <tool name="FormatBlock" />  
  <tool name="Bold" />  
  <tool name="Italic" />  
  <tool name="Underline" />  
  <tool name="StrikeThrough" />  
  <tool name="JustifyLeft" />  
  <tool name="JustifyCenter" />  
  <tool name="JustifyRight" />  
  <tool name="JustifyFull" />  
  <tool name="JustifyNone" />  
  <tool name="Superscript" />  
  <tool name="Subscript" />  
  <tool name="ConvertToLower" />  
  <tool name="ConvertToUpper" />  
  <tool name="Indent" />  
  <tool name="Outdent" />  
  <tool name="InsertOrderedList" />  
  <tool name="InsertUnorderedList" />  
  >  
  <tool name="FontSize" />  
  <tool name="RealFontSize" />  
  <tool name="InsertCustomLink" />  
  </tools> 
<tools name="EnhancedEditToolbar" dockingZone="Bottom" dockable="true" enabled="true"
  <tool name="ToggleScreenMode" />  
  <tool name="ToggleTableBorder" />  
  <tool name="Zoom" />  
  </tools> 
<contextMenus> 
<contextMenu> 
  <tool name="Cut" />  
  <tool name="Copy" />  
  <tool name="Paste" />  
  <tool name="Indent" />  
  <tool name="Outdent" />  
  <tool name="InsertOrderedList" />  
  <tool name="InsertUnorderedList" />  
  <tool name="LinkManager" />  
  </contextMenu> 
  </contextMenus> 
<links> 
  <link name="Internet DSM" href="http://www.dsm.com" />  
  <link name="Intranet DSM" href="http://intranet.my-dsm.com" />  
  </links> 
<modules> 
  <module name="RadEditorStatistics" dockingZone="Bottom" enabled="true" visible="true" />  
  <module name="RadEditorNodeInspector" dockingZone="Module" enabled="true" visible="true" />  
  </modules> 
<snippets> 
<snippet name="Text Teaser with Image"
<![CDATA[   <table class="ms-rteTable-TextTeaserImage-ContentArea">
      <tr>
          <td>
              <table class="ms-rteTable-TextTeaserImage-ContentArea">
                   <tr>
                        <td class="ms-rteTableHeaderFirstCol-TextTeaserImage-ContentArea">
                            <a href="http://intranet.my-dsm.com" target="_blank">
                                    <img alt="" src="/PublishingImages/TeaserImageContentArea.jpg" />
                            </a>
                        </td>
                    </tr>
                    <tr class="ms-rteTableFooterRow-TextTeaserImage-ContentArea">
                        <td class="ms-rteCustom-TextDefault">
                            Image subtitle
                        </td>
                    </tr>
                </table>
            </td>
            <td class="ms-rteTableLastCol-TextTeaserImage-ContentArea">
                <table class="ms-rteTable-TextTeaserImage-ContentArea">
                    <tr>
                        <td>
                            <a href="http://intranet.my-dsm.com/" target="_blank"><span class="ms-rteCustom-Headline">Company Profile</span></a>
                        </td>
                    </tr>
                    <tr>
                        <td class="ms-rteCustom-TextDefault">
                            DSM is active worldwide. The <a href="http://intranet.my-dsm.com" target="_blank">company</a> creates innovative products and service that help improve the quality of life.<br />
                            <a href="http://intranet.my-dsm.com" target="_blank"><span class="dsm-LinkIndicator">more</span></a></div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
</table>
  ]]>  
  </snippet> 
<snippet name="Accentuated Text Teaser with Image"
<![CDATA[ <table class="ms-rteTable-TextTeaserImage-Accentuated-ContentArea">
         <tr>
            <td class="ms-rteTableFirstCol-TextTeaserImage-Accentuated-ContentArea"> 
                   
                   <img alt="" src="PublishingImages/TeaserImageContentAreaAssentuated.jpg"/>
               
            </td>
            <td class="ms-rteTableHeaderLastCol-TextTeaserImage-Accentuated-ContentArea">
                <table class="ms-rteTable-TextTeaserImage-Accentuated-ContentArea">
                            <tr>
                                <td class="ms-rteTableHeaderLastCol-TextTeaserImage-Accentuated-ContentArea">
                                    <span class="ms-rteCustom-Headline-TeaserArea-AccentuatedText">Content Teaser</span>
                                </td>
                            </tr>
                            <tr class="ms-rteTableHeaderRow-TextTeaserImage-Accentuated-ContentArea">
                                <td class="ms-rteTableHeaderLastCol-TextTeaserImage-Accentuated-ContentArea">
                                    DSM is active worldwide.<br />
                                    The company creates innovative <br />
                                    products and service that help improve the 
                                    quality of life.
                             </td>
                        </tr>
                    
                </table>
            </td>
        </tr>
   </table>
  ]]>  
  </snippet> 
<snippet name="Text Teaser"
<![CDATA[       <table class="ms-rteTable-TextTeaser-ContentArea">
       <tr>
           <td>
                <span class="ms-rteCustom-Headline">Corporate Governance</span>
           </td>
       </tr>
       <tr>
           <td class="ms-rteCustom-TextDefault">
                The Dutch Corporate Governance code prescibes that quite a number of documents
                relating to corporate Governance should be published on the company's website. We gladly
                adhere to this practice in order to inform our stakeholders and other interested parties
                of the way our company has embedded its Corporate Governance policies.Here you can find that
                DSM is applying all 113 Best Practices of this code with one exception.
            </td>
       </tr>
       <tr>
           <td>
                <span class="ms-rteCustom-SubHeadline">Sub Headline</span>
           </td>
       </tr>
       <tr>
           <td class="ms-rteCustom-TextDefault">
            We gladly adhere to this practice in order to inform our stakeholders and other interested parties
            of the way our company has embedded its Corporate Governance policies. Here you can find that 
            DSM is applying all 113 Best Practices of this code with one exception.<br />
            <a href="http://intranet.my-dsm.com" target="_blank"><span class="dsm-LinkIndicator">more</span></a></div>
           </td>
       </tr>
   </table>
  ]]>  
  </snippet> 
  </snippets> 
<paragraphs> 
  <paragraph name="<span class='ms-rteCustom-Headline'>Headline</span>" value="<span class='ms-rteCustom-Headline'>" />  
  <paragraph name="<span class='ms-rteCustom-Headline-TeaserArea'>Headline-TeaserArea</span>" value="<span class='ms-rteCustom-Headline-TeaserArea'>" />  
  <paragraph name="<span class='ms-rteCustom-Headline-TeaserArea-AccentuatedText' style='background-color: #336fa3;'>Headline-TeaserArea-AccentuatedText</span>" value="<span class='ms-rteCustom-Headline-TeaserArea-AccentuatedText'>" />  
  <paragraph name="<span class='ms-rteCustom-SubHeadline'>SubHeadline</span>" value="<span class='ms-rteCustom-SubHeadline'>" />  
  <paragraph name="<span class='ms-rteCustom-TextAccentuation'>TextAccentuation</span>" value="<span class='ms-rteCustom-TextAccentuation'>" />  
  <paragraph name="<span class='ms-rteCustom-TextDefault'>TextDefault</span>" value="<span class='ms-rteCustom-TextDefault'>" />  
  </paragraphs> 
  </root> 

0
Stanimir
Telerik team
answered on 30 May 2009, 01:26 PM
Hello Jeroen,

Today we released a new 5.4.1 version of RadEditor for MOSS , which is based on the latest Telerik.Web.UI dll.  I think that if you upgrade with it, you will no longer have this problem.


Regards,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
WebParts for SharePoint
Asked by
Jeroen
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Jeroen
Top achievements
Rank 1
Share this question
or