Cyberduck Mountain Duck CLI

Opened 5 years ago

Closed 5 years ago

#7974 closed defect (fixed)

Null pointer downloading symbolic link with non existent target

Reported by: WebCF Owned by: dkocher
Priority: normal Milestone: 4.4.5
Component: sftp Version: 4.4.4
Severity: normal Keywords:
Cc: Architecture: Intel
Platform:

Description

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?

Change History (6)

comment:1 Changed 5 years ago by dkocher

  • Milestone set to 4.4.5
  • Status changed from new to assigned

comment:2 follow-up: Changed 5 years ago by dkocher

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

comment:3 Changed 5 years ago by dkocher

  • Summary changed from Unhandled exception running background task: NullPointer Exception @ SFTPAttributesFeature.find to Null pointer in SFTPAttributesFeature

comment:4 in reply to: ↑ 2 Changed 5 years ago by WebCF

Replying to 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:

https://cloud.kluthr.de/public.php (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 :)

comment:5 Changed 5 years ago by dkocher

  • Summary changed from Null pointer in SFTPAttributesFeature to Null pointer downloading symbolic link with non existent target

comment:6 Changed 5 years ago by dkocher

  • Resolution set to fixed
  • Status changed from assigned to closed

In r14682.

Note: See TracTickets for help on using tickets.
swiss made software