Skip to content

HPCDATAMGM-2192: Removing unnecessary multipart/form-data.#177

Merged
dinhys merged 1 commit into
releases/3.26.0from
features/HPCDATAMGM-2192
May 26, 2026
Merged

HPCDATAMGM-2192: Removing unnecessary multipart/form-data.#177
dinhys merged 1 commit into
releases/3.26.0from
features/HPCDATAMGM-2192

Conversation

@dinhys
Copy link
Copy Markdown
Collaborator

@dinhys dinhys commented May 26, 2026

In collection permission page, adding new users to permissions list when the list gets long resulted in "HTTP - 413 Payload Too Large" Error. This was resolved and tested. The following form submission also does not need to use multipart/form-data and therefore was removed.

  • Collection permissions
  • Data object permissions
  • Manage -> Notifications
  • Reports
  • Search
  • Collection Search result
  • Data object Search result
  • Bulk Permissions
  • Bulk Metadata Update

Copilot AI review requested due to automatic review settings May 26, 2026 16:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes unnecessary multipart/form-data encoding from non-file-upload forms in the hpc-web Thymeleaf templates to reduce form payload size and avoid 413 errors on large submissions.

Changes:

  • Removed multipart encoding from bulk permission/metadata, notification, report, criteria, and search-result forms.
  • Kept multipart usage limited to actual file upload templates.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/hpc-web/src/main/resources/templates/updatemetadatabulk.html Uses default form encoding for bulk metadata updates.
src/hpc-web/src/main/resources/templates/subscribenotifications.html Uses default form encoding for notification subscriptions.
src/hpc-web/src/main/resources/templates/reports.html Uses default form encoding for reports form submission.
src/hpc-web/src/main/resources/templates/permissionbulk.html Uses default form encoding for bulk permissions.
src/hpc-web/src/main/resources/templates/dataobjectsearchresultdetail.html Uses default form encoding for search result action forms.
src/hpc-web/src/main/resources/templates/dataobjectsearchresult.html Uses default form encoding for search result action forms.
src/hpc-web/src/main/resources/templates/criteria.html Uses default form encoding for search criteria submission.
src/hpc-web/src/main/resources/templates/collectionsearchresultdetail.html Uses default form encoding for collection search result action forms.
src/hpc-web/src/main/resources/templates/collectionsearchresult.html Uses default form encoding for collection search result action forms.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dinhys dinhys requested review from menons and saradachintala May 26, 2026 16:46
Copy link
Copy Markdown
Contributor

@saradachintala saradachintala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@dinhys dinhys merged commit cd4325c into releases/3.26.0 May 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants