The cause of this is the Polkit failure is reported back via snapd as a
general unauthorized failure. GNOME Software then attempts to do a snap
login which is the old method of gaining authorization.

There seem to be two solutions to this:

1. snapd should report the auth failure with an error code so that GNOME
Software can tell this is a Polkit failure and not a login credentials
failure. James said this change was unlikely to be done in time for
artful.

2. GNOME Software could stop attempting to login on an auth failure.
This would mean that the Ubuntu One dialog is never shown for snaps,
which is probably appropriate as Polkit covers this case. It means we
can't see private snaps from GNOME Software (since we never prompt for
login), but this was always going to be the case after we switched to
Polkit. To handle private snaps we will have to rethink the UI to
support optional login support.

I think the most appropriate solution is 2 with a versioned dependency
on snapd. We probably can't do this until snapd lands in the archive?

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-software in Ubuntu.
https://bugs.launchpad.net/bugs/1721735

Title:
  UbuntuOne auth dialog is displayed when polkit auth dialog is
  dismissed

Status in gnome-software package in Ubuntu:
  Triaged
Status in gnome-software source package in Artful:
  Triaged

Bug description:
  With snapd 16-2.28.1 from the candidate channel

  Test Case
  1. With gnome-software, install a snap
  2. When the polkit auth dialog is displayed, click "Cancel"

  Actual result 
  The Ubuntu One authentication dialog is displayed

  Expected result
  The polkit authentication dialog is dismissed and the user returns to the 
main screen of gnome-software. The U1 dialog is not displayed

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: gnome-software 3.26.0-0ubuntu3
  ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
  Uname: Linux 4.13.0-12-generic x86_64
  ApportVersion: 2.20.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Oct  6 12:05:54 2017
  InstallationDate: Installed on 2013-09-03 (1493 days ago)
  InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130902)
  InstalledPlugins:
   gnome-software-plugin-flatpak N/A
   gnome-software-plugin-limba   N/A
   gnome-software-plugin-snap    3.26.0-0ubuntu3
  ProcEnviron:
   TERM=screen-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=fr_FR.UTF-8
   SHELL=/bin/bash
  SourcePackage: gnome-software
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1721735/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to