! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Gigolo WebDav and FTP asks for share name
Status:
RESOLVED: FIXED
Priority:
Very High

Comments

Description Maurizio Galli 2018-11-30 10:00:50 CET
Created attachment 8142 
error dialog screenshot

Steps to reproduce:

1. Launch Gigolo
2. Action > Connect
3. Select FTP or WebDav
4. Enter server address in "Server"
5. Enter username
6. Click "Connect"

Behavior:
Error Dialog prompts with message: "You must enter a share name". For WebDav or FTP it should not ask for share name and also there is no place to enter it.

Expected behavior:
After connect it should prompt dialog for username and password and connect to the WebDav or FTP server.

Gigolo 0.4.90 (GTK+ 3.24.1, GLib 2.58.1)
openSUSE Tumbleweed
Comment 1 Skunnyk editbugs 2019-01-02 23:00:28 CET
*** Bug 14974 has been marked as a duplicate of this bug. ***
Comment 2 Landry Breuil editbugs 2019-02-22 10:17:00 CET
I've seen the same bug for smb shares, it wasnt possible to create new shares/bookmarks - sean, since you finished the porting to gtk3, any idea ? The https://git.xfce.org/apps/gigolo/tree/src/bookmarkeditdialog.c logic where the error comes from hasnt really been modified since a while.. will eventually look at the code this weekend..
Comment 3 Landry Breuil editbugs 2019-02-22 11:22:16 CET
did some git bisect, and it points at https://git.xfce.org/apps/gigolo/commit/?id=862e5aac606acdaa787112fd01358f4c4964e15b as the one causing the bug. Will dig deeper :)
Comment 4 Landry Breuil editbugs 2019-02-22 11:31:43 CET
Looking at the code, my understanding is that before this commit, the 'unneeded' widgets were removed from the container in setup_for_type(), while they're just hidden after the commit - so that might explain why the validity controls triggers on share, which is only used for smb method.
Comment 5 Maurizio Galli 2019-02-22 14:54:09 CET
Thanks a lot for looking into this :-)
Comment 6 Landry Breuil editbugs 2019-02-22 15:48:35 CET
Created attachment 8315 
potential fix v1

Here's a potential fix on top of master, which this i'm able to create ssh & ftp mounts - havent tested smb yet.

I'm not 100% happy with it, since the logic changed in the commit might have to be improved instead of adding kludges like this. The 'port' value from the method isnt used either, the port field always default to 0 while to my understanding it should change when switching methods.
Comment 7 Sean Davis editbugs 2019-02-26 03:59:54 CET
Created attachment 8316 
Set port on connection type change

I think the proposed patch is sufficient and correctly handles the validation. The attached patch resolves the port number not changing when the connection type is changed.
Comment 8 Git Bot editbugs 2019-02-28 17:53:23 CET
Sean Davis referenced this bugreport in commit eeb13ae0a74ab49643298fcb12f38e5d6f473acc

Set port number when connection type changes (Bug #14928)

https://git.xfce.org/apps/gigolo/commit?id=eeb13ae0a74ab49643298fcb12f38e5d6f473acc
Comment 9 Git Bot editbugs 2019-02-28 17:53:26 CET
Landry Breuil referenced this bugreport in commit 077282fa40daeaae623a0f5fa239ff8aab370b61

Only show an error dialog if the share name/uri field is visible/required (bug #14928)

https://git.xfce.org/apps/gigolo/commit?id=077282fa40daeaae623a0f5fa239ff8aab370b61
Comment 10 Landry Breuil editbugs 2019-02-28 18:01:42 CET
0.4.91 just shipped with the fix.
Comment 11 Maurizio Galli 2019-03-03 07:25:10 CET
Thank you I confirm the issue is resolved.

Bug #14928

Reported by:
Maurizio Galli
Reported on: 2018-11-30
Last modified on: 2019-03-03
Duplicates (1):
  • 14974 SSH connection requires "share name"

People

Assignee:
Landry Breuil
CC List:
3 users

Version

Attachments

error dialog screenshot (21.48 KB, image/png)
2018-11-30 10:00 CET , Maurizio Galli
no flags
potential fix v1 (1011 bytes, patch)
2019-02-22 15:48 CET , Landry Breuil
landry : review? ( bluesabre )
Set port on connection type change (826 bytes, patch)
2019-02-26 03:59 CET , Sean Davis
no flags

Additional information