Skip to content
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

Adjust user agent for recording server to not match with desktop client #9940

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

danxuliu
Copy link
Member

@danxuliu danxuliu commented Jul 10, 2023

Follow up to #9632

The recording server uses used Mozilla/5.0 (Recording) Nextcloud-Talk vXXX as its user agent, which wrongly matched with the regular expression for the desktop client.

Moreover, as the recording server version is lower than the minimum allowed desktop client version the recording server requests were blocked by the Nextcloud server.

The regular expression provided by the Nextcloud server would need to be updated as well; it is used in the inital check, although the final check that throws the exception if needed uses the local regular expression, but as far as I understand in the future the regular expression from the server will be used also there.

Alternatively, rather than modifying the regular expressions the user agent from the recording server could be changed to something that does not match the desktop client (for example, Mozilla/5.0 Nextcloud-Talk-Recording vXXX).

Due to all that the user agent of the recording server is now set to Nextcloud-Talk-Recording/XXX, similar to what is used by other libraries and net tools, like curl.

@nickvergessen
Copy link
Member

Alternatively, rather than modifying the regular expressions the user agent from the recording server could be changed to something that does not match the desktop client (for example, Mozilla/5.0 Nextcloud-Talk-Recording vXXX).

I guess that would be better

The recording server used "Mozilla/5.0 (Recording) Nextcloud-Talk vXXX"
as its user agent, which wrongly matched with the regular expression for
the desktop client.

Moreover, as the recording server version is lower than the minimum
allowed desktop client version the recording server requests were
blocked by the Nextcloud server.

Due to all that the user agent of the recording server is now set to
"Nextcloud-Talk-Recording/XXX", similar to what is used by other
libraries and net tools, like curl.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu force-pushed the exclude-recording-server-from-blocked-clients branch from bd21555 to 9600778 Compare July 11, 2023 00:07
@danxuliu danxuliu changed the title Exclude recording server from blocked clients Adjust user agent for recording server to not match with desktop client Jul 11, 2023
@danxuliu
Copy link
Member Author

Alternatively, rather than modifying the regular expressions the user agent from the recording server could be changed to something that does not match the desktop client (for example, Mozilla/5.0 Nextcloud-Talk-Recording vXXX).

I guess that would be better

Done.

@nickvergessen nickvergessen merged commit a186374 into master Jul 11, 2023
17 checks passed
@nickvergessen nickvergessen deleted the exclude-recording-server-from-blocked-clients branch July 11, 2023 05:03
@SystemKeeper
Copy link
Contributor

@nickvergessen: Would it be okay to backport that to stable27 so we can use the container from all-in-one with master? See nextcloud/all-in-one#2880 (review)

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

Successfully merging this pull request may close these issues.

3 participants