Your message dated Mon, 24 Mar 2025 13:19:26 +0000
with message-id <[email protected]>
and subject line Re: Bug#1101158: glib2.0: Can not open files from smb share in 
since 2.84.0-2
has caused the Debian Bug report #1101158,
regarding glib2.0: Can not open files from smb share in since 2.84.0-2
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1101158: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1101158
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: glib2.0
Version: 2.84.0-2
Severity: normal
X-Debbugs-Cc: [email protected]

Dear Maintainer,

I can no longer upload files from Firefox 136.0.2 from a smb share I
have mounted, or open them in Gimp (this is the two things I've found).

I can enter the upload dialog, browse the file and see it, but when I
upload it gives "The file does not have read permissions" in a modal
(I'm sure that's a spurious error) and in the journal logs I can see

---
Mar 24 15:14:30 framework firefox-bin[18770]: GFileInfo created without 
standard::content-type
Mar 24 15:14:30 framework firefox-bin[18770]: file ../../../gio/gfileinfo.c: 
line 1821 (g_file_info_get_content_type): should not be reached
Mar 24 15:14:30 framework firefox.desktop[18770]: [Parent 18770, Main Thread] 
WARNING: GFileInfo created without standard::content-type: 'glib warning', file 
/builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201
Mar 24 15:14:30 framework firefox.desktop[18770]: [Parent 18770, Main Thread] 
WARNING: file ../../../gio/gfileinfo.c: line 1821 
(g_file_info_get_content_type): should not be reached: 'glib warning', file 
/builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201
---

I tried with firefox-beta (137.0b9) and I get the same thing

---
(firefox-beta:14257): GLib-GIO-CRITICAL **: 14:19:44.355: GFileInfo created 
without standard::content-type
[Parent 14257, Main Thread] WARNING: file ../../../gio/gfileinfo.c: line 1821 
(g_file_info_get_content_type): should not be reached: 'glib warning', file 
/builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201

(firefox-beta:14257): GLib-GIO-CRITICAL **: 14:19:44.355: file 
../../../gio/gfileinfo.c: line 1821 (g_file_info_get_content_type): should not 
be reached
[Parent 14257, Main Thread] WARNING: GFileInfo created without 
standard::content-type: 'glib warning', file 
/builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201
---

Out of interest I also tried with GTK_USE_PORTAL=1 and I see the "new"
dialog box then, but when I try to upload it just dies with no other
details.  In the logs there is

---
[Parent 22691, Main Thread] WARNING: invalid cast from 'GtkFileChooserNative' 
to 'GtkWindow': 'glib warning', file 
/builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201

(firefox-beta:22691): GLib-GObject-CRITICAL **: 15:18:41.707: invalid cast from 
'GtkFileChooserNative' to 'GtkWindow'
[Parent 22691, Main Thread] WARNING: gtk_message_dialog_new: assertion 'parent 
== NULL || GTK_IS_WINDOW (parent)' failed: 'glib warning', file 
/builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201
---

I think that might be a separate issue, just adding for completness ...

I then tried opening with gimp which seems to use a different file
chooser again, and it gives the same error in the logs

---
Mar 24 15:27:24 framework gimp-3.0[24342]: GFileInfo created without 
standard::content-type
Mar 24 15:27:24 framework gimp-3.0[24342]: file ../../../gio/gfileinfo.c: line 
1821 (g_file_info_get_content_type): should not be reached
---

and gives an error "the file doesn't exist".

Note this only seems to happen for files on the mounted smb share.
>From nautilus I can see them, open them, etc. just fine.  It's just
the upload dialog AFAICT -- I haven't triggered it any other way.

I also tried Chrome ... and the window just exits and the upload never
happens; but I can't get a message out of the logs for that though?

All of this makes me think it is not a gimp/firefox specific thing,
it's something lower in glib?

-i

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.19-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

--- End Message ---
--- Begin Message ---
Version: 1.57.2-2

On Mon, 24 Mar 2025 at 22:22:44 +1100, Ian Wienand wrote:
On Mon, 24 Mar 2025 at 20:57, Simon McVittie <[email protected]> wrote:
On Mon, 24 Mar 2025 at 15:31:24 +1100, Ian Wienand wrote:
>Mar 24 15:14:30 framework firefox-bin[18770]: GFileInfo created without 
standard::content-type

It might help to upgrade gvfs to version 1.57.2-2 from unstable

Yes, I installed this (from 1.57.2-1 testing) logged
out and in and ... it works!  So I guess this is a dup of that

Closing the bug as fixed in that version.

    smcv

--- End Message ---

Reply via email to