- Used Zammad version: zammad amd64 4.0.0-1617109315.8178bec2.bionic
- Used Zammad installation source: package
- Operating system: Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-139-generic x86_64)
- Elasticsearch version: elasticsearch 7.12.0 amd64
- DB: mysql-server: 5.7.33
- Browser + version: Firefox 86.0.1
Expected behavior:
Uploading files to a ticket is working. Usually you can see a filename + size
Actual behavior:
after uploading a file, zammad only displays “undefined bytes” and the file isnt uploaded
Steps to reproduce the behavior:
Upload a file to a ticket after upgrading to Zammad 4.0.x
Production log:
I, [2021-03-30T14:27:41.264540 #13310-47293835828520] INFO -- : Started POST "/api/v1/ticket_attachment_upload" for `2001:0db8:85a3:08d3:1319:8a2e:0370:7344` at 2021-03-30 14:27:41 +0200
I, [2021-03-30T14:27:41.270154 #13310-47293835828520] INFO -- : Processing by ErrorsController#routing as */*
I, [2021-03-30T14:27:41.270404 #13310-47293835828520] INFO -- : Parameters: {"form_id"=>"106946816", "File"=>#<ActionDispatch::Http::UploadedFile:0x00005606e807ecf8 @tempfile=#<Tempfile:/tmp/RackMultipart20210330-13310-n70nkg.jpg>, @original_filename="sasaa.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"File\"; filename=\"sasaa.jpg\"\r\nContent-Type: image/jpeg\r\n">, "a"=>"api/v1/ticket_attachment_upload"}
E, [2021-03-30T14:27:41.274230 #13310-47293835828520] ERROR -- : No route matches [POST] /api/v1/ticket_attachment_upload (ActionController::RoutingError)
I, [2021-03-30T14:27:41.276173 #13310-47293835828520] INFO -- : Completed 404 Not Found in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
I already tried:
- Restart Ubuntu
- Change browser to safari
- Clear browser cache
- zammad run rake searchindex:rebuild
- systemctl stop zammad; zammad run rails r “Cache.clear”; systemctl start zammad
- searched @google