You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@guacamole.apache.org by "sivagudivadaz (via GitHub)" <gi...@apache.org> on 2026/04/29 20:00:42 UTC
[PR] GUACAMOLE-2223: [guacamole-server]
sivagudivadaz opened a new pull request, #666:
URL: https://github.com/apache/guacamole-server/pull/666
JIRA: https://issues.apache.org/jira/browse/GUACAMOLE-2223
Naming convention for recording files may not always be unique leading to suffix exhaustion or file creation could fail due to various reasons. This pr adds a new `require-recording` flag to enforce recording file creation when a connection attempt is made.
Current behavior:
Connection is allowed even if it can't be recorded due to recording file creation failure.
Expected behavior:
When the session can't be recorded, reject the attempt for compliance.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GUACAMOLE-2223: Add require-recording flag [guacamole-server]
Posted by "sivagudivadaz (via GitHub)" <gi...@apache.org>.
sivagudivadaz commented on code in PR #666:
URL: https://github.com/apache/guacamole-server/pull/666#discussion_r3321368015
##########
src/protocols/ssh/settings.h:
##########
@@ -278,6 +278,13 @@ typedef struct guac_ssh_settings {
*/
bool recording_write_existing;
+ /**
+ * Non-zero if the connection should be closed when a recording cannot be
+ * created. Zero by default, meaning the connection will proceed even if
+ * recording fails.
+ */
+ bool require_recording;
Review Comment:
My bad, was primarily testing rdp protocol when I first made the changes.
Updated this & the comments to reflect it's a bool flag
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GUACAMOLE-2223: Add require-recording flag [guacamole-server]
Posted by "necouchman (via GitHub)" <gi...@apache.org>.
necouchman commented on code in PR #666:
URL: https://github.com/apache/guacamole-server/pull/666#discussion_r3174696446
##########
src/protocols/ssh/settings.h:
##########
@@ -278,6 +278,13 @@ typedef struct guac_ssh_settings {
*/
bool recording_write_existing;
+ /**
+ * Non-zero if the connection should be closed when a recording cannot be
+ * created. Zero by default, meaning the connection will proceed even if
+ * recording fails.
+ */
+ bool require_recording;
Review Comment:
You use "zero" but are using a `bool` here (instead of `int` as in the RDP code). It should probably be both consistent and the language in the comments should match the type used.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GUACAMOLE-2223: Add require-recording flag [guacamole-server]
Posted by "sivagudivadaz (via GitHub)" <gi...@apache.org>.
sivagudivadaz commented on PR #666:
URL: https://github.com/apache/guacamole-server/pull/666#issuecomment-4373133602
> it might also be good to find a way to disrupt the connection if the recording stops in the middle
yes, will need to add the check in https://github.com/apache/guacamole-server/blob/main/src/libguac/socket-tee.c.
I'm also thinking of adding a new error code on the frontend that reflects the connection disruption is due to recording failure.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org