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

Null pointer downloading symbolic link with non existent target #7974

Closed
cyberduck opened this issue May 23, 2014 · 3 comments
Closed

Null pointer downloading symbolic link with non existent target #7974

cyberduck opened this issue May 23, 2014 · 3 comments
Assignees
Labels
bug fixed sftp version:4.4.4
Milestone

Comments

@cyberduck
Copy link
Collaborator

@cyberduck cyberduck commented May 23, 2014

69c86f0 created the issue

Hi :)

I did not find any ticket reagarding to this, maybe the following is a (new) bug?

However:

  • Cyberduck [4.4.4]
  • OS X [10.9.3]
  • Connected via SFTP [openssh-server: 1:6.0p1-4+de]
  • Connected as: root

I want to download a directory with the following specs:

  • 1264 files
  • 255M in size

If I start download, the file transfer "scans" the directory. After a minute it stops with "Transfer incomplete - 0B of 255.0 MB"

The OS X Console prints the following:

23.05.14 18:16:01,612 Cyberduck[1464]: [background-1] FATAL ch.cyberduck.ui.AbstractController - Unhandled exception running background task null

java.lang.NullPointerException
	at ch.cyberduck.core.sftp.SFTPAttributesFeature.find(SFTPAttributesFeature.java:47)
	at ch.cyberduck.core.transfer.download.AbstractDownloadFilter.prepare(AbstractDownloadFilter.java:116)
	at ch.cyberduck.ui.action.AbstractTransferWorker$1.call(AbstractTransferWorker.java:215)
	at ch.cyberduck.ui.action.SingleTransferWorker.submit(SingleTransferWorker.java:71)
	at ch.cyberduck.ui.action.AbstractTransferWorker.prepare(AbstractTransferWorker.java:207)
	at ch.cyberduck.ui.action.AbstractTransferWorker$1.call(AbstractTransferWorker.java:233)
	at ch.cyberduck.ui.action.SingleTransferWorker.submit(SingleTransferWorker.java:71)
	at ch.cyberduck.ui.action.AbstractTransferWorker.prepare(AbstractTransferWorker.java:207)
	at ch.cyberduck.ui.action.AbstractTransferWorker$1.call(AbstractTransferWorker.java:233)
	at ch.cyberduck.ui.action.SingleTransferWorker.submit(SingleTransferWorker.java:71)
	at ch.cyberduck.ui.action.AbstractTransferWorker.prepare(AbstractTransferWorker.java:207)
	at ch.cyberduck.ui.action.AbstractTransferWorker.run(AbstractTransferWorker.java:163)
	at ch.cyberduck.ui.threading.TransferBackgroundAction.run(TransferBackgroundAction.java:166)
	at ch.cyberduck.ui.threading.TransferCollectionBackgroundAction.run(TransferCollectionBackgroundAction.java:78)
	at ch.cyberduck.ui.threading.TransferCollectionBackgroundAction.run(TransferCollectionBackgroundAction.java:38)
	at ch.cyberduck.core.threading.AbstractBackgroundAction.call(AbstractBackgroundAction.java:119)
	at ch.cyberduck.core.threading.SessionBackgroundAction.call(SessionBackgroundAction.java:159)
	at ch.cyberduck.ui.AbstractController$BackgroundCallable.call(AbstractController.java:159)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at ch.cyberduck.core.threading.NamedThreadFactory$1.run(NamedThreadFactory.java:57)
	at java.lang.Thread.run(Thread.java:724)

I've tried another directory:

  • 428 files
  • 12M in size

This download works as expected.

Any idea? Is something wrong with my CD config?

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented May 26, 2014

@dkocher commented

Can you reproduce this issue with the latest snapshot build available?

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented May 31, 2014

69c86f0 commented

Replying to [comment:2 dkocher]:

Can you reproduce this issue with the latest snapshot build available?

Hi. I've downloaded the snapshot. Cyberduck identifies itself now as:

Version 4.5 (14680)

I've noticed a new screen, after connecting via SFTP:

external image
(The message should be clearer :D I think "Immer" should be "Immer erlauben" or "Allow always").

However, the main problem still persists:

31.05.14 01:12:52,540 Cyberduck[3638]: [background-1] FATAL ch.cyberduck.ui.AbstractController - Unhandled exception running background task null

java.lang.NullPointerException
	at ch.cyberduck.core.shared.DefaultAttributesFeature.find(DefaultAttributesFeature.java:52)
	at ch.cyberduck.core.transfer.download.AbstractDownloadFilter.prepare(AbstractDownloadFilter.java:117)
	at ch.cyberduck.ui.action.AbstractTransferWorker$1.call(AbstractTransferWorker.java:215)
	at ch.cyberduck.ui.action.SingleTransferWorker.submit(SingleTransferWorker.java:71)
	at ch.cyberduck.ui.action.AbstractTransferWorker.prepare(AbstractTransferWorker.java:207)
	at ch.cyberduck.ui.action.AbstractTransferWorker$1.call(AbstractTransferWorker.java:233)
	at ch.cyberduck.ui.action.SingleTransferWorker.submit(SingleTransferWorker.java:71)
	at ch.cyberduck.ui.action.AbstractTransferWorker.prepare(AbstractTransferWorker.java:207)
	at ch.cyberduck.ui.action.AbstractTransferWorker$1.call(AbstractTransferWorker.java:233)
	at ch.cyberduck.ui.action.SingleTransferWorker.submit(SingleTransferWorker.java:71)
	at ch.cyberduck.ui.action.AbstractTransferWorker.prepare(AbstractTransferWorker.java:207)
	at ch.cyberduck.ui.action.AbstractTransferWorker$1.call(AbstractTransferWorker.java:233)
	at ch.cyberduck.ui.action.SingleTransferWorker.submit(SingleTransferWorker.java:71)
	at ch.cyberduck.ui.action.AbstractTransferWorker.prepare(AbstractTransferWorker.java:207)
	at ch.cyberduck.ui.action.AbstractTransferWorker.run(AbstractTransferWorker.java:163)
	at ch.cyberduck.ui.threading.TransferBackgroundAction.run(TransferBackgroundAction.java:166)
	at ch.cyberduck.ui.threading.TransferCollectionBackgroundAction.run(TransferCollectionBackgroundAction.java:78)
	at ch.cyberduck.ui.threading.TransferCollectionBackgroundAction.run(TransferCollectionBackgroundAction.java:38)
	at ch.cyberduck.core.threading.AbstractBackgroundAction.call(AbstractBackgroundAction.java:119)
	at ch.cyberduck.core.threading.SessionBackgroundAction.call(SessionBackgroundAction.java:159)
	at ch.cyberduck.ui.AbstractController$BackgroundCallable.call(AbstractController.java:159)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at ch.cyberduck.core.threading.NamedThreadFactory$1.run(NamedThreadFactory.java:57)
	at java.lang.Thread.run(Thread.java:744)

BUT: I've found the problem:

One folder contains a symbolic link, but the target does not exist anymore:

lrwxrwxrwx 1 root root        18 May  8 20:59 file -> file.zip

If I try to "download" that link, CD fails. I dont know if this should work, but it should be handled :)

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented May 31, 2014

@dkocher commented

In 1168067.

@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.
Labels
bug fixed sftp version:4.4.4
Projects
None yet
Development

No branches or pull requests

2 participants