Skip to content

Bug: [ValidateTopic] should return 403 if PageGroup is empty #62

@JeremyCaney

Description

@JeremyCaney

Currently, if a PageGroup is requested, the [ValidateTopic] will redirect to the first child that IsVisible(). If there are no children that satisfy that condition, it will attempt to redirect to a null path, which throws an exception. Instead, we should prefer to return a 403 Forbidden response, which is similar to attempting to browse a directory without a default document in it.

Metadata

Metadata

Assignees

Labels

Area: WebRelates to the `AspNetCore` or other web-related functionality.Priority: 3Severity 0: Nice to haveStatus 5: CompleteTask is considered complete, and ready for deployment.Type: BugBehavior that is inconsistent with documented or expected behavior.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions