snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.05k stars 3.18k forks source link

Docker - No 1D barcode shown with new label "Tapes\Dymo\LabelWriter_30252" #13906

Closed coach1988 closed 10 months ago

coach1988 commented 11 months ago

Debug mode

Describe the bug

The 1D barcode is not shown for the label template "Tapes\Dymo\LabelWriter_30252" in our setup, even though it does work with e.g. the "DefaultLabel" (old engine) and "Tapes\Brother\TZe_12mm_A".

I did try to clear the label cache, the "php artisan config clear" (probably unrelated) and different combinations of settings regarding this (different defaults, different code types, shorter/different content for the field, etc.), all with the same result; The "laravel.log" does not indicate any issues.

I don't want to rule out that this might be a permission issue (I've chown'd the docker volumes, just in case), but as other codes are working as expected as far as I can tell, I don't think it is.

It does feel like this one https://github.com/snipe/snipe-it/issues/13768 , especially as I had different outcomes with the labels depending on whether company logos were set/accessible or not.

PS: There were also references to a missing "/var/lib/snipeit/data/uploads/companies/company-image-test.png", which I've overcome by copying the existing company picture next to it with that target name, stacktrace for this behavior is attached, as it got logged. company-image-test.txt

Reproduction steps

Docker stack info:

` version: "3"

services: app: container_name: snipe-it-app
image: snipe/snipe-it:v6-latest environment:

networks: app: db:

`

The container is running behind a haProxy for SSL termination.

Expected behavior

The barcode is shown on the bottom of the label.

Screenshots

EDIT: For some reason the upload of the pictures doesn't want to work:-/ But the area where the barcode should be is just blank

EDIT2: Okay, worked around it, just remove the suffix, those are PNG's label ok.png.txt label not ok.png.txt

Snipe-IT Version

v6.2.1 build 11625 (gc45ede2d1)

Operating System

Official docker image

Web Server

-

PHP Version

8.1.2-1ubuntu2.14

Operating System

Windows

Browser

Firefox + Edge

Version

121.0a1

Device

Untested

Operating System

-

Browser

-

Version

-

Error messages

None

Additional context

-

welcome[bot] commented 11 months ago

πŸ‘‹ Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

snipe commented 10 months ago

Fixed in https://github.com/snipe/snipe-it/pull/14056