Skip to content

Register file validation#1014

Merged
oliche merged 3 commits into
devfrom
registerFileValidation
Jul 23, 2026
Merged

Register file validation#1014
oliche merged 3 commits into
devfrom
registerFileValidation

Conversation

@k1o0

@k1o0 k1o0 commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Handles the following issues within the register-file endpoint to return a 400 status:

  • int file size for single file registrations
  • invalid repository name
  • invalid repository hostname
  • non-existent lab
  • invalid ALF path
  • Dataset Django validation error
  • FileRecord Django validation error
  • FileRecord unique together violation

@k1o0 k1o0 mentioned this pull request Jul 20, 2026
- When registering a dataset to a subject content type, the returned data contains non-null subject field
- Returns json object when deleting protected dataset, consistent with other endpoint errors
@oliche
oliche merged commit 15f228e into dev Jul 23, 2026
2 checks passed
@oliche oliche mentioned this pull request Jul 23, 2026
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.

2 participants