Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong local path reference for uploads when hide extensions option in Windows Explorer is checked #7397

Closed
cyberduck opened this issue Aug 12, 2013 · 32 comments

Comments

@cyberduck
Copy link
Collaborator

7b4dfe3 created the issue

Every time I try to do anything in Cyberduck, it crashes. I had been using it without any problems for about 9 months. I tried re-installing the program and restarting my computer, but I still have problems. I ran my virus scan software, but didn't find anything.

The program opens. If I try to do something, it crashes and asks if I want to report the last crash. I tried to get the full transcript, but when I go to View>Toggle Log Drawer nothing happens. I haven't tested everything, but I if I try to open a connection, open a new browser or create a bookmark it crashes.

Can someone please help. Thanks.


Attachments

@cyberduck
Copy link
Collaborator Author

7b4dfe3 commented

I retried installing the program today. I was actually able to connect today, but when I went to download a file nothing happened. So, I closed the program and went to reopen it. When I reopened it and tried to to connect to a network, it crashed.

@cyberduck
Copy link
Collaborator Author

7b4dfe3 commented

I deleted all of the information in my Cyberduck folder in the AppData folder. I then reopened and everything works for now. I will update again if I have further problems. Thanks.

@cyberduck
Copy link
Collaborator Author

7b4dfe3 commented

Cyberduck now makes a connection and allows downloads. However, when I try to upload files it says that I upload them, but the files do not show up in my folder. I do not get any error messages, but uploads are not actually happening.

@cyberduck
Copy link
Collaborator Author

7b4dfe3 commented

On the upload it says it is uploading 0 B of 0 B, which obviously isn't true. Here's what I get from the Log Drawer (with the user name x'd out). It seems to be skipping a step based on what I see on an instance of cyberduck that I have open on a different computer.

SSH_FXP_REALPATH
SSH_FXP_NAME
/ibrix/home4/xxxxxxxxxxxxxxxx
SSH_FXP_OPENDIR
SSH_FXP_HANDLE
SSH_FXP_READDIR
SSH_FXP_NAME
drwxr-xr-x    2 xxxxxxxxxxxx uxxxxxxn      4096 Aug 16 14:19 .
drwxr-xr-x   20 xxxxxxxxxxxx uxxxxxxn    397312 Aug 16 14:19 ..
SSH_FXP_READDIR
SSH_FXP_STATUS
SSH_FXP_CLOSE
SSH_FXP_STATUS

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

Please update to the latest snapshot build available and reopen this issue if still a problem. We have since refactored many things in this area.

@cyberduck
Copy link
Collaborator Author

7b4dfe3 commented

I updated to the latest snapshot build and still have the same problem. It still won't upload any files.

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

What's the location of the file on your computer to be uploaded? Can you try to upload a file that isn't in a special folder like Desktop, Documents, ... or network share?

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Please post the transcript from the log drawer (Ctrl-L) of the Transfers window.

@cyberduck
Copy link
Collaborator Author

7b4dfe3 commented

I tried to upload from C:\Test a simple file that I called cyberduck_test.txt. Here is the log that it gave me from the "Transfers" window:

SSH_FXP_INIT
SSH_FXP_VERSION
posix-rename@openssh.com
statvfs@openssh.com
fstatvfs@openssh.com
SSH_FXP_REALPATH
SSH_FXP_STATUS
No such file

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

Thanks for testing. It looks like there is an exception thrown in the transfer thread. Can you please attach the log file which should contain the exception?

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Can you please update to build 13073. An error dialog should be displayed instead of the silent failure.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

I assume no crash report is displayed neither. We will have to write a test for changeset bc684c5.

@cyberduck
Copy link
Collaborator Author

7b4dfe3 commented

Correct. There are no error messages. It just doesn't upload anything and says that 0B of 0B has been uploaded.

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

We improved the logging. Please update to the latest nightly build and enable debug logging. After testing, attach the new cyberduck.log which should now contain much more information. Thanks!

@cyberduck
Copy link
Collaborator Author

7b4dfe3 commented

I have uploaded the new log file. I got an error message this time when I uploaded, but I figure that has to do with the debug setting I turned on.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [comment:18 higgins4]:

I have uploaded the new log file. I got an error message this time when I uploaded, but I figure that has to do with the debug setting I turned on.

What is the error message? Possibly due to change b65e87d.

@cyberduck
Copy link
Collaborator Author

7b4dfe3 commented

File not found

/ibrix/home4/higgins4/cyberduck_test

That is the directory I am trying to upload to and the file I am trying to upload. It seems like it is trying to download the file instead of upload it.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [comment:20 higgins4]:

File not found

/ibrix/home4/higgins4/cyberduck_test

That is the directory I am trying to upload to and the file I am trying to upload. It seems like it is trying to download the file instead of upload it.

Fixed path in exception message to local file reference in 361c07c.

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

We are getting closer. Just uploaded a new snapshot version 67e0e95 with even more logging output. Can you please try again?

@cyberduck
Copy link
Collaborator Author

7b4dfe3 commented

I have uploaded the new log file after updating and trying again. I get the same error message as before, but it now shows the right location for the file I'm trying to upload

"File not found

C:\Test\cyberduck_test"

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

Replying to [comment:24 higgins4]:

I have uploaded the new log file after updating and trying again. I get the same error message as before, but it now shows the right location for the file I'm trying to upload

"File not found

C:\Test\cyberduck_test"

Is cyberduck_test the correct filename? In a comment above the test file has the extension .txt -> cyberduck_test.txt. Just to be sure.

@cyberduck
Copy link
Collaborator Author

7b4dfe3 commented

That's interesting. I wondered about that as well. I just tried to upload it again in two different ways:

  1. I went to the upload window, clicked on the file and clicked choose. I got the error message again.
  2. I went to the upload window, clicked on the file, typed in the .txt extension and clicked choose. This worked and the file uploaded.

So, it looks like the extension is the key. I tried this for other files and had the same thing happen to me.

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

I'm now able to replicate the issue. If the Windows Explorer option Hide extensions for known file types is check for the folder containing the file you want to upload, it fails due to the missing extension.

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

In 578d23c.

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

Can you please test the latest snapshot version 578d23c which should fix the issue?

@cyberduck
Copy link
Collaborator Author

7b4dfe3 commented

I updated, but still had to manually type in the extension in order to get the upload to work. Otherwise I got the same error as before.

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

When pressing the Upload button a temporary registry change is made to display the extension in the browser dialog (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -> HideFileExt=0). We need that to make multi selection of files and folders work. Do you see the file with extension (cyberduck_test.txt) in the browser list (not the textbox)? If no, can you please check the registry key above if it's 0 or 1? Make sure that the dialog is open at this time since the change is reverted when leaving it. You might need to refresh the registry viewer.

@cyberduck
Copy link
Collaborator Author

7b4dfe3 commented

I do not see the extension in the browser list, I just see under the file type that it is a text document. Nowhere on there do I see '.txt'. I looked under the HKEY director and I did not see 'HideFileExt' listed anywhere.

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

That's weird. This is a standard key from Explorer which should be available on all systems. Can you try to disable the option 'Hide extensions for known file types'. Restart Cyberduck and test. Revert the option, restart and another test please. What are the results? Is your computer part of a corporate network with group policies and so on?

@cyberduck
Copy link
Collaborator Author

7b4dfe3 commented

I unchecked the box and was able to upload to Cyberduck. I then checked the box, clicked apply and restarted Cyberduck. I was able to upload then as well. That's odd. Not sure why that's happening, but it seems to be working just fine now.

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

It looks like you had a corrupt registry (missing key). The uncheck/check operation reinstalled the key.

@cyberduck
Copy link
Collaborator Author

7b4dfe3 commented

Thanks for the help and explanation. I really appreciate it.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants