Bug: Overwrites incorrect file - Mailing list pgadmin-support

From David Jarvis
Subject Bug: Overwrites incorrect file
Date
Msg-id AANLkTilEgdKBsq0kXxfTDPZ5jNWHZvNMo3yXOkOc2yTK@mail.gmail.com
Whole thread Raw
Responses Re: Bug: Overwrites incorrect file
List pgadmin-support
Configuration
pgAdmin3
./configure --prefix=/usr/local
$ uname -a
Linux jaguar 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 19:31:57 UTC 2010 x86_64 GNU/Linux

$ psql --version
psql (PostgreSQL) 8.4.4

Reproduce the Problem
  1. Create an empty directory; put some empty files inside.
  2. Make some empty directories in the formerly empty directory.
  3. In the following steps, make sure you use that empty directory created in step 1 or you might lose work.
  4. Click the "Execute arbitrary queries" button
  5. Type in some text
  6. Type: Alt-f
  7. Type: a
  8. Type: Alt-n
  9. Type: joe.sql
  10. Type: Alt-s
  11. Repeat steps 2 - 7, but for step 6 use joe2.sql
  12. Type: Alt-f
  13. Type: a
  14. Click joe2.sql
  15. Click Save
Expected Results
The file joe2.sql should contain some text.

Actual Results
At this point one of two things will happen:
  • another file in the same directory as joe2.sql will be overwritten
  • pgadmin3 will crash:
**
Gtk:ERROR:/build/buildd/gtk+2.0-2.20.1/gtk/gtkfilechooserdefault.c:8125:get_display_name_from_file_list: assertion failed: (had_selection)
Aborted

Addendum
Crashing is good. Overwriting other files is... bad.

This might not be a pgAdmin error. If it is not, please let me know where I should direct the problem, as it is quite severe.

Dave

pgadmin-support by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Re: PostgreSQL exception 0xC0000005
Next
From: David Jarvis
Date:
Subject: Re: Bug: Overwrites incorrect file