Skip to content

Return 404 on orphaned assets#2744

Open
jjnesbitt wants to merge 3 commits into
masterfrom
404-on-orphaned-assets
Open

Return 404 on orphaned assets#2744
jjnesbitt wants to merge 3 commits into
masterfrom
404-on-orphaned-assets

Conversation

@jjnesbitt

Copy link
Copy Markdown
Member

Depends on #2731
Closes #2733

Orphaned assets can still be accessed via the /assets/{asset_id}/ endpoint. This PR filters out orphaned assets from that endpoint, resulting in a 404 Not Found when attempting to access an orphaned asset.

@jjnesbitt jjnesbitt requested a review from waxlamp March 19, 2026 21:04
Base automatically changed from dandiset-embargo-end-date to master April 9, 2026 15:23
@yarikoptic yarikoptic added the patch Increment the patch version when merged label May 18, 2026
* origin/master: (71 commits)
  Refactor no-author citation handling per-format
  Make advanced-search help popover responsive (closes #2818)
  Inline _parse_date into apply_search_filters
  Update web/src/components/DandisetSearchField.vue
  Fix "This Version" header style on DLP
  Address round-2 review feedback
  species: scan all attributed subjects, not just the first
  Drop has_ prefix from asset operators
  Use long-form Celery options in native instructions
  Fix native Celery command for RabbitMQ 4.3
  Address review: strict parser, AI-marked tests, cleanup
  e2e: match search placeholder by stable substring
  Drop unused owner parameter from _delete_existing
  Add Gmail-style advanced search to dandiset listing
  [gh-actions](deps): Bump actions/add-to-project from 1.0.2 to 2.0.0
  Get `fsspec` from `dandi[extras]`
  Fix incompatibility with RabbitMQ 4.3
  Update dependency fsspec to v2026
  Update dependency marked to v18
  Fix compatability between Allauth rate limiting and Heroku
  ...
@yarikoptic

Copy link
Copy Markdown
Member

merged master to redo CI and see where we stand ATM on this

@jjnesbitt

Copy link
Copy Markdown
Member Author

I believe the blocker here is still CLI compatibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Increment the patch version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disallow direct access of orphaned assets

2 participants