-
Notifications
You must be signed in to change notification settings - Fork 2
Bug: [ValidateTopic] should return 403 if PageGroup is empty #62
Copy link
Copy link
Closed
Labels
Area: WebRelates to the `AspNetCore` or other web-related functionality.Relates to the `AspNetCore` or other web-related functionality.Priority: 3Severity 0: Nice to haveStatus 5: CompleteTask is considered complete, and ready for deployment.Task is considered complete, and ready for deployment.Type: BugBehavior that is inconsistent with documented or expected behavior.Behavior that is inconsistent with documented or expected behavior.
Milestone
Metadata
Metadata
Assignees
Labels
Area: WebRelates to the `AspNetCore` or other web-related functionality.Relates to the `AspNetCore` or other web-related functionality.Priority: 3Severity 0: Nice to haveStatus 5: CompleteTask is considered complete, and ready for deployment.Task is considered complete, and ready for deployment.Type: BugBehavior that is inconsistent with documented or expected behavior.Behavior that is inconsistent with documented or expected behavior.
Currently, if a
PageGroupis requested, the[ValidateTopic]will redirect to the first child thatIsVisible(). 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.