Skip to content

Uri.IsBaseOf(bool) not true by user info #88265

@osjimenez

Description

@osjimenez

Description

When check a Uri with same info except UserInfo, IsBaseOf method must be return true, as say in documentation

When comparing two Uri objects to determine a base relationship, the user information (UserInfo) is not evaluated

But this behavior does not occur in my case :(

Reproduction Steps

Assert.True(new Uri("https://user@domain.com").IsBaseOf(new("https://domain.com")));

Expected behavior

Return true

Actual behavior

Return false

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions