openwisp / openwisp-firmware-upgrader

Firmware upgrade solution for OpenWRT with possibility to add support for other embedded OSes. Provides features like automatic retry for network failures, mass upgrades, REST API and more.
http://openwisp.org
Other
50 stars 58 forks source link

Firmware filename is limited to 100 characters #241

Closed lfdominguez-servinfo closed 1 month ago

lfdominguez-servinfo commented 1 year ago

Hi, I'm compiling my own openWRT firmware for a Xiaomi Mi Router 4a Gigabyte edition, but the generated firmware can't be upload to the openWISP server because the limit of firmware filename: ramips-mt7621-xiaomi_mi-router-4a-gigabit-squashfs-sysupgrade.bin

image

There are some config to change this or this is a simple limit of model on django migrations?

I'm using the imagebuilder ansible playbook and tested directly on the site too.

nemesifier commented 1 year ago

I think it may be a deafult limit as I don't see an explicit one defined in the code: https://github.com/openwisp/openwisp-firmware-upgrader/blob/master/openwisp_firmware_upgrader/base/models.py#L209-L214

As a temporary workaround you should be able to reduce the file name and select the image type manually.

sivangbagri commented 1 year ago

Hii I would like to work on this issue Please assign me this issue

lfdominguez-servinfo commented 1 year ago

I think it may be a deafult limit as I don't see an explicit one defined in the code: https://github.com/openwisp/openwisp-firmware-upgrader/blob/master/openwisp_firmware_upgrader/base/models.py#L209-L214

As a temporary workaround you should be able to reduce the file name and select the image type manually.

Yup, the Django FileField default is 100 characters