Skip to content

fix(e2e): correct BasicSearchFilterParameter field and missing filename in descriptive metadata update#3670

Open
luis100 wants to merge 3 commits into
developmentfrom
feat_rest-api-tests
Open

fix(e2e): correct BasicSearchFilterParameter field and missing filename in descriptive metadata update#3670
luis100 wants to merge 3 commits into
developmentfrom
feat_rest-api-tests

Conversation

@luis100
Copy link
Copy Markdown
Member

@luis100 luis100 commented May 11, 2026

Summary

  • Fix 400 in searchAips_withBasicSearchFilter: BasicSearchFilterParameter was using name: \"*\" which is not a valid Solr field. Changed to name: \"search\" — RODA's catch-all Solr field (RodaConstants.INDEX_SEARCH), consistent with how the UI constructs basic searches.
  • Fix 500 in updateDescriptiveMetadata: AIPService.updateDescriptiveMetadataFile() uses request.getFilename() as the descriptiveMetadataId for the storage path. The request body was missing filename, causing a null storage path. Added \"filename\": aipMetadataId to the request (the metadata id from the info endpoint IS the storage filename, e.g. metadata.xml).

Test plan

  • Run mvn test -pl roda-api-tests -Pe2e — all 19 tests should pass (0 failures)

🤖 Generated with Claude Code

luis100 and others added 3 commits May 8, 2026 18:06
…lename in descriptive metadata update

- BasicSearchFilterParameter: use RODA's catch-all Solr field "search"
  instead of "*" which is not a valid Solr field name (was causing 400)
- updateDescriptiveMetadata: add "filename" to request body using the
  metadata id, as AIPService.updateDescriptiveMetadataFile() uses
  request.getFilename() as the descriptiveMetadataId for the storage
  path (null filename was causing 500)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug labels May 11, 2026
@luis100 luis100 requested a review from hmiguim May 11, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant