Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

[Questions] About back slash support in URI #643

Closed
chinadragon0515 opened this issue May 30, 2016 · 7 comments
Closed

[Questions] About back slash support in URI #643

chinadragon0515 opened this issue May 30, 2016 · 7 comments

Comments

@chinadragon0515
Copy link

chinadragon0515 commented May 30, 2016

This is related to issue OData/RESTier#414

Now we have a URL with back slash in it, when the service receive the request, I find Web Api will auto convert back slash to slash, and slash is not "%5C" but becomes the character ''.

I did some search, I find this configuration,

  < uri>
    < schemeSettings>
      < add name="https" genericUriParserOptions="DontUnescapePathDotsAndSlashes"/>
      < add name="http" genericUriParserOptions="DontUnescapePathDotsAndSlashes"/>
    < /schemeSettings>
  < /uri>

This does not work for me, I see there is an option DontConvertPathBackslashes, but when I set here, it indicates this is not correct setting.

Can you help to advise how I can configure a request with back slash? Or this is not supported?

For our project, it is created via
"C# > Web > ASP.NET Web Application.", and
In the New ASP.NET Project dialog box, select the Empty template.
Check the Web API check box.

If this is not right space for question, can you help to advise where I should ask this question.

@davidfowl
Copy link
Member

davidfowl commented May 31, 2016

Ask this question http://github.com/dotnet/corefx

@chinadragon0515
Copy link
Author

@davidfowl thanks

@chinadragon0515
Copy link
Author

Seems this issue is more related to ASP .NET, so I reopen the issue.

@Tratcher
Copy link
Member

Tratcher commented Jun 1, 2016

This is a behavior of Http.Sys/IIS. I assume you're running in IIS?

@chinadragon0515
Copy link
Author

@Tratcher Yes, I am using IIS, is there any configuration I can disable this convert? thanks.

@Tratcher
Copy link
Member

Tratcher commented Jun 3, 2016

No, there's no way to change this in IIS right now.

@chinadragon0515
Copy link
Author

@Tratcher thanks, I close the issue as this is not supported.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants