Project

General

Profile

Bug #25557

Improve error message when factory econfigure fails with a duplicated entry

Added by Marco Mascheroni about 2 months ago. Updated 14 days ago.

Status:
New
Priority:
Normal
Category:
-
Target version:
Start date:
02/25/2021
Due date:
% Done:

0%

Estimated time:
First Occurred:
Occurs In:
Stakeholders:
Duration:

Description

Whenever two entries with the same name are present I get this error:

Key 'Gatekeeper' already exists
                                                           [FAILED]

I could swear we had a better message for this case, but I haven't find the relevant code. Should I just add a new check?

History

#1 Updated by Marco Mascheroni about 2 months ago

I added these three lines in the reconfig_glidein main, but I'd still like to understand if something changed and an old check got broken..

    seen = set()
    dup = [ x.getName() for x in conf.get_entries() if x.getName() in seen or seen.add(x.getName()) ]
    if len(dup) > 0:
        raise RuntimeError("Found one or more duplicated entries in the xml: %s" % ",".join(dup))

#2 Updated by Marco Mascheroni 14 days ago

  • Target version changed from v3_7_3 to v3_7_4

Also available in: Atom PDF