Page MenuHomePhabricator

Fix bug that html 404 is returned when post id is to small
ClosedPublic

Authored by Info-Screen on Sep 9 2018, 3:47 PM.

Details

Summary

Previously urls that had a post id with fewer than 9 digits (8 for nonce + at least 1 for pk),
couldn't resolve to a view, resulting in an HTML 404 error, instead of one in the users prefered format (json, etc)

Test Plan

Getting posts with too short ids aswell as real posts

Diff Detail

Repository
rAPI Server API
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I trust you on having solved it, I really don't understand half the code that is written. I really need to learn more about Python Django etc...

This revision is now accepted and ready to land.Sep 17 2018, 2:03 PM
This revision was automatically updated to reflect the committed changes.