-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't download added software #19324
Comments
@marko-lisica I'm not seeing the MS Remote Desktop.pkg in Dogfood under workstations anymore. Did you delete it? I don't see anything in the activity feed but I did confirm i created it 5 days ago - Gabe Lopez added Microsoft Remote Desktop v10.9.6 (Microsoft_Remote_Desktop_10.9.6_installer.pkg) software to the 💻 Workstations team. I could have sworn I deleted it when done so maybe that's where the bug is. I'll try and reproduce |
2nd issue - confirmed there's zero indication the file is downloading and when dealing with large installers the user will have no idea its occurring in the background. First issue - I haven't been able to reproduce on my local instance with two different users but I'll keep trying. I uploaded and deleted Crowdstrike to the |
@PezHub I think it's removed via GitOps. All software was uploaded via UI so GitOps run removed it since there's no software specified in our repo. Could you try to add
I think we'll need to bring this to the product team and find some solution (loading state perhaps). |
@marko-lisica, it would be helpful if you could pop open your browser dev console and see if there are any errors being logged there as well as any errors for the download requests in the network tab. That will help us identify if the error is occurring on the backend or frontend (it's hard to know without that since our flash message is currently just a generic error). |
successfully added & removed I re-added it and left it to see what happens once GitOps runs. |
@gillespi314 This is what actually happens. You can try it yourself with Microsoft Remote Desktop. The request lasted for 2 minutes and then was interrupted. cc @PezHub |
I did test this out with the Network tab open on dogfood, the Microsoft Remote Desktop installer wasn't there anymore but I tested with Zoom Workplace and I see the long 14s delay before anything visual happens, and then the download is available (124MB). I think there could be a frontend fix as mentioned, but there may also be a possible backend improvement to send the download in "chunked" transfer mode, instead of one big response. I believe this could perhaps make the browsers give a more immediate "download in progress" indication, I'll give it a shot (maybe the best solution will be a combination of both, but we'll see). |
Ah well, http/2 does not support chunked transfer-encodings anymore, and I couldn't find a way to transfer it from the backend so that it would start the download indication sooner. I'm afraid it will have to be a frontend-only fix to add some feedback that the download is starting soon? |
Found this that seem to indicate it could work with |
if helps, we fixed this for bootstrap packages by using native browser downloads instead of JavaScript. It is a tiny more involved than the current approach. The main problem is that the request is authenticated using a header, so you can't use something like Instead, we use a Lines 25 to 51 in 2e54f95
|
Following a chat with @ghernandez345 and @roperzh , and as alluded in other comments on this ticket, it appears there are two issues:
I will take care of fixing the backend 500, and Gabe will work on the UI change. |
Backend fix here: #19527 @ghernandez345 feel free to move the ticket as per the frontend work, the backend effort was minimal. |
QA Approved! P.S. I did some additional testing while throttling my connection speeds and consistently got the |
Download troubles faced, |
Fleet version: Fleet 4.50.0 • Go go1.21.7
Web browser and operating system: Google Chrome 125.0.6422.112
💥 Actual behavior
When I open software that's added by user, it can't be downloaded from UI.
The text was updated successfully, but these errors were encountered: