Skip to content

Conversation

@nirajacharya2
Copy link
Contributor

@nirajacharya2 nirajacharya2 commented Aug 6, 2025

related to: #117

@nirajacharya2 nirajacharya2 self-assigned this Aug 6, 2025
@nirajacharya2 nirajacharya2 force-pushed the fix-uplod-error-max-size branch 2 times, most recently from bf54f71 to 28996ca Compare August 6, 2025 10:51
@nirajacharya2 nirajacharya2 force-pushed the fix-uplod-error-max-size branch 2 times, most recently from 26018b4 to 2b4eaab Compare August 13, 2025 04:19
@nirajacharya2 nirajacharya2 marked this pull request as ready for review August 13, 2025 04:42
@individual-it
Copy link
Member

@PhMemmel could you try that

@PhMemmel
Copy link

Hi @individual-it , sorry for the delay. Yes, will test and give feedback.

@PhMemmel
Copy link

I tested on our testing instance. Same error still occurs...

@nirajacharya2 nirajacharya2 force-pushed the fix-uplod-error-max-size branch 9 times, most recently from 34cfcc0 to 4f1384c Compare August 27, 2025 08:40
… from ocis into moodle that is bigger than the configured max size.
@nirajacharya2 nirajacharya2 force-pushed the fix-uplod-error-max-size branch from 4f1384c to 7c2e3c6 Compare August 27, 2025 08:56
@nirajacharya2
Copy link
Contributor Author

I tested on our testing instance. Same error still occurs...

can you test again?

@nirajacharya2
Copy link
Contributor Author

@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

@nirajacharya2
Copy link
Contributor Author

@PhMemmel can you please test it again? i have added ui tests to verify this works. just need your approval now.

@PhMemmel
Copy link

PhMemmel commented Sep 8, 2025

Will retest, but will probably take a little bit of time.

@PhMemmel
Copy link

PhMemmel commented Sep 23, 2025

Hi, sorry for the long delay. I retested again and the error still happens. I'm trying to add a file test.txt that I just generated by using dd if=/dev/zero of=test.txt bs=1M count=600 on an instance that has a moodle upload limit of 512MB configured.

image

Copy link
Contributor

@phil-davis phil-davis left a 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@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"',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @When I should see error :errorMessage
* @Then I should see error :errorMessage

This looks like a Then step.

@nirajacharya2
Copy link
Contributor Author

Hi, sorry for the long delay. I retested again and the error still happens. I'm trying to add a file test.txt that I just generated by using dd if=/dev/zero of=test.txt bs=1M count=600 on an instance that has a moodle upload limit of 512MB configured.
image

can you give me the trace of the error you are getting

@PhMemmel
Copy link

Stack trace unfortunately not really helpful:

JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
Datei: https://MYHOST/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js
Zeile: 24447

@https://MYHOST/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:24447:18
ln: 84
https://MYHOST/lib/javascript.
complete

ln: 35
https://MYHOST/theme/yui_combo
_notify

Not more information available from the network tab unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants