Project

General

Profile

Bug #11901

Webalbum export without trailing slash misbehaves

Added by dar ix 19 days ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
01/01/2018
Due date:
% Done:

0%

Affected Version:
git master branch
System:
all
bitness:
64-bit
hardware architecture:
amd64/x86

Description

  • in the export module select web gallery
  • type as path $(HOME)/broken/export

This results in the following tree:

```
17849 0 drwxr-xr-x 4 darix users 91 Jan 1 14:53 broken
3850655 160 rw-r--r- 1 darix users 161167 Jan 1 14:53 broken/export.jpg
3850656 24 rw-r--r- 1 darix users 23189 Jan 1 14:53 broken/export-thumb.jpg
275911044 0 drwxr-xr-x 2 darix users 42 Jan 1 14:53 broken/style
275911052 4 rw-r--r- 1 darix users 2478 Jan 1 14:53 broken/style/style.css
275911053 4 rw-r--r- 1 darix users 1150 Jan 1 14:53 broken/style/favicon.ico
539734477 0 drwxr-xr-x 3 darix users 162 Jan 1 14:53 broken/pswp
810426611 0 drwxr-xr-x 2 darix users 99 Jan 1 14:53 broken/pswp/default-skin
810426612 12 rw-r--r- 1 darix users 11609 Jan 1 14:53 broken/pswp/default-skin/default-skin.css
810426613 4 rw-r--r- 1 darix users 547 Jan 1 14:53 broken/pswp/default-skin/default-skin.png
810426614 4 rw-r--r- 1 darix users 1554 Jan 1 14:53 broken/pswp/default-skin/default-skin.svg
810426615 4 rw-r--r- 1 darix users 866 Jan 1 14:53 broken/pswp/default-skin/preloader.gif
539764857 92 rw-r--r- 1 darix users 93519 Jan 1 14:53 broken/pswp/photoswipe.js
539764858 32 rw-r--r- 1 darix users 31726 Jan 1 14:53 broken/pswp/photoswipe.min.js
539764866 24 rw-r--r- 1 darix users 21504 Jan 1 14:53 broken/pswp/photoswipe-ui-default.js
539764867 4 rw-r--r- 1 darix users 4065 Jan 1 14:53 broken/pswp/photoswipe.css
539764868 12 rw-r--r- 1 darix users 9547 Jan 1 14:53 broken/pswp/photoswipe-ui-default.min.js
3850657 4 rw-r--r- 1 darix users 3849 Jan 1 14:53 broken/index.html
```

Expected behavior: the path is always treated as a directory. As you can see in the expected behavior ... It were actually 2 images being exported. but in the upper output ... it exported each image to the same target filename.

```
17849 0 drwxr-xr-x 3 darix users 20 Jan 1 14:55 broken/
275911044 0 drwxr-xr-x 4 darix users 141 Jan 1 14:55 broken/export
275911052 132 rw-r--r- 1 darix users 133532 Jan 1 14:55 broken/export/DSCF0088.jpg
275911053 24 rw-r--r- 1 darix users 21845 Jan 1 14:55 broken/export/DSCF0088-thumb.jpg
275911055 160 rw-r--r- 1 darix users 161167 Jan 1 14:55 broken/export/DSCF0089.jpg
275911056 24 rw-r--r- 1 darix users 23189 Jan 1 14:55 broken/export/DSCF0089-thumb.jpg
539535187 0 drwxr-xr-x 2 darix users 42 Jan 1 14:55 broken/export/style
539734477 4 rw-r--r- 1 darix users 2478 Jan 1 14:55 broken/export/style/style.css
539764857 4 rw-r--r- 1 darix users 1150 Jan 1 14:55 broken/export/style/favicon.ico
810426611 0 drwxr-xr-x 3 darix users 162 Jan 1 14:55 broken/export/pswp
5369412 0 drwxr-xr-x 2 darix users 99 Jan 1 14:55 broken/export/pswp/default-skin
5369413 12 rw-r--r- 1 darix users 11609 Jan 1 14:55 broken/export/pswp/default-skin/default-skin.css
5369414 4 rw-r--r- 1 darix users 547 Jan 1 14:55 broken/export/pswp/default-skin/default-skin.png
5369415 4 rw-r--r- 1 darix users 1554 Jan 1 14:55 broken/export/pswp/default-skin/default-skin.svg
5369436 4 rw-r--r- 1 darix users 866 Jan 1 14:55 broken/export/pswp/default-skin/preloader.gif
810426612 92 rw-r--r- 1 darix users 93519 Jan 1 14:55 broken/export/pswp/photoswipe.js
810426613 32 rw-r--r- 1 darix users 31726 Jan 1 14:55 broken/export/pswp/photoswipe.min.js
810426614 24 rw-r--r- 1 darix users 21504 Jan 1 14:55 broken/export/pswp/photoswipe-ui-default.js
810426615 4 rw-r--r- 1 darix users 4065 Jan 1 14:55 broken/export/pswp/photoswipe.css
810426616 12 rw-r--r- 1 darix users 9547 Jan 1 14:55 broken/export/pswp/photoswipe-ui-default.min.js
275911057 4 rw-r--r- 1 darix users 3861 Jan 1 14:55 broken/export/index.html
```

Also available in: Atom PDF