RE: Text Editor file upload error

129 views
Skip to first unread message

richar...@gmail.com

unread,
Oct 16, 2012, 11:24:59 AM10/16/12
to reddot-c...@googlegroups.com
Hey Mark,
 
Is there a Stack Trace visible below that message (sometimes with a yellow background)? Or perhaps you can find the stack trace in Windows Event log (Application) where the entry has a description matching the message shown.
 
Once you locate the stack, could you post it here.
 
That will help.
 
I’m guessing a license file is missing from your install.  Likely for the file uploading component.  But I need the stack to be sure.
 
Rgds,
Richard H.
 
---
Sent from Windows Mail
 
From: MarkL
Sent: ‎17‎ ‎October‎ ‎2012 ‎1‎:‎36‎ ‎AM
To: reddot-c...@googlegroups.com
Subject: Text Editor file upload error
 
Hi Guys,

Hopefully someone here can help me with an issue I'm having with my Reddot text editor.

Every time I try to upload an asset through the text editors(RadEditor or ReddotEditor) I get the following error:

"Server Error in '/CMS/WebClient' Application.

Refusing to upload file because key could not be validated."


Has anyone seen this issue before? This started after installing hotfix build 10.1.3.342, I have also tried upgrading to build 10.1.2.365, but this still isn't working?

Cheers

Mark

 

--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/reddot-cms-users/-/oKl1pYYCeQoJ.
To post to this group, send email to reddot-c...@googlegroups.com.
To unsubscribe from this group, send email to reddot-cms-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.

MarkL

unread,
Oct 17, 2012, 4:19:46 AM10/17/12
to reddot-c...@googlegroups.com
Hi Richard,

Thanks for your reply :) Stack trace below:

[InvalidOperationException: Refusing to upload file because key could not be validated.]
   RedDot.CMS.Client.UploadHandler.EnsureRequestIsValid(HttpRequest request) +322
   RedDot.CMS.Client.UploadHandler.ProcessRequest(HttpContext context) +140
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Thanks

Mark

Richard Hauer

unread,
Oct 17, 2012, 10:34:02 PM10/17/12
to reddot-c...@googlegroups.com

Hey Mark.

 

So, looking at the code, this is what is happening

 

1) check there is a “Key” form parameter that is passed with the file upload http request

2) check that is valid format (is 32 hex chars)

3) check there is a “Path” form parameter that is passed with the file upload http request

4) combine the path and the “key” and check the resulting path is valid and exists

5) Attempt to delete said path – check for any IOException raised

 

If any of the above fail you will get the error you have reported.  You will need an inspection tool (HttpWatch, Wireshark, Fiddler, browser dev tools) to check that correct form variables are being sent and what their values are.  Assuming these come from the app and are likely to be valid, the most probable issue is that the account that the IIS Application Pool is using does not have delete privilege.

 

Let me know how you get on.

 

Regards,

Richard Hauer

Solution Architect

To view this discussion on the web visit https://groups.google.com/d/msg/reddot-cms-users/-/UDxfsEifkEwJ.

Reply all
Reply to author
Forward
0 new messages