adobe / adobe/aem-project-archetype

Improve error 404/500 handling

Open
#290 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
JavaScript
Stars
596
Forks
431
Avg merge
10d 6h
Merged PRs (30d)
1

Description

The error 404/500 error handling solution provided by the archetype [0] is not very robust and seems difficult to achieve a "pretty" error page. Instead, a Apache ErrorDirective solution [1] gives the flexibility to use actual content pages and is quite easy to set up (once you know the syntax).

While this might not be a complete solution for a multilingual setup (the error code is using the `us-en` locale for all errors), it seems like a good start and the direction we can move towards.

[0] https://github.com/adobe/aem-project-archetype/tree/master/src/main/archetype/ui.apps/src/main/content/jcr_root/apps/sling/servlet/errorhandler
[1] https://github.com/adobe/aem-guides-wknd/pull/61

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing error handler under src/main/archetype/ui.apps/src/main/content/jcr_root/apps/sling/servlet/errorhandler and compare it with the Apache ErrorDirective approach in the linked WKND pull request. Determine how the generated archetype should provide pretty 404 and 500 pages, then verify the generated project handles those errors consistently; multilingual behavior is explicitly not complete.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.