Skip to content

Ask About HttpRequest.PhysicalPath #373

@Clounea

Description

@Clounea

Summary

Our repo uses HttpRequest.PhysicalPath which is not supported by ASP.NetCore and this adapters.
I want to ask if there is equivalent and if there is plan to add them to adapter.

Motivation and goals

We need migrate code (an API in Sharepoint) to ASP.NetCore and we find that the APIs are not supported by ASP.NetCore.

In scope

HttpRequest.PhysicalPath

From src code, it uses HostingEnvironment.MapPathInternal which is related to this issue: Ask About System.Web.Hosting.HostingEnvironment

Examples

 if (null != context.Request
                 && null != context.Request.PhysicalPath
                 && IsSuspiciousPhysicalPath(context.Request.PhysicalPath))
{
    Log("PhysicalPath is suspicious");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIssues that have a PR open for them.enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions