Bug 2131967

Summary: [abrt] policycoreutils-devel: export_config(): gui.py:2669:export_config:IsADirectoryError: [Errno 21] Is een map: '/root/Downloads'
Product: [Fedora] Fedora Reporter: André Verwijs <dutch.glory>
Component: policycoreutilsAssignee: Petr Lautrbach <plautrba>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: dwalsh, grepl.miroslav, lvrabec, mmalik, plautrba, vmojzis
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/f142132bcbc2f4ffc3a08627a24fd0dc5df8031
Whiteboard: abrt_hash:58d6444db73d15478ef18eb66fec3eb17d719b2f;VARIANT_ID=;
Fixed In Version: policycoreutils-3.5-1.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-27 11:00:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: environ
none
File: mountinfo
none
File: cpuinfo
none
File: namespaces
none
File: backtrace
none
File: os_info
none
File: open_fds none

Description André Verwijs 2022-10-04 10:09:29 UTC
Description of problem:
???

Version-Release number of selected component:
policycoreutils-devel-3.4-6.fc37

Additional info:
reporter:       libreport-2.17.4
exception_type: IsADirectoryError
crash_function: export_config
comment:        ???
type:           Python3
cmdline:        /usr/bin/python3 -Es /usr/bin/sepolicy gui
interpreter:    python3-3.11.0~rc2-1.fc38.x86_64
runlevel:       N 5
uid:            0
kernel:         6.0.0-0.rc7.20220930git987a926c1d8a.51.fc38.x86_64
executable:     /usr/bin/sepolicy
package:        policycoreutils-devel-3.4-6.fc37
reason:         gui.py:2669:export_config:IsADirectoryError: [Errno 21] Is een map: '/root/Downloads'
cgroup:         0::/user.slice/user-0.slice/session-2.scope

Truncated backtrace:
#1 [/usr/lib/python3.11/site-packages/sepolicy/gui.py:2669] export_config
#2 [/usr/lib/python3.11/site-packages/sepolicy/gui.py:2594] on_browse_select

Comment 1 André Verwijs 2022-10-04 10:09:34 UTC
Created attachment 1915933 [details]
File: environ

Comment 2 André Verwijs 2022-10-04 10:09:36 UTC
Created attachment 1915934 [details]
File: mountinfo

Comment 3 André Verwijs 2022-10-04 10:09:37 UTC
Created attachment 1915935 [details]
File: cpuinfo

Comment 4 André Verwijs 2022-10-04 10:09:39 UTC
Created attachment 1915936 [details]
File: namespaces

Comment 5 André Verwijs 2022-10-04 10:09:42 UTC
Created attachment 1915937 [details]
File: backtrace

Comment 6 André Verwijs 2022-10-04 10:09:44 UTC
Created attachment 1915938 [details]
File: os_info

Comment 7 André Verwijs 2022-10-04 10:09:45 UTC
Created attachment 1915939 [details]
File: open_fds

Comment 8 Petr Lautrbach 2022-10-05 13:21:06 UTC
 It looks like the simplest solution would be to drop button pres signal from
 file choose dialog:

 modified   python/sepolicy/sepolicy/sepolicy.glade
 @@ -168,7 +168,6 @@
        <object class="GtkBox" id="filechooserdialog-vbox1">
          <property name="can_focus">False</property>
          <property name="orientation">vertical</property>
 -        <signal name="button-press-event" handler="on_choose_file"
 swapped="no"/>
          <child internal-child="action_area">
            <object class="GtkButtonBox" id="filechooserdialog-action_area1">
              <property name="can_focus">False</property>

Comment 9 Ben Cotton 2023-02-07 15:10:47 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 10 Fedora Update System 2023-02-27 18:52:08 UTC
FEDORA-2023-568a3be5b8 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-568a3be5b8

Comment 11 Fedora Update System 2023-02-28 02:54:13 UTC
FEDORA-2023-568a3be5b8 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-568a3be5b8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-568a3be5b8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2023-03-25 02:01:35 UTC
FEDORA-2023-568a3be5b8 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.