Skip to content

Bug: block guest from calling api#11636

Merged
ofahimIQSS merged 6 commits intodevelopfrom
11465-api-fetch-download-size-file-count
Jul 21, 2025
Merged

Bug: block guest from calling api#11636
ofahimIQSS merged 6 commits intodevelopfrom
11465-api-fetch-download-size-file-count

Conversation

@stevenwinship
Copy link
Copy Markdown
Contributor

@stevenwinship stevenwinship commented Jul 14, 2025

What this PR does / why we need it: /datasets/:persistentId/versions/:latest-published/downloadsize and /api/v1/datasets/:persistentId/versions/1.0/files/counts returning 200 or 404 for guest users instead of 403

Which issue(s) this PR closes:#11465

Special notes for your reviewer: API is for Authenticated Users only

Suggestions on how to test this: See IT tests

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?:

Additional documentation:

@stevenwinship stevenwinship self-assigned this Jul 14, 2025
@github-actions github-actions Bot added FY24 Sprint 23 FY24 Sprint 23 FY25 Sprint 24 FY25 Sprint 24 (2025-05-21 - 2025-06-04) FY26 Sprint 1 FY26 Sprint 1 (2025-07-02 - 2025-07-16) GREI Re-arch Issues related to the GREI Dataverse rearchitecture Original size: 10 Size: 10 A percentage of a sprint. 7 hours. SPA These changes are required for the Dataverse SPA Type: Bug a defect labels Jul 14, 2025
@stevenwinship stevenwinship moved this to In Progress 💻 in IQSS Dataverse Project Jul 14, 2025
@coveralls
Copy link
Copy Markdown

coveralls commented Jul 14, 2025

Coverage Status

coverage: 23.18% (-0.002%) from 23.182%
when pulling 2f2fd80 on 11465-api-fetch-download-size-file-count
into 74b3bc7 on develop.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@stevenwinship stevenwinship moved this from In Progress 💻 to Ready for Review ⏩ in IQSS Dataverse Project Jul 15, 2025
@stevenwinship stevenwinship removed their assignment Jul 15, 2025
@sekmiller sekmiller self-assigned this Jul 15, 2025
@sekmiller sekmiller moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Jul 15, 2025
Copy link
Copy Markdown
Contributor

@sekmiller sekmiller 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. Passing to QA

@github-project-automation github-project-automation Bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Jul 16, 2025
@sekmiller sekmiller removed their assignment Jul 16, 2025
@g-saracca g-saracca added the SPA.Q3.2025 Not related to any specific Q3 2025 feature label Jul 16, 2025
@ofahimIQSS ofahimIQSS self-assigned this Jul 21, 2025
@ofahimIQSS ofahimIQSS moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Jul 21, 2025
@github-actions
Copy link
Copy Markdown

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:11465-api-fetch-download-size-file-count
ghcr.io/gdcc/configbaker:11465-api-fetch-download-size-file-count

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@ofahimIQSS
Copy link
Copy Markdown
Contributor

fix looks good- merging

@ofahimIQSS ofahimIQSS merged commit b330d21 into develop Jul 21, 2025
25 checks passed
@github-project-automation github-project-automation Bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Jul 21, 2025
@ofahimIQSS ofahimIQSS deleted the 11465-api-fetch-download-size-file-count branch July 21, 2025 22:40
@ofahimIQSS ofahimIQSS removed their assignment Jul 21, 2025
@pdurbin pdurbin added this to the 6.8 milestone Jul 22, 2025
@pdurbin pdurbin moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Jul 22, 2025
@qqmyers
Copy link
Copy Markdown
Member

qqmyers commented Jul 25, 2025

@stevenwinship - I didn't think the idea was to block all guest access to these endpoints for any version, but to return a 403 (instead of 404, etc.) when a user is asking about versions they don't have access to (draft or deaccessioned).

@qqmyers qqmyers moved this from Done 🧹 to Ready for Triage in IQSS Dataverse Project Jul 25, 2025
@pdurbin
Copy link
Copy Markdown
Member

pdurbin commented Jul 29, 2025

@qqmyers yes, good call. At standup we agreed to revert this PR. Here's the PR to revert it:

ofahimIQSS added a commit that referenced this pull request Jul 30, 2025
…load-size-file-count

Revert #11636 "Bug: block guest from calling api"
@pdurbin
Copy link
Copy Markdown
Member

pdurbin commented Aug 6, 2025

Now that the newer, better post-revert PR has been merged:

... I'd say it's save to move this from "ready for triage" to "done".

@pdurbin pdurbin moved this from Ready for Triage to Done 🧹 in IQSS Dataverse Project Aug 6, 2025
@cmbz cmbz added the FY26 Sprint 4 FY26 Sprint 4 (2025-08-13 - 2025-08-27) label Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY24 Sprint 23 FY24 Sprint 23 FY25 Sprint 24 FY25 Sprint 24 (2025-05-21 - 2025-06-04) FY26 Sprint 1 FY26 Sprint 1 (2025-07-02 - 2025-07-16) FY26 Sprint 2 FY26 Sprint 2 (2025-07-16 - 2025-07-30) FY26 Sprint 4 FY26 Sprint 4 (2025-08-13 - 2025-08-27) GREI Re-arch Issues related to the GREI Dataverse rearchitecture Original size: 10 Size: 10 A percentage of a sprint. 7 hours. SPA.Q3.2025 Not related to any specific Q3 2025 feature SPA These changes are required for the Dataverse SPA Type: Bug a defect

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

File API: fetch file downloadSize/count if a deaccessioned dataset has no file

8 participants