The path /file/progress/{key} is always available even for anonymous users. So if you navigate to /file/progress/test route you will end up with the following weird message.
{"message":"Starting upload...","percentage":-1}
I propose the route should return 403 or 404 when progress is not available for a given upload process.
Issue fork drupal-3445399
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
kim.pepperI think it's feasible that anonymous users would be able to see file upload progress, so I don't think it's an access thing. But I do agree we should check if the extension is enabled.
Created a MR.
Comment #5
chi commented@kim.pepper
Even if the extension is enabled the message `{"message":"Starting upload...","percentage":-1}` will still appear when no upload process is available.
Comment #6
smustgrave commentedCan the issue summary be updated to match the standard template?
See there is a test failure so maybe updating that will be enough coverage for the change being made.
Comment #7
quietone commented