After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 782016 - Add "reported OS" option NetworkManager openconnect cli+ui
Add "reported OS" option NetworkManager openconnect cli+ui
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: VPN: openconnect
git master
Other Linux
: Normal enhancement
: ---
Assigned To: David Woodhouse
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-05-01 16:41 UTC by Dmitry
Modified: 2017-07-07 09:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for master branch (10.28 KB, text/plain)
2017-05-01 16:41 UTC, Dmitry
  Details
patch for 1.2.4 release (current stable in Arch Linux) (10.39 KB, patch)
2017-05-01 16:47 UTC, Dmitry
none Details | Review
patch for master branch (10.28 KB, patch)
2017-05-01 16:48 UTC, Dmitry
none Details | Review
Add tooltip with suggestions for accepted reported OS values (1.21 KB, patch)
2017-07-06 20:21 UTC, Luca Boccassi
none Details | Review

Description Dmitry 2017-05-01 16:41:45 UTC
Created attachment 350808 [details]
patch for master branch

The attached patch implements (by analogy to other options) the "Reported OS" option in the UI. This option is sometimes necessary to be able to connect to VPN from Linux systems. It is the same as using "--os=" with openconnect CLI.
Comment 1 Dmitry 2017-05-01 16:47:55 UTC
Created attachment 350809 [details] [review]
patch for 1.2.4 release (current stable in Arch Linux)
Comment 2 Dmitry 2017-05-01 16:48:49 UTC
Created attachment 350810 [details] [review]
patch for master branch
Comment 3 Dmitry 2017-05-02 18:18:53 UTC
The patch for 1.2.4 is tested and works for me on Arch Linux. Dear mainteiners, please discuss / verify / merge.
Comment 4 Dmitry 2017-05-09 14:16:31 UTC
Anyone alive in NetworkManager maintainers team?
Comment 5 Thomas Haller 2017-05-22 15:39:33 UTC
lgtm.


On a minor note: a patch created with `git format-patch` contains already the proper author and commit message.
What exact spelling for author would you prefer? (possibly in common "Firstname Lastname <email@host.tld>" form).
Comment 6 Beniamino Galvani 2017-05-22 15:51:47 UTC
Looks good to me too.
Comment 7 Dmitry 2017-05-22 17:18:43 UTC
@Thomas Haller

Understood, will try using that command further on, thank you.

Dmitrii Sutiagin <f3flight@gmail.com>
Comment 8 Dmitry 2017-06-27 22:48:29 UTC
Any plans to merge?
Comment 9 Thomas Haller 2017-06-28 08:15:42 UTC
(In reply to Dmitry from comment #8)
> Any plans to merge?

Yes. The patch was forgotten. Thanks for pinging.


merged now to master:
https://git.gnome.org/browse/network-manager-openconnect/commit/?id=9fbe2817da437f473cf46205e19c38d273adc600


Thanks!!
Comment 10 Piotr Drąg 2017-06-28 12:54:38 UTC
+ <property name="text" translatable="yes"/>

This doesn’t look correct. What is translatable here?
Comment 11 Thomas Haller 2017-06-28 13:09:21 UTC
(In reply to Piotr Drąg from comment #10)
> + <property name="text" translatable="yes"/>
> 
> This doesn’t look correct. What is translatable here?

I don't know (not familiar with GTK).

But this comment applies to other places as well ( https://git.gnome.org/browse/network-manager-openconnect/tree/properties/nm-openconnect-dialog.ui?id=9fbe2817da437f473cf46205e19c38d273adc600 )
Comment 12 Piotr Drąg 2017-06-28 13:21:56 UTC
Filed bug #784286.
Comment 13 Luca Boccassi 2017-07-06 20:21:58 UTC
Created attachment 355047 [details] [review]
Add tooltip with suggestions for accepted reported OS values

Hi, thanks for this patch, tested on Debian 9 and it works great.

OpenConnect does strict validation on the --os option, so this small patch adds a tooltip with the currently accepted values as suggestion, to help the users. Otherwise it's easy to enter an invalid string and have the connection fail.
Comment 14 Thomas Haller 2017-07-07 09:20:38 UTC
(In reply to Luca Boccassi from comment #13)
> Created attachment 355047 [details] [review] [review]
> Add tooltip with suggestions for accepted reported OS values

thanks!! Merged:

https://git.gnome.org/browse/network-manager-openconnect/commit/?id=d8242da3420812b13455cfdb62d2734dece632d4