Skip to content

RedirectBundle 3.0.0-RC1: CSV import rejected (invalid MIME type) and export breaks admin UI #103

@Johann0290

Description

@Johann0290
Sulu Version | 3.0.5 (redirectBundle 3.0.0-RC1) -- | -- PHP Version | 8.5 -- | -- DB Version | 14.22

Actual Behavior

When attempting to upload a CSV file for redirect import via the Sulu admin interface, an error is thrown immediately:

Error - redirects.csv has invalid type. Allowed types are (text/csv)

This happens instantly without any network request being sent.

Additionally, exporting redirects results in an error. The following URL is triggered:

/admin/api/redirect-routes.csv?flat=true&delimiter=;&escape=\&enclosure="&newLine=\n

After that, the admin interface appears to be broken.

However, importing redirects via the CLI works without any issues:

bin/adminconsole sulu:redirect:import

Expected Behavior

  • CSV import via the admin UI should accept valid .csv files and send the request properly.
  • CSV export should work without errors and should not break the admin interface.
  • Behavior should be consistent between UI and CLI import.

Steps to Reproduce

  1. Go to the redirect import section in the Sulu admin UI.
  2. Try to upload a valid .csv file.
  3. Observe the immediate validation error without any request being sent.
  4. Try exporting redirects.
  5. Observe the error and broken UI state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions