-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development
: Fix null pointer exception when fetching student participation
#8178
Development
: Fix null pointer exception when fetching student participation
#8178
Conversation
WalkthroughThe update focuses on refining the access control logic within a specific method to ensure students can only access participations in programming exercises based on the current time and the exercise start date. This adjustment enhances the precision of access control, aligning access permissions more closely with the timing of the exercise. Changes
Related issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
src/main/java/de/tum/in/www1/artemis/web/rest/ProgrammingExerciseParticipationResource.java
Show resolved
Hide resolved
Integrated code lifecycle
: Fix nullpointer exception when fetching student participationDevelopment
: Fix null pointer exception when fetching student participation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on TS3.
- As a student, I can open the code editor and repository of a programming exercise even when it has no release date and no start date.
- Just to be sure, I tested it in an exam as well and encountered no problems.
-> Works as expected!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good
Checklist
General
Changes affecting Programming Exercises
Motivation and Context
Currently, Code Editor and Repositories can't be opened if the exercise doesn't have a start or release date.
Description
When fetching a participation, it is first checked if a start date exists before continuing with the checks.
Steps for Testing
Prerequisites:
Test that everything works as expected when opening code editor and repositories for programming exercises without start or release date
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Review Progress
Performance Review
Code Review
Manual Tests
Exam Mode Test
Test Coverage
Screenshots
Summary by CodeRabbit
releaseDate
parameter, enhancing the accuracy of test scenarios.