For the SRU team reviewing this, I can confirm the bug is fixed in samba 4.12.2 which I will upload to groovy shortly:
root@groovy-samba-file-folder:~# gio info smb://127.0.0.1/testshare/123.txt | grep '^type:' type: regular root@groovy-samba-file-folder:~# apt-cache policy samba samba: Installed: 2:4.12.2+dfsg-0ubuntu1~ppa2 Candidate: 2:4.12.2+dfsg-0ubuntu1~ppa2 Version table: *** 2:4.12.2+dfsg-0ubuntu1~ppa2 500 500 http://ppa.launchpad.net/ahasenack/samba-4122/ubuntu groovy/main amd64 Packages 100 /var/lib/dpkg/status 2:4.11.6+dfsg-0ubuntu1.1 500 500 http://archive.ubuntu.com/ubuntu groovy/main amd64 Packages -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1872476 Title: Shared files are shown as folders To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1872476/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs