Uploaded docs and screenshots gets corrupted #5191
acarboni71
started this conversation in
Installation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using kanboard 1.2.13 inside a container. I created the following local folders:
mkdir /srv/kanboard/
db
data
plugins
nginx
Then I created a mysql instance:
docker run -d
--name kanboard-db
-e MYSQL_ROOT_PASSWORD=xxx
-e MYSQL_DATABASE=kanboard
-e MYSQL_USER=xxx
-e MYSQL_PASSWORD=xxx
-v /srv/kanboard/db:/var/lib/mysql
-p 3307:3306
mysql:5.7
Finally, I started the Kanboard with this command:
sudo docker run --detach
--publish 80:80
--name kanboard
--restart always
--env DATABASE_URL=mysql://kbuser:kbpass@MYIP:3307/kanboard
--volume /srv/kanboard/data:/var/www/app/data
--volume /srv/kanboard/plugins:/var/www/app/plugins
--volume /srv/kanboard/nginx:/etc/nginx/ssl
kanboard/kanboard:v1.2.13
All goes fine but when I try to upload something (a doc, a screenshot) it gets corrupted. Also the image preview is corrupted. Trying to upload a test.png, the situation is this:
Original file:
acarboni@kakaroth:/my/work$ hexdump test.png
0000000 5089 474e 0a0d 0a1a 0000 0d00 4849 5244
0000010 0000 2600 0000 0500 0208 0000 a600 0967
0000020 0061 0000 7009 5948 0073 0e00 00c4 0e00
0000030 01c4 2b95 1b0e 0000 1800 4449 5441 5328
0000040 7c63 eef7 031d 017d ba13 ed00 a8c1 3495
0000050 0002 f64b d402 e379 13f4 0000 0000 4549
0000060 444e 42ae 8260
Same file imported into kanboard and then downloaded from it:
acarboni@kakaroth:/my/work$ hexdump test-b.png
0000000 890a 4e50 0d47 1a0a 000a 0000 490d 4448
0000010 0052 0000 0026 0000 0805 0002 0000 67a6
0000020 6109 0000 0900 4870 7359 0000 c40e 0000
0000030 c40e 9501 0e2b 001b 0000 4918 4144 2854
0000040 6353 f77c 1dee 7d03 1301 00ba c1ed 95a8
0000050 0234 4b00 02f6 79d4 f4e3 0013 0000 4900
0000060 4e45 ae44 6042 0082
There is 1 more byte and data seems random. There is something related to endian encoding. For example, take the first line of both:
Original: 50(89) 47(4e) 0a(0d) 0a(1a) 00(00) 0d(00) 48(49) 52(44)
Downloaded: (89)0a (4e)50 (0d)47 (1a)0a (00)0a (00)00 (49)0d (44)48
In parenthesis, number that have shifted position. I don't know if this issue is there also for a not containerized kanboard.
Beta Was this translation helpful? Give feedback.
All reactions