asp.net mvc - "The specified path, file name, or both are too long" URL within a web application -


We are developing a web application using EPIServer 7.5 MVC.

During the testing phase, we have searched when an editor publishes a page with a long URL, so we get an error given below:

"The specified path, file name, or both are too long. The fully qualified filename should be less than 260 characters, and the directory name should be less than 248 characters."

If the URL is small, then the error is not showing.

The recommended fixes for this are 'relaxUrlToFileSystemMapping' in the web.config to be set to true. It works, however, I am unsure about the effect of this and by enabling it within a web application, what is the security risk.

First of all, 'relaxedUrlToFileSystemMapping' is a recommended approach to decide? Has anyone applied any different to get this issue?

Thanks

Scott Hanselmann (Microsoft employee, ASP.Net and blue team I do believe). She describes it as "a security shutdown" though it does not go into specific implications.

It seems that he is suggesting an alternative, if the question string is a part that is too long:

   

However, I advise you to ensure that you do not need a ridiculously long URL in the first place. They should be easy to type and type, or


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -