Trailing points are truncated by URL

I am working on creating a WebDAV server in .Net using the IT HIt WebDAV engine.

Here's the problem:

When the URL ends with a dot ('.'), The dot truncates from the URL. For example: ' http://webdav.company.com/Company/My Company, Inc.' source Context.Request.Path ends without a dot at the end. Any ideas why this is happening and is there a workaround?

I host the solution in IIS 7.5, .NET Framework 4.0

I also have a relaxedUrlToFileSystemMapping property in web.config equal to true.

Thanks in advance!

+4
source share
1 answer

You may encounter this problem with code generated using IT Hit WebDAV Server Engine Wizards for Visual Studio, and the option "Save files and metadata to the file system" is selected.

This is a limitation of the Windows file system, for this, as far as I know, there is no workaround. Here is what MSDN says about it :

Do not end the file or directory name with a space or period. Although the underlying file system can support these names, the Windows shell and user interface do not work.

If you use a database or any other storage, you will not encounter this problem.

0
source

All Articles