Connecting to 2 VPN fails

REPRODUCIBILITY (% or how often): Always
BUILD ID: 3.4.0.22
HARDWARE (Jolla1, Tablet, XA2,…): Xperia XA2
UI LANGUAGE: French
REGRESSION: (compared to previous public release: Yes, No, ?): No

DESCRIPTION:

It is not possible to connect to two OpenVPN VPNs at the same time. The interface disables the first VPN when the second is enabled.

PRECONDITIONS:

Having two OpenVPN VPNs

STEPS TO REPRODUCE:

  1. create two openvpn vpns on the phone. Let’s call them “first” and “second”.
  2. Disable the new “default route” option (it won’t make sense to connect to two vpn otherwise) on both vpns
  3. connect first VPN, check that everything is ok
  4. connect second VPN. First vpn is automatically disconnected.

EXPECTED RESULT:

Connection to two vpns at the same time should be possible. Connecting to a second VPN should not disconnect to the first vpn.

ACTUAL RESULT:

Only one VPN connection is available at a time. Connecting to a vpn disconnect the other.

ADDITIONAL INFORMATION:

During the tests, i noticed that the “use as default route” option keeps appearing again after i disable it.

Starting the VPNs via connmanctl correctly connects to both vpns (without setting them as default route). So it may be an issue with this specific setting (it makes sense not to connect to two vpn which sets the default route at a time).