From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#29575: 25.3; Secret Service API treats labels as unique Date: Tue, 15 May 2018 14:56:22 +0200 Message-ID: <87bmdh3wnd.fsf@gmx.de> References: <87374hct91.fsf@gmx.de> <87lgi87387.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1526388918 32055 195.159.176.226 (15 May 2018 12:55:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 15 May 2018 12:55:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 29575@debbugs.gnu.org To: Allen Li Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 15 14:55:14 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fIZTz-0008B3-NE for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 May 2018 14:55:11 +0200 Original-Received: from localhost ([::1]:36783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIZW6-0002wI-KR for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 May 2018 08:57:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIZVq-0002rq-5w for bug-gnu-emacs@gnu.org; Tue, 15 May 2018 08:57:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIZVm-0003xP-D2 for bug-gnu-emacs@gnu.org; Tue, 15 May 2018 08:57:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55524) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIZVm-0003xH-7I for bug-gnu-emacs@gnu.org; Tue, 15 May 2018 08:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fIZVl-0000wi-TB for bug-gnu-emacs@gnu.org; Tue, 15 May 2018 08:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 May 2018 12:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29575 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29575-submit@debbugs.gnu.org id=B29575.15263889933593 (code B ref 29575); Tue, 15 May 2018 12:57:01 +0000 Original-Received: (at 29575) by debbugs.gnu.org; 15 May 2018 12:56:33 +0000 Original-Received: from localhost ([127.0.0.1]:35188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fIZVJ-0000vs-IQ for submit@debbugs.gnu.org; Tue, 15 May 2018 08:56:33 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:35569) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fIZVG-0000vc-3C for 29575@debbugs.gnu.org; Tue, 15 May 2018 08:56:31 -0400 Original-Received: from detlef.gmx.de ([212.86.40.50]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Mh9cj-1ewlM73k6z-00MOmf; Tue, 15 May 2018 14:56:23 +0200 In-Reply-To: <87lgi87387.fsf@gmx.de> (Michael Albinus's message of "Tue, 12 Dec 2017 09:35:52 +0100") X-Provags-ID: V03:K1:8Kdq6M/pheiZBDKtkv3gazR34dsE6i9BtrvrIY/+hEAcYvFDQd+ +XMQR5d8zvRVO5KUu1WXJryQ62zloQxhl0ObiBKmEGBGJTZcQp/YfL4TQPQnR2nPI2duPgF yXfb8Ctk9x4SV5aOrQsRcg/EgRUV0AjXnADBSAO1gTbNHk3+TpeZTphdt1gqnQ3/WrW0rF7 D61TqTgjI0F3qDOc2z4RA== X-UI-Out-Filterresults: notjunk:1;V01:K0:ievq7nZRPoQ=:YuR4n6Fk1Bl4gbP6ia9Q4n Vr9I0kMCjGtjU+do4legYYUy2l0f/N8JWSp7Q2zktnTSFJyUEMgAN2YUg7ZwCgBgoXriWpN5J LYRILvnFtIw3vO+x0u8IZmhZcc0wpZPDskCfw3dCqsA8nDjldJeeI2wLRxHBz+aS+odXx7k23 hV/kRQZVRn/711FfhHNs2xBRZzl+bvKUEOcjr3Ho/VbWhcZIDcTyKwI5w9djxyUOfq31b19Xy FERPQrp7ajcyDzGlDAQcez6N7qmTQ+khEC7IZ2Kv3LABmT2yaF+eoZ7x2VGRkRZ2E9932Usmb mlMTtUFxJpR7J+XanRR2M52Ck07iZYvYOV0ATYsaLJWaJFtvoXhuTcRvWSBUUBakaovqa9s1p 1m2v5DQPnJwYWRPP9+mgubbRx8tZLJNSGLvKQwORodONgJdWdPg0IRKjri5lAuPhIBdBzJv2s FrHci55cVc4ajrWh0ZrhEp1PBaElPsFGfDOHmzVeFttY4OLpmYz0LrwAXvCUtRVghdfulg8ye gIKNkQp0fajER4zgDBtAKInCZOGzZmQJQsr5kNFAETTOWEWqNC/bqpA+qVK/q5KJ/IHAY4mQq 3lASIa7+XdDDWK/YeK5JwtXNBrvbEX7kfAhiWn32vL6FisEr708RQJtFv0/g3S/Xk36NXGTmZ ChZiMqrR6HraNEv7GXocZPaRO0+lXA3eFRSL9al0Azz2spn2JOF8ZbtWVbj4itkqRSg1GoYyb /3u2G0gF7HkmTrGhMsP7NAZ7UfC4QERThcXkFfylR01k4daj0WoFcTHHDRU+fAREl5bq2FTc X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:146190 Archived-At: Michael Albinus writes: Hi Allen, >>> Well, inside the org.freedesktop.Secret.{Service,Collection,Item} >>> interfaces, an item is identified by an object path. We could extend our >>> interface to allow both label and object path as item, and to throw away >>> the "unique label rule" inside collections. >> >> That sounds like a better starting idea. One problem that comes to >> mind is that the object path could be a valid label value, I think. > > That's possible, yes. But I doubt it will happen in reality. At least in > Emacs we could check, that a label doesn't look like an object path, and > suppress such items for being considered. Finally, I found the time to implement this. `secrets-create-item' does allow labels now which exist already in a collection. `secrets-item-path', `secrets-get-secret', `secrets-get-attributes', 'secrets-get-attribute' and `secrets-delete-item' allow also object paths as argument. Pushed to the master branch. Could you pls check whether this fits your needs? Best regards, Michael.