mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #63474
[Bug 1946604] [NEW] json help returns wrong http response code
Public bug reported:
While working on another bug that had the json/help.php script returning
a "not found" message I noticed that this was still returning 200 OK.
If the help document is not found it should be returning a 404 Not
Found.
To test:
In a browser, open the inspector/devtools and select the network tab.
Open https://demo.mahara.org/json/help.php?plugintype=core&pluginname=view&page=not-a-real-page
Check the status of the request.
Observed: 200
Expected: 404
** Affects: mahara
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1946604
Title:
json help returns wrong http response code
Status in Mahara:
New
Bug description:
While working on another bug that had the json/help.php script
returning a "not found" message I noticed that this was still
returning 200 OK.
If the help document is not found it should be returning a 404 Not
Found.
To test:
In a browser, open the inspector/devtools and select the network tab.
Open https://demo.mahara.org/json/help.php?plugintype=core&pluginname=view&page=not-a-real-page
Check the status of the request.
Observed: 200
Expected: 404
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1946604/+subscriptions
Follow ups