Gigolo trys to use port 21 for SMB/CIFS connect

Bug #1854137 reported by Florian Wagner
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Gigolo
Invalid
Medium
gigolo (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When i try to connect to a smb/cifs share, gigolo always adds port 21 to the connect string and so the connection fails.

When i add a bookmark for the same connection port 21 is listed as used port.

I use gigolo installed from the official repository in Ubuntu 19.10.

** Message: 09:01:29.698: Gigolo 0.5.0 (GTK+ 3.24.12, GLib 2.62.1)

If i can give you more information the let me know what you need.

Revision history for this message
In , Ilvipero-2 (ilvipero-2) wrote :

Created attachment 9308
gigolo adds port 21 to smb connections?

Gigolo version 0.5.0 on opensuse tumbleweed

I initially created a bug with opensuse: https://bugzilla.opensuse.org/show_bug.cgi?id=1155611
Copying data and screenshot here for easier checking:

I was recently trying to add a gigolo smb share, and notice it failed to connect to my server. When I looked at the error message, I notice that port 21 was added at the end of connection. And server refused to accept connection.
It seems somehow gigolo adds port 21 from FTP selection, into SMB selection? I am sure it was not a problem when I added shares a few months back.
Attaching screenshot for reference.

Revision history for this message
Michael Pelley (mpelley) wrote :

Also affects Linux Mint 19.3:
0.5.0-1~18.04 amd64

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gigolo (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Pelley (mpelley) wrote :

Workaround: Create your bookmark(s) without autoconnect. Close gigolo and ensure that gigolo is not running. Edit the gigolo bookmarks under $HOME/.config/gigolo/ and change each bookmark CIFS/SMB entry from port=21 to port=445.

Revision history for this message
Michael Lueck (mlueck) wrote :

Confirmed in Xubuntu 20.04. Michael's suggestion in #3 gets around the defect. Thanks Michael!

Revision history for this message
In , Theo Linkspfeifer (lastonestanding) wrote :

Probably related to bug 14928.

If you change the port to '0' before switching the connection type to "Windows Share", no port number will be added to the address.

Revision history for this message
In , Ilvipero-2 (ilvipero-2) wrote :

(In reply to Theo Linkspfeifer from comment #1)
> Probably related to bug 14928.
>
> If you change the port to '0' before switching the connection type to
> "Windows Share", no port number will be added to the address.

Interesting, thanks.

I found another workaround to add bookmarks in gigolo, until this is fixed.
If I open Thunar, and enter the smb share manually: smb://ipaddressorhostname/share
Once I login and the share opens, It automatically shows up in gigolo as well. Then from that, I can right click and bookmark that share in gigolo.

I hope this helps
Mauro

Changed in gigolo:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Theo Linkspfeifer (lastonestanding) wrote :

*** This bug has been marked as a duplicate of bug 15455 ***

Changed in gigolo:
status: Confirmed → Invalid
Revision history for this message
crysman (crysman) wrote :

Hey, something WRONG is happening here. First of all, this bug is definitely NOT Invalid. I need to manually workaround this. So, please,

1) mark it some other status than Invalid.
2) this is not duplicate of "OpenOffice is not setup for Danish running in the Danish locale" #15455 as stated in comment #8

Revision history for this message
Sean Davis (bluesabre) wrote :

The duplicate number isn't from Launchpad, it's from Xfce. This duplicate is the following bug:

https://bugzilla.xfce.org/show_bug.cgi?id=15455

For Ubuntu, this bug is fixed with the following package upload:

https://launchpad.net/ubuntu/+source/gigolo/0.5.1-1

gigolo (0.5.1-1) unstable; urgency=medium

  [ Debian Janitor ]
  * Use secure URI in Homepage field.
  * Update standards version to 4.4.1, no changes needed.

  [ Yves-Alexis Perez ]
  * New upstream version 0.5.0
  * d/watch: use uscan special strings
  * d/control: update standards version to 4.5.0
  * New upstream version 0.5.1

Upstream Release Notes:

Gigolo 0.5.1 (March 14, 2020)
* ensure port is always reset when changing method type (bug #15455)

Changed in gigolo (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Michael Lueck (mlueck) wrote :

Confirmed on my machine that now the behavior is Gigolo does not write a port= entry when making SMB protocol bookmarks.

Using a newly created bookmark does successfully connect to the Samba server.

Assuming leaving port= out completely was an intended change, then I call this defect successfully resolved.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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