Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Special characters in filenames
tmcgarrigle
#1 Posted : Thursday, July 26, 2012 1:40:34 PM(UTC)
Groups: Member
Joined: 7/12/2012(UTC)
Posts: 4
Location: USA

Was thanked: 1 time(s) in 1 post(s)
I have a website that has a plus sign in the filename and UWS isn't recognizing those pages. It's treating the '+' as a space. Any ideas how to resolve?
1 user thanked tmcgarrigle for this useful post.
Ultidev Team on 8/5/2012(UTC)
Ultidev Team
#2 Posted : Thursday, July 26, 2012 3:10:24 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi there!

is file name in question looking like "some+page.htm"? Could you please confirm that this behavior is UWS-specific and does not manifest when running the app in IIS?

Thank you,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
tmcgarrigle
#3 Posted : Thursday, July 26, 2012 4:20:54 PM(UTC)
Groups: Member
Joined: 7/12/2012(UTC)
Posts: 4
Location: USA

Was thanked: 1 time(s) in 1 post(s)
Actually I found it's an issue with any file that has a special character, not just those with the plus sign. Examples: some+page.htm some&page.htm. It worked in Cassini 2.0 and IIS by adding requestFiltering allowDoubleEscaping=true to the web.config.
Ultidev Team
#4 Posted : Thursday, July 26, 2012 11:10:31 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Thank you much for bringing this to our attention. We'll test this scenario, but it probably will take next release of UWS to have this problem fixed.

First thing to note is that requestFiltering setting is in the IIS7-specific section of the web.config. It can't affect IIS6, Cassini or UWS. We'll take a look at whether we can support serving files with special chars at all times.

We will keep you posted regarding the progress.

Best wishes,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Ultidev Team
#6 Posted : Sunday, August 5, 2012 3:55:14 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi there!

It turns out standard UrlDecode() does not distinguish between '+' in the query string between '+' in the URL itself, and coverts both using query string rule instead of using exception. We implemented a work-around that will be available in build 18 of UWS.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
tmcgarrigle
#7 Posted : Monday, August 6, 2012 1:14:01 PM(UTC)
Groups: Member
Joined: 7/12/2012(UTC)
Posts: 4
Location: USA

Was thanked: 1 time(s) in 1 post(s)
What about other special characters? From #3 above "Actually I found it's an issue with any file that has a special character, not just those with the plus sign."
Ultidev Team
#8 Posted : Monday, August 6, 2012 5:09:12 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi there!

Since it's impossible to create physical file with names containing '%', '&', ':' and other special characters, could you please check whether virtual paths, like HttpModules, don't work properly with pre-release build 18?

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
tmcgarrigle
#9 Posted : Tuesday, August 7, 2012 5:41:08 AM(UTC)
Groups: Member
Joined: 7/12/2012(UTC)
Posts: 4
Location: USA

Was thanked: 1 time(s) in 1 post(s)
I am able to create physical files with the following special characters: !@#$%^&(). Only: \/:*?"<>| are restricted in Windows. I will look into your suggestion as well as using IISExpress to resolve. Thank you for your assistance
Ultidev Team
#11 Posted : Tuesday, August 7, 2012 8:27:10 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi!

We are sorry, it turns out Visual Studio and not OS refuses to create such items. We will test more special chars and will let you know.

Thank you again,
UltiDev Team.
Ultidev Team attached the following image(s):
Ultidev Team attached the following image(s): Visual Studio Illegal File Chars.png
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Ultidev Team
#10 Posted : Saturday, August 11, 2012 11:47:36 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi there!
tmcgarrigle;3929 wrote:
I am able to create physical files with the following special characters: !@#$%^&()


We tested characters you've mentioned, and all of them, except % and #, which are special URL characters, work fine. '%' in the file name prevents browsers from even sending a request. '#' chops URL as everything following '#' is an internal page bookmark.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.