Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Better errors from Download: Make GetFileSasUrl nullable #3229

Merged
merged 3 commits into from
Jun 27, 2023
Merged

Conversation

Porges
Copy link
Member

@Porges Porges commented Jun 26, 2023

This allows us to generate 404s when someone attempts to download from a non-existent container. At the moment we generate a 500 which isn't useful, or very good looks-wise.

@Porges Porges marked this pull request as ready for review June 27, 2023 21:23
@codecov-commenter
Copy link

codecov-commenter commented Jun 27, 2023

Codecov Report

Merging #3229 (2285bc8) into main (44674e8) will increase coverage by 0.02%.
The diff coverage is 42.42%.

@@            Coverage Diff             @@
##             main    #3229      +/-   ##
==========================================
+ Coverage   29.55%   29.57%   +0.02%     
==========================================
  Files         332      332              
  Lines       39199    39242      +43     
==========================================
+ Hits        11584    11607      +23     
- Misses      27615    27635      +20     
Impacted Files Coverage Δ
src/ApiService/ApiService/onefuzzlib/Extension.cs 0.00% <0.00%> (ø)
...ce/ApiService/onefuzzlib/NotificationOperations.cs 24.79% <0.00%> (-1.53%) ⬇️
...piService/ApiService/onefuzzlib/ProxyOperations.cs 0.00% <0.00%> (ø)
src/ApiService/ApiService/onefuzzlib/Events.cs 70.83% <85.00%> (+2.56%) ⬆️
src/ApiService/ApiService/Functions/Download.cs 100.00% <100.00%> (ø)
src/ApiService/ApiService/onefuzzlib/Containers.cs 74.14% <100.00%> (+0.35%) ⬆️

@Porges Porges enabled auto-merge (squash) June 27, 2023 22:14
@Porges Porges merged commit 7c0dc7b into main Jun 27, 2023
@AdamL-Microsoft AdamL-Microsoft mentioned this pull request Jul 13, 2023
@Porges Porges deleted the download-404 branch July 13, 2023 21:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants