This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
WS 18/19 ❄️-Release
Changelog
Added
- Export PDF with styled free text units. #997 #1047
- More predefined custom containers. #996
- Styled code snippets. #1017
LectureController
success (200
), access denial (403
) and not found (404
) unit tests for all routes. #1041- Various
NotificationController
unit tests (200
s,400
s,403
s,404
s). #1065 - Two
NotificationSettingsController
unit tests for403
&404
PUT
request errors. #1072 TestHelper
request methods forPUT
&DELETE
. #1041- Code kata validation service. #844
- File ↔ video unit display type switching. #912
Fixed
bundle.scss
not available in api container. #1052
Changed
- Update
mongoose
to5.4.x
. #1003 #1004 #1044 #1077 - Refactor
LectureController
GET
/POST
/PUT
routes to useasync
/await
. #1041 - Refactor
NotificationController
unit tests in general. #1065 - Refactor
NotificationController
to utilize.orFail
and theerrorCodes
file. #1065 - Refactor
ExportController
&LectureController
to utilize.orFail
. #1065 - Sanitize
{post} /api/lecture/
route parameters by reducing the arbitraryILecture
input toname
&description
. #1041 - Sanitize
NotificationController
POST
route parameters by taking atargetType
andtargetId
instead of the separatechangedCourse
/changedLecture
/changedUnit
which needed a (missing) consistency check. #1065 - Empty success response object in the two
NotificationController
POST
routes. #1065 - Major
NotificationSettingsController
refactoring and changes in general, plus unit test / front-end adjustments. #1072 - Disable unit submit button when deadline is over. #964
- The background image on the index page. #922
Removed
- Unused
Notification
class in the front-end. #1065 - Unused
NotificationSettings
class in the front-end. #1072 {post} /api/notificationSettings/
route; functionality now handled completely by{put} /api/notificationSettings/
. #1072
Fixed
- Some incorrect
FixtureUtils
return types. #1041 #1065 LectureController
404
error handling. #1041NotificationController
404
error handling. #1065NotificationSettingsController
404
PUT
error handling. #1072- Course list broken when course image in invalid state. #1053
Security
- Fix multiple security issues of the
LectureController
. #1041 - Fix missing
teacher
authorization check for the twoNotificationController
POST
routes. #1065 - Fix missing
NotificationController
POST
teacher
authorization check. #1065 - Fix
{get} /api/notification/
response leaks by introducingINotificationView
, a reduced and safe variant of theINotification
interface. #1065 - Fix response leaks for all three (now two)
NotificationSettingsController
routes by introducingINotificationSettingsView
, a strongly reduced _(no own id) and safe variant of theINotificationSettings
interface. #1072 - Secure
{get} /api/notification/
by using the@CurrentUser
instead of allowing arbitrary id requests. #1065 - Secure
{get} /api/notificationSettings/
by using the@CurrentUser
instead of allowing arbitrary id requests. #1072 - Secure
{put} /api/notificationSettings/
by using the@CurrentUser
instead of allowing arbitrary id requests. #1072 - Minimize
NotificationSettingsController
attack surface by severely simplifying its routes. #1072