debian/copyright
author julien tayon <julien.tayon@logilab.fr>
Thu, 16 May 2019 14:26:38 +0200
branch3.26
changeset 12618 3f125fdbcd70
parent 11631 faf279e33298
permissions -rw-r--r--
[ldapfeed] FIX: Unique Key violation when synchronizing with LDAPfeed What was happening ================== The bug appears when ldapfeed tries to insert a user while another user exists exists with a different source. Simple use case to reproduce: - create a local user in cubicweb (source=system) - sync with ldap - ldapfeed will stop complaining user already exists. Without next patch the test MUST fail with message: cubicweb/server/sources/native.py:714: UniqueTogetherError The ldapfeed is thus stopped ignoring any further ldap entries. The proposal ============ Prior to this patch, the insertion was trying to create all CWUser with the computed login from eeimporter.extid2eid (method process of DataFeedLDAPAdapter). When a CWUser existed with a different cw_source ("system" for user created with cubicweb for instance), it created a conflict. To avoid collisions, in the extentities_generator method a bypass was added at the insertion layer. Prior to insertion the absence of the computed login is checked on a list of all existing login from a different source. If collision is detected, we skip the ldap record. By short circuiting at the CWUser entity insertion level we also avoid to treat CWGroup and EmailAddress related to this user. Hence ensuring a behaviour that will not break existing instances. (conservative approach: faced with ambiguity better do nothing than guess). An error message is added stating explicitly the conflict.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     1
This package was debianized by Logilab <contact@logilab.fr>.
9537
d6ec12a80e4d [pkg] prepare 3.18.3
Julien Cristau <julien.cristau@logilab.fr>
parents: 9390
diff changeset
     2
It was downloaded from http://download.logilab.org/pub/cubicweb
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     3
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     4
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
     5
Upstream Author:
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     6
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
     7
    Logilab <contact@logilab.fr>
11631
faf279e33298 Merge with pyramid-cubicweb
Yann Voté <yann.vote@logilab.fr>
parents: 9537 11515
diff changeset
     8
    Christophe de Vienne
11515
b3267ba817b4 Initial debian packaging
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff changeset
     9
b3267ba817b4 Initial debian packaging
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff changeset
    10
Copyright:
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    11
9537
d6ec12a80e4d [pkg] prepare 3.18.3
Julien Cristau <julien.cristau@logilab.fr>
parents: 9390
diff changeset
    12
    Copyright (c) 2003-2014 LOGILAB S.A. (Paris, FRANCE).
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
    13
    http://www.logilab.fr/ -- mailto:contact@logilab.fr
11631
faf279e33298 Merge with pyramid-cubicweb
Yann Voté <yann.vote@logilab.fr>
parents: 9537 11515
diff changeset
    14
    Copyright (c) 2014 Unlish
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    15
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
    16
License:
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    17
5421
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    18
    This program is free software; you can redistribute it and/or modify it
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    19
    under the terms of the GNU Lesser General Public License as published by the
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    20
    Free Software Foundation; either version 2.1 of the License, or (at your
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    21
    option) any later version.
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    22
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
    23
    This program is distributed in the hope that it will be useful, but WITHOUT
5421
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    24
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    25
    FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    26
    for more details.
11515
b3267ba817b4 Initial debian packaging
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff changeset
    27
5421
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    28
    You should have received a copy of the GNU Lessser General Public License
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    29
    along with this program; if not, write to the Free Software Foundation,
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    30
    Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    31
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    32
On Debian systems, the complete text of the GNU Lesser General Public License
5421
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    33
may be found in '/usr/share/common-licenses/LGPL-2.1'.
9343
cf21813d7003 [css] add the entypo font as available ressource (closes #2930356)
David Douard <david.douard@logilab.fr>
parents: 7046
diff changeset
    34
cf21813d7003 [css] add the entypo font as available ressource (closes #2930356)
David Douard <david.douard@logilab.fr>
parents: 7046
diff changeset
    35
Entypo pictograms:
cf21813d7003 [css] add the entypo font as available ressource (closes #2930356)
David Douard <david.douard@logilab.fr>
parents: 7046
diff changeset
    36
cf21813d7003 [css] add the entypo font as available ressource (closes #2930356)
David Douard <david.douard@logilab.fr>
parents: 7046
diff changeset
    37
Author:
cf21813d7003 [css] add the entypo font as available ressource (closes #2930356)
David Douard <david.douard@logilab.fr>
parents: 7046
diff changeset
    38
cf21813d7003 [css] add the entypo font as available ressource (closes #2930356)
David Douard <david.douard@logilab.fr>
parents: 7046
diff changeset
    39
    Daniel Bruce <info@entypo.com> (www.entypo.com)
cf21813d7003 [css] add the entypo font as available ressource (closes #2930356)
David Douard <david.douard@logilab.fr>
parents: 7046
diff changeset
    40
cf21813d7003 [css] add the entypo font as available ressource (closes #2930356)
David Douard <david.douard@logilab.fr>
parents: 7046
diff changeset
    41
Licence:
cf21813d7003 [css] add the entypo font as available ressource (closes #2930356)
David Douard <david.douard@logilab.fr>
parents: 7046
diff changeset
    42
cf21813d7003 [css] add the entypo font as available ressource (closes #2930356)
David Douard <david.douard@logilab.fr>
parents: 7046
diff changeset
    43
    Entypo pictograms are licensed under CC BY-SA 3.0 and the font
cf21813d7003 [css] add the entypo font as available ressource (closes #2930356)
David Douard <david.douard@logilab.fr>
parents: 7046
diff changeset
    44
    under SIL Open Font License.
cf21813d7003 [css] add the entypo font as available ressource (closes #2930356)
David Douard <david.douard@logilab.fr>
parents: 7046
diff changeset
    45
9390
41795de3d48a [doc] update 3.18 release notes
Julien Cristau <julien.cristau@logilab.fr>
parents: 9343
diff changeset
    46
    The rights to each pictogram in the social extension are either
9343
cf21813d7003 [css] add the entypo font as available ressource (closes #2930356)
David Douard <david.douard@logilab.fr>
parents: 7046
diff changeset
    47
    trademarked or copyrighted by the respective company.