Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote Dataset: Unexpected error for long URI string #3511

Closed
ifarzana opened this issue Sep 25, 2024 · 1 comment
Closed

Remote Dataset: Unexpected error for long URI string #3511

ifarzana opened this issue Sep 25, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@ifarzana
Copy link

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:

  • Go to Datasets and add a dataset
  • Enter a long URI into the Remote -> URI settings.
  • Click "Test Data Root" to trigger the error.
  • Try saving the dataset settings, which results in an unexpected error.

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

@ifarzana ifarzana added the bug label Sep 25, 2024
@dasgarner dasgarner added this to the 4.1.2 milestone Sep 30, 2024
@dasgarner
Copy link
Member

Add some validation to present a better error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants