Modedit: Upper/lower case in new footprint name can cause overwriting existing file without confirmation.

Bug #1835999 reported by Grzegorz Obuch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Medium
Jeff Young

Bug Description

Saving a new module with a name containing only a different letter case overwrites the old one without confirmation.

Application: ModEdit
Version: (5.1.0-1241-g30ec895c9), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.61.1
    Compiler: GCC 8.2.0 with C++ ABI 1013

Build settings:
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Tags: pcbnew windows
Revision history for this message
Nick Østergaard (nickoe) wrote :

Isn't this how windows works?

Revision history for this message
Grzegorz Obuch (grzegorzobuch) wrote :

For me Kicad in windows should works the same and warn about it like other windows programs...

tags: added: pcbnew windows
Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

This should definitely warn the user that they are about to overwrite an existing footprint file.

Changed in kicad:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 5.1.3
Jeff Young (jeyjey)
Changed in kicad:
assignee: nobody → Jeff Young (jeyjey)
status: Triaged → In Progress
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 20036f810534db50894dc544adc132f181e55aa9
https://git.launchpad.net/kicad/patch/?id=20036f810534db50894dc544adc132f181e55aa9

Changed in kicad:
status: In Progress → Fix Committed
Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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