-
Notifications
You must be signed in to change notification settings - Fork 0
throwing correct error message whenever a user tries to insert a filefrom ocis into moodle that is bigger than the configured max size. #118
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
base: main
Are you sure you want to change the base?
Conversation
bf54f71 to
28996ca
Compare
26018b4 to
2b4eaab
Compare
|
@PhMemmel could you try that |
|
Hi @individual-it , sorry for the delay. Yes, will test and give feedback. |
|
I tested on our testing instance. Same error still occurs... |
34cfcc0 to
4f1384c
Compare
… from ocis into moodle that is bigger than the configured max size.
4f1384c to
7c2e3c6
Compare
can you test again? |
|
@individual-it i have added an ui test just to check if it actually works. i don't think it should be merged. ill remove it after |
|
@PhMemmel can you please test it again? i have added ui tests to verify this works. just need your approval now. |
|
Will retest, but will probably take a little bit of time. |
phil-davis
left a comment
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.
Just some minor things that I noticed.
| @@ -0,0 +1,26 @@ | |||
| @max_uploas @javascript @repository_ocis @repository | |||
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.
| @max_uploas @javascript @repository_ocis @repository | |
| @max_uploads @javascript @repository_ocis @repository |
| "update-ca-certificates", | ||
| "cd /var/www/html/moodle", | ||
| 'vendor/bin/behat --config /var/www/behatdata/behatrun/behat/behat.yml --tags="@ocis"', | ||
| 'vendor/bin/behat --config /var/www/behatdata/behatrun/behat/behat.yml --tags="@max_uploas"', |
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.
| 'vendor/bin/behat --config /var/www/behatdata/behatrun/behat/behat.yml --tags="@max_uploas"', | |
| 'vendor/bin/behat --config /var/www/behatdata/behatrun/behat/behat.yml --tags="@max_uploads"', |
|
|
||
| /** | ||
| * Step definition for checking if error message is present on screen | ||
| * @When I should see error :errorMessage |
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.
| * @When I should see error :errorMessage | |
| * @Then I should see error :errorMessage |
This looks like a Then step.
|
Stack trace unfortunately not really helpful: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data Not more information available from the network tab unfortunately. |


related to: #117