Commit Graph

9928 Commits

Author SHA1 Message Date
Davide Beatrici
28e97073cb
Merge PR #5638: MAINT(vcpkg): Install Qt's MySQL and PostgreSQL plugins 2022-04-28 08:10:04 +02:00
Davide Beatrici
f999081ab8 MAINT(vcpkg): Install Qt's MySQL and PostgreSQL plugins
Otherwise the backends are not available.
2022-04-28 00:36:56 +02:00
Robert Adam
83138e8646
MAINT: Delete Transifex config
Since we are no longer using Transifex, we don't have
to keep this config around anymore.
2022-04-27 09:17:34 +02:00
Robert Adam
e6e137a151
Merge PR #5637: BUILD(client): Fix warning about unused variable
When building on a Mac -Doverlay=OFF, the compiler would produce a
warning about an unused variable in the macOS shortcut implementation.

This commit silences the warning, by explicitly marking the variable in
question as unused.

Fixes #5636
2022-04-26 14:01:59 +02:00
Robert Adam
33ccf4177a BUILD(client): Fix warning about unused variable
When building on a Mac -Doverlay=OFF, the compiler would produce a
warning about an unused variable in the macOS shortcut implementation.

This commit silences the warning, by explicitly marking the variable in
question as unused.

Fixes #5636
2022-04-26 12:07:55 +02:00
Robert Adam
052ce3144f
Merge PR #5635: BUILD(server): allow users to specify the UID/GID for the murmur user 2022-04-25 07:46:52 +02:00
Paulo Erichsen
adbdf14ba6 BUILD(server): allow users to specify the UID/GID for the murmur user
the the docker image that is built by default uses murmur user to run
the server. When users use bind mount volumes, the host system is
expected to match the permissions (UID/GID) of the created murmur user
or else they will get permission errors

this change allows users who build the docker image to specify which
user id and group id to be used in the docker image

Closes #5634
2022-04-24 15:47:31 -06:00
Robert Adam
aae451aae2
Merge PR #5628: FIX(server): Crash due to dereferencing invalid iterator
1d45d99 refactored the audio processing
on the server and introduced the new AudioReceiverBuffer class. In the
function that is responsible for obtaining the current range of
receivers that shall obtain the identical audio packet, the passed begin
iterator was always dereferenced. However, in the case in which the
receiver list is actually empty begin == end and therefore dereferencing
the begin iterator is undefined behavior.

This could lead to the entire server crashing (or could work just fine -
UB is great at this) but in any case, this is a severe problem.

The fix consists of a simple check for this specific situation and an
early return in that case.
2022-04-19 16:46:46 +02:00
Robert Adam
06f94b4736 FIX(server): Crash due to dereferencing invalid iterator
1d45d991aa refactored the audio processing
on the server and introduced the new AudioReceiverBuffer class. In the
function that is responsible for obtaining the current range of
receivers that shall obtain the identical audio packet, the passed begin
iterator was always dereferenced. However, in the case in which the
receiver list is actually empty begin == end and therefore dereferencing
the begin iterator is undefined behavior.

This could lead to the entire server crashing (or could work just fine -
UB is great at this) but in any case, this is a severe problem.

The fix consists of a simple check for this specific situation and an
early return in that case.

Co-Authored-By: Irak Rigia <tarakrigia@gmail.com>
2022-04-18 12:18:37 +02:00
Davide Beatrici
cdffda8f52
Merge PR #5625: MAINT(build): Modify helper folder and scripts to use custom zeroc-ice port 2022-04-16 19:59:00 +02:00
Nik Reist
4a533fa64e MAINT(build): Modify helper folder and scripts to use custom zeroc-ice port 2022-04-15 08:29:24 -04:00
Robert Adam
1d965885b8
Merge PR #5623: BUILD(server): Fix TERM signal not forwarded in docker container 2022-04-14 08:11:16 +02:00
root
feb76a9b1d BUILD(server): Fix TERM signal not forwarded in docker container
By using the list form, no shell is spawned and the TERM signal is forwarded to the mumble-server process
2022-04-13 16:31:32 +02:00
Robert Adam
0c2e398f39
Merge PR #5604: BUILD(client,server): Fix warning for always true assert 2022-04-10 09:37:47 +02:00
ProjectPatatoe
06d43af6f4 BUILD(client,server): Fix warning for always true assert
Received compiler warning of an assert that is always true.
The assert checked if variable is negative but it is an unsigned variable.
Just check if positive.
2022-04-10 08:57:08 +02:00
Robert Adam
76aab90a9b
Merge PR #5620: CHANGE(client): Make https default link protocol
Having plain http as the default means that a site, even though able to support https, will be able to fall back to using the insecure and outdated protocol.

Furthermore, major browsers already support https by default, falling back to legacy http in the cases where a website does not support https connections, e.g. Chromium, Firefox.

Therefore, this commit makes it so that a link without a protocol specification will have https:// prefixed to be clickable instead of http://.
2022-04-09 21:08:57 +02:00
Robert Adam
0e321ebc15
Merge PR #5619: FIX(client): resolve list tags, etc. polluting log
As reported in #4491, #4986 and #5430, since the changes to the chat in
the 1.4.x release, some tags would "pollute" the rest of the log, i.e.
cause future log entries to be contained within them.

The source of the issue seems to be that the insertBlock method of
QTextCursor appears to correspond to the <p> HTML tag. The <p> tag
may only contain inline elements, but QTextEdit will not fail outright
when inserting block-level elements and will instead attempt to correct
the invalid input which results in the behaviour reported in the above
issues (as far as I can tell).

The proposed solution is to use the insertFrame method for all
messages.

Fixes #4491
2022-04-09 19:10:54 +02:00
mataha
abbf37435e
CHANGE(client): Make https default link protocol
Having plain http as the default means that a site, even though able to support
https, will be able to fall back to using the insecure and outdated protocol.

Furthermore, major browsers already support https by default, falling back to
legacy http in the cases where a website does not support https connections,
e.g. [Chromium](https://blog.chromium.org/2021/03/a-safer-default-for-navigation-https.html),
[Firefox](https://blog.mozilla.org/security/2021/08/10/firefox-91-introduces-https-by-default-in-private-browsing/).

Therefore, this commit makes it so that a link without a protocol specification
will have `https://` prefixed to be clickable instead of `http://`.

Signed-off-by: mataha <mataha@users.noreply.github.com>
2022-04-09 18:22:39 +02:00
Dexter Gaon-Shatford
ae097d6354 FIX(client): resolve list tags, etc. polluting log
As reported in #4491, #4986 and #5430, since the changes to the chat in
the 1.4.x release, some tags would "pollute" the rest of the log, i.e.
cause future log entries to be contained within them.

The source of the issue seems to be that the `insertBlock` method of
`QTextCursor` appears to correspond to the `<p>` HTML tag. The `<p>` tag
may only contain inline elements, but `QTextEdit` will not fail outright
when inserting block-level elements and will instead attempt to correct
the invalid input which results in the behaviour reported in the above
issues (as far as I can tell).

My proposed solution is to use the `insertFrame` method for all
messages.

Fixes #4491
2022-04-08 15:31:42 -04:00
Robert Adam
73d8a4d5db
Merge PR #5616: BUILD(cmake): Find and link Poco::XML
Without this, building against the latest poco snapshot results in errors like:

/usr/bin/ld: /builddir/build/BUILD/mumble-1.4.230.src/src/mumble/PluginManifest.cpp:72: undefined reference to `typeinfo for Poco::XML::Element'
2022-04-07 07:56:14 +02:00
Carl George
fefdd79ebc BUILD(cmake): Find and link Poco::XML
Without this, building against the latest poco snapshot results in
errors like:

/usr/bin/ld: /builddir/build/BUILD/mumble-1.4.230.src/src/mumble/PluginManifest.cpp:72: undefined reference to `typeinfo for Poco::XML::Element'
2022-04-06 13:40:35 -05:00
Robert Adam
aa62d87fea
Merge PR #5615: IC: Fix installation of dependencies 2022-04-04 15:05:00 +02:00
Felix Buehler
afc799cc31 FORMAT/CI: add missing space while installing dependencies 2022-04-04 11:55:21 +02:00
Felix Buehler
2c19603288 CI: incorrect naming of libgl dependency 2022-04-04 11:55:17 +02:00
Felix Buehler
7a4484a117 CI: installation of dependencies 2022-04-04 11:55:10 +02:00
Robert Adam
7a6cbc8046
Merge PR #5612: FIX(positional-audio): Update Among Us plugin to work with v2022.3.29s (1864) 2022-04-01 11:07:08 +02:00
Davide Beatrici
cf38096242 FIX(positional-audio): Update Among Us plugin to work with v2022.3.29s (1864)
https://store.steampowered.com/news/app/945360/view/3121564363609006624
2022-04-01 07:21:37 +02:00
Robert Adam
a326494098
Merge PR #5610: CI(azure): Pin to VS2022
The automatic upgrade from VS2019 to VS2022 broke our build and in order
to prevent that in the future, we now pin the used VS version to 2022.
Later upgrades will have to be performed explicitly.
2022-03-31 18:21:32 +02:00
Robert Adam
4582868dca CI(azure): Pin to VS2022
The automatic upgrade from VS2019 to VS2022 broke our build and in order
to prevent that in the future, we now pin the used VS version to 2022.
Later upgrades will have to be performed explicitly.
2022-03-31 17:43:37 +02:00
Robert Adam
ce36c4a060
Merge PR #5589: TRANSLATION(client): Corrected spacing for line-shift and wrap 2022-03-31 16:00:30 +02:00
Robert Adam
74faaba32e
Merge PR #5594: CHANGE: Use Protobuf for UDP messages
Previously Mumble was using a custom binary format for transmitting data
via UDP (mainly audio). This has worked for a long time but besides
being inconvenient for 3rdParty implementors (they had to manually
re-implement encoding and decoding support for this format) this format
was not very flexible and changes to the data format were very hard.

In order to improve on this situation, this commit introduces changes
that allow to use Protobuf for the UDP messages as well (it's already
used for TCP). With that it should be relatively easy to extend/change
the UDP packet formats in the future and 3rdParty implementors can now
simply use Protobuf to handle decoding/encoding packets for them (much
less work and much less prone to errors).

Since the new Protobuf format is incompatible with the old UDP format,
this commit also includes support for dealing with older clients or
servers that don't recognize the new protocol yet. That way the new
protocol format is only used if both the client and the server are
recent enough to have it implemented (assumed to be the case >=1.5.0).

Note also that the server will make sure that clients using the old and
the new format can seamlessly communicate with one another.

Therefore, on the surface it should not be noticeable to the user which
protocol is currently used.

Note also that the new protocol format only supports Opus as an audio
codec. If one of the legacy codecs is to be used, the legacy packet
format has to be used as well. However, all codecs except for Opus will
be removed from Mumble in the future anyway.

Fixes #4350

NOTE: When this gets merged, all clients and servers claiming to support the protocol version 1.5.0 that do not include these changes, will become incompatible with the ones that do integrate these changes. This is important for everyone closely following our upstream master branch. A simple update to the latest code changes (including the changes from this PR) should be enough to restore full compatibility.
All servers and clients of version < 1.5.0 will be not affected by this as this PR is completely backwards compatible with those clients.
2022-03-27 18:57:54 +02:00
Robert Adam
928513d689 REFAC: Consistently format constexpr VAR_NAMES 2022-03-27 09:49:59 +02:00
Robert Adam
8500655d12 MAINT: Don't try to format files in build dirs
This speeds up the invocation of runClangFormat.sh dramatically.
2022-03-27 09:49:59 +02:00
Robert Adam
8186d1d310 BUILD: Allow to prefer system GSL-installation over bundled one 2022-03-27 09:49:59 +02:00
Robert Adam
62fa85aef7 MAINT: Update speexdsp submodule
The update includes the changes made to the upstream code since 2016
plus an additional fix for a memory leak encountered in Mumble's usecase
(in the new audio cache implementation introduced with switching Mumble
audio to the Protobuf format).
2022-03-27 09:49:59 +02:00
Robert Adam
c21e16c25c FEAT: Add profiling support for audio processing
This should allow to get detailed insights into the audio processing
performance when using the Tracy profiler.
2022-03-27 09:49:59 +02:00
Robert Adam
7d4dcd168d REFAC(server): Removed dead code msgUDPTunnel
This message type is explicitly handled before calling into the
different msg* implementations. Therefore, msgUDPTunnel could never be
called in the current state of the code base.

However, we can't remove the implementation completely, because of the
macro voodoo that is used to declare and switch over the different
message types (we can't remove the entry from the macro, since in there
we still need it for defining the respective enum entry).
2022-03-27 09:49:59 +02:00
Robert Adam
1017dab5c2 CHANGE(server): Enforce Opus by default
Previously the opusthreshold config option had a default value of 100
meaning that the first non-Opus client would cause everyone to fall back
to one of the legacy codecs.

Since Opus has been implemented for ages now and we eventually want to
get rid of the legacy codecs, this commit changes the default value of
this config option to be zero, meaning that the server will always
enforce the use of the Opus codec (regardless of what clients are
connected).
2022-03-27 09:49:59 +02:00
Robert Adam
1d45d991aa CHANGE: Use Protobuf for UDP messages
Previously Mumble was using a custom binary format for transmitting data
via UDP (mainly audio). This has worked for a long time but besides
being inconvenient for 3rdParty implementors (they had to manually
re-implement encoding and decoding support for this format) this format
was not very flexible and changes to the data format were very hard.

In order to improve on this situation, this commit introduces changes
that allow to use Protobuf for the UDP messages as well (it's already
used for TCP). With that it should be relatively easy to extend/change
the UDP packet formats in the future and 3rdParty implementors can now
simply use Protobuf to handle decoding/encoding packets for them (much
less work and much less prone to errors).

Since the new Protobuf format is incompatible with the old UDP format,
this commit also includes support for dealing with older clients or
servers that don't recognize the new protocol yet. That way the new
protocol format is only used if both the client and the server are
recent enough to have it implemented (assumed to be the case >=1.5.0).

Note also that the server will make sure that clients using the old and
the new format can seamlessly communicate with one another.

Therefore, on the surface it should not be noticeable to the user which
protocol is currently used.

Note also that the new protocol format only supports Opus as an audio
codec. If one of the legacy codecs is to be used, the legacy packet
format has to be used as well. However, all codecs except for Opus will
be removed from Mumble in the future anyway.

Fixes #4350
2022-03-27 09:49:58 +02:00
Robert Adam
677de63f98
Merge PR #5428: MAINT: Add script to sign macOS binaries and packages
ght now we are using osxdist.py to generate a DMG package from scratch.
The script also takes care of signing the content.

However, our mumble-releng repository has had a dedicated script called sign-dmg.py since 2013.
In fact, that's what we have always been using to sign the app bundle.

As we're planning to eventually ditch osxdist.py in favor of CPack's generator, we decided to complete sign-dmg.py.
The script now:

    Takes care of signing all binaries in the bundle in addition to it, effectively replacing osxdist.py.
    Supports single binaries, replacing sign-mach-o.py (which only called codesign() from sign-dmg.py).
    Supports PKG packages.
    Provides a --config option to specify the path to the configuration file. Default: $HOME/.sign_macOS.cfg.
    Provides a --entitlements option to specify the path to the plist file containing the requested capabilities.
    This is mandatory for notarization to succeed. More specifically, the --options runtime codesign parameter is.
    The parameter is not passed if this option is not used because it would cause Mumble to crash upon audio input use.

The name is changed to sign_macOS.py as the script does not only handle DMG packages anymore.
2022-03-26 15:00:16 +01:00
Robert Adam
f97824e8bb TRANSLATION: Update translation files 2022-03-26 14:58:27 +01:00
Allan Nordhøy
7e5c6b5226 TRANSLATION(client): Corrected spacing for line-shift and wrap
Co-Authored-By: Allan Nordhøy <epost@anotheragency.no>
2022-03-26 14:58:10 +01:00
Robert Adam
06b5653099 REFAC: Add constant for unknown versions 2022-03-22 18:28:26 +01:00
Robert Adam
c354134506 REFAC(client): Use std::array 2022-03-22 18:28:26 +01:00
Robert Adam
be41c0b921 CHANGE(client): Display lost packages instead of received ones
In the server browser, the tooltip for the different entries shows the
packet loss. It is displayed as a percentage and as a x/y stat. The
latter currently displays <received>/<sent> which is very confusing,
given that the title for that row is "Packet loss" implying x would
describe the lost packages instead of the received ones.

Thus this commit changes this to the expected behavior. Furthermore it
makes sure that <lost> is always <= <sent>.
2022-03-22 18:28:26 +01:00
Robert Adam
b681d4d033 REFAC(client): Prefer std::min over qmin 2022-03-22 18:28:26 +01:00
Robert Adam
03a4c6706f REFAC: Make raw-version functions constexpr
The manipulation of raw version specifiers was turned into constexpr
functions, in order for them to be usable in constexpr expressions.
2022-03-22 18:28:26 +01:00
Robert Adam
7cba382841 REFAC: Introduce typedef for raw version
Besides the typedef that is meant to be used in code, there is also one
that encodes a type of the exact size (32bit) a raw version is expected
to have.
2022-03-22 18:28:26 +01:00
Robert Adam
3d99436252 MAINT: Add GSL as submodule
The "Guidelines Support Library" (GSL) is a library that implements
functions and types suggested by the C++ Core Guidelines. This should
make it relatively straight forward to follow these guidelines and thus
to write better C++ code.

This explicitly adds the Microsoft GSL as that seems to be the most
popular (and complete) GSL implementation available.
2022-03-22 18:28:26 +01:00
Robert Adam
cbc93ffaed
Merge PR #5392: TRANSLATION: Translations update from Hosted Weblate 2022-03-21 12:39:18 +01:00