7aaeac03d6
Remove outdated error for used_defined_tests
...
Previously, a user-defined test (those run with "Test" instead of "Run") would cause a flash message and a Sentry error if anything was printed to StdErr. As this might happen during user code execution (and therefore is no error), we remove this warning. All existing errors are already caught (compare with enum status in testrun.rb), so it's fine for now.
Fixes CODEOCEAN-BT
2022-11-16 22:41:07 +01:00
fb494dabbd
Re-init Sorttable on turbolinks page load
2022-11-16 20:13:37 +01:00
0950e626ba
Convert message data to string before slicing
...
Fixes CODEOCEAN-F1
2022-11-16 19:53:19 +01:00
f17718f69f
CSP: Extract JavaScript from layout to assets
...
Fixes CODEOCEAN-CP
2022-11-16 19:47:58 +01:00
a9c642a116
CSP: Extract RfC JS from view to assets
...
Relates to CODEOCEAN-CP
2022-11-16 19:47:58 +01:00
b9f3126f21
CSP: Remove global this
in webpack
...
Also refactor how we handle global namespace objects.
Fixes CODEOCEAN-DV
2022-11-16 19:47:58 +01:00
55d7fb2f9a
Download file: Return after rendering NotAuthorized Error
...
Fixes CODEOCEAN-ET
2022-11-14 18:21:35 +01:00
d50e6d30e9
List Files: Catch more Runner::Errors
2022-11-14 13:51:04 +01:00
2753e4ef5b
Always catch StandardError in Threads and release connection
2022-11-11 22:50:27 +01:00
60f8d9809b
Catch error in LiveStreams Controller to avoid concurrency issue
2022-11-10 12:00:56 +01:00
cf957eb715
Prevent reference_implementation to be copied to Runner
2022-11-04 17:30:30 +01:00
de024d9360
Set Content-Type to fixed value for send_runner_file
2022-11-04 16:52:49 +01:00
26433aa2ff
Remove duplicated username (log statement)
2022-11-02 14:09:42 +01:00
4f0b8c3c42
Reduce usage of @current_user (use helper instead)
2022-11-02 12:27:38 +01:00
58548555a5
Shell: Add file system browser to retrieve arbitrary files
2022-10-29 18:49:18 +02:00
60078701f5
Editor: Allow file retrieval after code run
2022-10-29 18:49:18 +02:00
fb9672c7a4
FileTree: Allow output as hash, convert to JSON separately
2022-10-29 18:49:18 +02:00
ad8743a7d0
FileTree: Show more distinct icons where possible
2022-10-29 18:49:18 +02:00
cc3739322f
Always show sign-out button profile for internal users
2022-10-27 17:06:19 +02:00
eefe3faa13
Re-apply default group when external user signs out
2022-10-27 17:06:04 +02:00
f45fad71dd
Add early return support for authentication
2022-10-27 16:14:18 +02:00
dd1f4b0ac8
Merge pull request #939 from openHPI/refactor_proforma_import_export
...
Refactor Proforma Import/Export
2022-10-26 17:58:48 +02:00
c75f52f2c8
Fix Rubocop offenses
2022-10-24 12:28:50 +02:00
b3284bb7c7
Remove unused score pill from feedback and community solution
2022-10-13 19:56:32 +02:00
14bc0b9741
Always show score pill for exercise implement and adjust styling
2022-10-13 19:56:15 +02:00
ef5dd80ea7
Increase wait timeout for new execution environments to 60 sec
2022-10-11 21:14:07 +02:00
66ab00a6bd
Fix association to testrun_execution_environment
2022-10-11 21:08:34 +02:00
e9a00353ab
Fix: Allow admins to list internal users
2022-10-11 20:21:38 +02:00
d80a8dd64f
Fix Submissions index page
...
Closes CODEOCEAN-BJ
2022-10-11 20:21:13 +02:00
065f93f79c
Return empty programming language if no ACE mode is set
2022-10-06 00:25:22 +02:00
9e1f2da02e
Fallback to default height if editor offset cannot be determined
...
Fixes CODEOCEAN-B6, Fixes CODEOCEAN-E1, Fixes CODEOCEAN-BZ
2022-10-06 00:24:23 +02:00
df384ebf0d
Disallow protected upload paths for non-native files
...
Fixes CODEOCEAN-E0
2022-10-06 00:11:27 +02:00
61e3cfcac5
Handle deleted files in CodeOcean::FilesController
...
Fixes CODEOCEAN-E2
2022-10-06 00:10:52 +02:00
97ee38082c
Handle deleted exercise in FilePolicy
...
Fixes CODEOCEAN-DZ
2022-10-06 00:10:25 +02:00
f7515362a1
Set Content-Type to fixed value for all download actions
2022-10-05 21:46:17 +02:00
42688ed1c9
Prefer authentication token for session if present
2022-10-05 21:34:19 +02:00
4f5f71840a
Change order of tests to execute linter checks first
2022-10-05 19:38:38 +02:00
2d95a737f6
Assume failed code execution if no status was received
2022-10-04 16:08:10 +02:00
42a7bf9983
Remove outdated enums for testrun_message
...
These enums are not present in the database.
2022-10-04 16:07:00 +02:00
b8b7cd99bd
SubmissionsController: Allow JS to be "rendered"
...
We skip verifying the authenticity token for the action, to prevent raising a `ActionController::InvalidCrossOriginRequest` exception.
2022-10-04 16:06:59 +02:00
ca13ea03c8
SubmissionsController: Send Content-Length if possible
2022-10-04 16:06:59 +02:00
c3daa51c8c
SubmissionsController: Remove outdated ActionController::Live
mixin
...
The mixin was previously used for Server-Sent-Events, which were removed from CodeOcean a long time ago.
After the mixin is removed, we can also fix the cookie send mechanism (this was erroneous with the mixin).
2022-10-04 16:06:58 +02:00
f53c6cb3ee
Shell: Add toggle to execute command as root
2022-10-04 16:06:58 +02:00
f22e3b56f1
AuthenticatedUrlHelper: Rescue URI::InvalidURIError
...
This error should usually nto happen, but we catch it just to be safe.
2022-10-04 16:06:28 +02:00
53db7e80d0
AuthenticatedUrlHelper: Fix extraction of parameters
...
* Previously, all parameters were removed
2022-10-04 16:06:28 +02:00
3263d4f838
Respect subpath for (render_)protected_upload_path
2022-09-28 11:06:15 +02:00
0b374491ac
Link to protected_upload_path in file render
2022-09-28 11:06:15 +02:00
d6cd06550d
add default values to meta_data
...
fix specs
2022-09-26 20:46:40 +02:00
4b00eb1e8c
Allow internal users to switch their current study group
2022-09-26 16:30:54 +02:00
f73917313d
Add reminder about path validation for protected download and render
2022-09-25 01:12:48 +02:00