xibosignage / xibo

Xibo Digital Signage
https://xibosignage.com
GNU Affero General Public License v3.0
579 stars 165 forks source link

Remote Dataset: Unexpected error for long URI string #3511

Closed ifarzana closed 1 month ago

ifarzana commented 1 month ago

CMS Version: 4.0.15, 4.1.0

When attempting to configure a remote dataset with a long URI, an error occurs. After entering the URI in the Remote Dataset settings and selecting the "Test Data Root" option, an error message is displayed.

SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'uri' at row 1

Steps to Reproduce:

Actual Behaviour The system truncates the URI, leading to a database error

dasgarner commented 1 month ago

Add some validation to present a better error message.