OCSInventory-NG / OCSInventory-ocsreports

Webconsole for OCS Inventory NG
https://www.ocsinventory-ng.org
GNU General Public License v2.0
231 stars 151 forks source link

[BUG] Package validate remove colon from url with custom port when write data into download_enable table #1615

Closed cbuquet closed 3 months ago

cbuquet commented 3 months ago

OCS Inventory version Version : 2.11.1

Describe the bug /download with custom url and custom port not working. Package validation remove colon from url when write data into download_enable table

To Reproduce Steps to reproduce the behavior:

  1. Go to 'deployment - build' and build a simple msi package
  2. Go to 'deployment - activate", chose new deployment and click on green mark 'activate'
  3. Use url like fqdn:port/download for Fragments url and https url, and click ok
  4. See url into database with select INFO_LOC, PACK_LOC from download_enable. ':' is missing between fqdn and port

Expected behavior ':' sould be conserved into download_enable for url with custom port

charleneauger commented 3 months ago

Hi @cbuquet ,

This bug has been fixed in 2.12.0 version (see PR https://github.com/OCSInventory-NG/OCSInventory-ocsreports/pull/1520). Please update your server to fix it :-)

Best regards, Charlene

cbuquet commented 3 months ago

Hi @charleneauger ,

Thank you for this quick reply.

Have a nice day, Cyril