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

Problem with shortened uploaded files #32

Open
t-szczyrba opened this issue Sep 18, 2018 · 0 comments
Open

Problem with shortened uploaded files #32

t-szczyrba opened this issue Sep 18, 2018 · 0 comments

Comments

@t-szczyrba
Copy link

t-szczyrba commented Sep 18, 2018

Hi,
I've noticed some strange behaviour: the files I upload over webdav are finally shortened by a couple of bytes.

In workstation ( where I edit the file):
$ ls -lR
.:
total 20
-rw-rw-r-- 1 trevor trevor 137 Sep 17 14:46 README.txt
drwxrwxr-x 2 trevor trevor 4096 Sep 18 12:35 files
-rw-rw-r-- 1 trevor trevor 393 Sep 18 12:43 package.json
drwxrwxr-x 2 trevor trevor 4096 Sep 17 15:12 srv
-rw-rw-r-- 1 trevor trevor 64 Sep 18 12:38 webdav.json

./files:
total 4
-rw-rw-r-- 1 trevor trevor 350 Sep 18 12:54 404.html

./srv:
total 4
-rw-rw-r-- 1 trevor trevor 2818 Sep 18 12:54 index.js

In server ( where I upload the file):
$ls -lR
.:
total 24
-rw-r--r-- 1 www-data www-data 132 Sep 18 13:05 README.txt
drwxr-xr-x 2 www-data www-data 4096 Sep 18 12:55 files
-rw-r--r-- 1 www-data www-data 388 Sep 18 12:43 package.json
drwxr-xr-x 2 www-data www-data 4096 Sep 18 12:54 srv
-rw-r--r-- 1 www-data www-data 64 Sep 18 12:40 webdav.json

./files:
total 4
-rw-r--r-- 1 www-data www-data 346 Sep 18 12:55 404.html

./srv:
total 4
-rw-r--r-- 1 www-data www-data 2812 Sep 18 12:54 index.js

The situaion

Version of webdav upload extension: 0.0.5
Version of VS code:
Version: 1.27.2
Commit: f46c4c469d6e6d8c46f268d1553c5dc4b475840f
Date: 2018-09-12T07:11:15.873Z
Electron: 2.0.7
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64

Workstation OS info:
$ uname -a
Linux tadek-Z600-Ub 4.15.0-34-generic #37~16.04.1-Ubuntu SMP Tue Aug 28 10:44:06 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/os-release NAME="Ubuntu"
VERSION="16.04.5 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.5 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

Server OS info:
$ uname -a
Linux kosinowo-sniffer 4.14.18-sunxi #24 SMP Fri Feb 9 16:24:32 CET 2018 armv7l armv7l armv7l GNU/Linux
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.5 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.5 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

apache2 version 2.4.18-2ubuntu3.9

I have confirmed that the size difference happens in files utf8 encoded with some characters.
When in the file are no multibyte characters everything is fine, but it they are some ( ie: 'ą' character ) the size difference appears,

regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant