[SRU] packaged version should not check for latest release

Bug #2059246 reported by Rolf Leggewie
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rclone-browser (Debian)
Fix Released
Unknown
rclone-browser (Ubuntu)
Status tracked in Questing
Noble
New
Undecided
Unassigned
Oracular
Fix Committed
Undecided
Unassigned
Plucky
Fix Committed
Undecided
Unassigned
Questing
Fix Released
Undecided
Unassigned

Bug Description

[ Impact ]

Application makes a call out to https://api.github.com/ by default, which at a minimum leaks to a third party that the user is using this program. If a new version is available, user may attempt to install it via a route other than apt. Versions from apt should manage their own updates.

[ Test Plan ]

For each affected $series:

* sudo apt install rclone-browser
* rclone-browser
* Select File / Preferences
* Observe check boxes under "updates notification" are both checked

* Exit application
* sudo apt install $series-proposed rclone-browser
* rclone-browser
* Select File / Preferences
* Observe check boxes under "updates notification" are both unchecked and disabled

* Close the preferences dialog
* Click "Config..." at the bottom of the main window
* Type "n" for new remote
* Given the new remote a name, e.g. "foo"
* Enter "local" for the storage
* Enter "n" to skip editing the advanced config
* Enter "y" to keep the remote
* Enter "q" to quit configuration
* Click "Refresh" at the bottom of the main window
* Select the new "foo" remote
* Click "Open" at the bottom of the main window
* Navigate to your home folder (this remote just accesses the local file-system)
* Select some trivial file (e.g. .bashrc)
* Right click and select "Download"
* Provide a destination folder, e.g. "/home/$USER/Downloads"
* Select "Run" at the bottom of the dialog
* Verify the transfer completed successfully

[ Where Things Could Go Wrong ]

The patch may affect more than intended. To guard against this, the test case includes a basic functionality check covering configuration and a trivial transfer.

[ Original Description ]

There is no need for the packaged version to check upstream for a newer release. The package is managed by the Ubuntu release team.

Revision history for this message
Rolf Leggewie (r0lf) wrote :
Revision history for this message
Lenin (gagarin) wrote :

@r0lf agreed, patches welcome.

Changed in rclone-browser (Ubuntu):
status: New → Confirmed
Revision history for this message
Lenin (gagarin) wrote :
Rolf Leggewie (r0lf)
description: updated
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Thank you. I don't speak C++ but given your guidance, I guess I'd simply drop lines 583 to 597 and be done with it for Ubuntu (obviously not applicable to upstream). Does that sound about right? Given your confirmation, I'd be happy to prepare and propose such a change.

https://github.com/kapitainsky/RcloneBrowser/blob/master/src/main_window.cpp#L583-L597

Revision history for this message
Rolf Leggewie (r0lf) wrote :

I can confirm that this debdiff does the trick for me on noble

Revision history for this message
Rolf Leggewie (r0lf) wrote :
Revision history for this message
Robie Basak (racb) wrote :

I posted this in Matrix yesterday (didn't have my Launchpad login handy):

Thank you for doing this and I completely agree - I’ve sought fixes for similar issues myself. It looks like this will drop the notice but presumably there’s still an issue with a privacy leak while the tool “phones home” that needs removing too?

Also the patch should be sent to Debian but as time is short an Ubuntu delta in the meantime seems appropriate.

Revision history for this message
Robie Basak (racb) wrote :

It looks like the phone home behaviour is configurable, and defaults to "true" in src/preferences_dialog.cpp:

ui.checkRcloneBrowserUpdates->setChecked(
      settings->value("Settings/checkRcloneBrowserUpdates", true).toBool());
ui.checkRcloneUpdates->setChecked(
      settings->value("Settings/checkRcloneUpdates", true).toBool());

I think that:

1) We could change those to false, and that would mean that the behaviour is disabled by default, which is appropriate for distribution packaging.

2) It might be appropriate to disable those settings entirely, since for a distribution package, "checking" for updates makes no sense as it should happen by apt instead, and the user choosing to install a distribution package using apt is deliberately opting in to apt-based package update management.

Does the attached patch work? I wrote it without any testing to demonstrate how I think this would best be fixed. It should: 1) make it impossible to enable this behaviour; 2) always treat the phone home "setting" as "never phone home".

I'm not sure we have enough time to get this into Plucky, unfortunately, but at least it can be properly fixed for the future.

Note: I don't consider this patch ready for upload without actual testing. I don't intend to do that testing myself.

Revision history for this message
Robie Basak (racb) wrote :

Patch updated.

Revision history for this message
Robie Basak (racb) wrote :

I didn't specify that the patch is against Plucky. I agree that this should be SRU'd to Noble, but that needs to come later.

Revision history for this message
Robie Basak (racb) wrote :

I filed a bug against the package in Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1102487

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Thank you Robie, for taking the ball and bringing it further. I agree with what you said and am certainly to help with testing. I am currently travelling but will try to come back to this ticket soon.

Changed in rclone-browser (Debian):
status: Unknown → New
Changed in rclone-browser (Debian):
status: New → Fix Released
Revision history for this message
Zixing Liu (liushuyu-011) wrote :

Unfortunately, this will now require an SRU to proceed since Plucky has been released.

Revision history for this message
Dave Jones (waveform) wrote :

The upstream report has now been accepted and released in Debian. Given we have no delta with Debian, this should sync to Ubuntu fairly soon after which the SRUs can start being sponsored. I'm leaving ubuntu-sponsors subscribed for now as I don't see any other impediment to sponsorship, and as stated I hope the sync should happen relatively quickly.

Revision history for this message
Vladimir Petko (vpa1977) wrote :

The package has synced:

rclone-browser (1.8.0-6) unstable; urgency=medium

  * Team upload (package under salsa debian namespace)
  * Fix privacy leak (Closes: #1102487)

 -- Eduardo Trápani <email address hidden> Fri, 25 Apr 2025 17:47:06 -0300

Revision history for this message
Dave Jones (waveform) wrote :

Okay, this appears fixed in questing; marking accordingly. Will review the uploads for SRU next.

Changed in rclone-browser (Ubuntu Questing):
status: Confirmed → Fix Released
Revision history for this message
Dave Jones (waveform) wrote :

I'm tempted to go with Robie's solution here rather than the uploads prepared earlier as it's a bit less invasive. However, I do want to test the fix works first. Will do a quick build locally and prep the uploads if it works...

Revision history for this message
Dave Jones (waveform) wrote :

Robie's fix seems to work nicely -- applying SRU template and sponsoring for noble, oracular, and plucky

summary: - packaged version should not check for latest release
+ [SRU] packaged version should not check for latest release
Dave Jones (waveform)
description: updated
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Rolf, or anyone else affected,

Accepted rclone-browser into plucky-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/rclone-browser/1.8.0-5ubuntu0.25.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-plucky to verification-done-plucky. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-plucky. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in rclone-browser (Ubuntu Plucky):
status: New → Fix Committed
tags: added: verification-needed verification-needed-plucky
Changed in rclone-browser (Ubuntu Oracular):
status: New → Fix Committed
tags: added: verification-needed-oracular
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Rolf, or anyone else affected,

Accepted rclone-browser into oracular-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/rclone-browser/1.8.0-5ubuntu0.24.10.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-oracular to verification-done-oracular. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-oracular. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.