File Upload Issue

LabKey Support Forum
File Upload Issue jgane  2020-05-26 07:54
Status: Active
 

Hi,

We have a user who has been running into an issue trying to upload a specific HTML file to a files webpart on LabKey version 18.2, every time she does she gets an Unauthorized error stating "You do not have privileges to upload." and when checking the LabKey Primary Site Log File I see the error message below:

WARN FileSystemResource 2020-05-15 15:48:20,754 catalina-exec-16 : user@institution.org attempted to delete file that is not writable by LabKey Server. This may be a configuration problem. file: /mnt/labkey/Release_Prep/Sandbox_and_Resources/SB_CLIN/@files/Data_Quality_Report_VS.html

If I as an admin try to upload the file I am able to successfully, however if I impersonate her account and try I get the same permissions error. She is able to upload other files to this folder just fine and strangely enough she is able to upload the file to an issue in an issue tracker but just not to a files webpart. Additionally, no other users are reporting issues with uploading files.

Any help or insight on this would be appreciated.

Jon

 
 
chetc (LabKey Support) responded:  2020-06-15 16:16

Hello Jon,

Does the HTML file contain any JavaScript? If so, then the user will need to be either a "Site Admin" or a part of the "Developers" group. I believe the issue tracker is treated differently than a regular files webpart.

Hope this helps!

Thanks,
Chet

 
jgane responded:  2020-06-16 14:02

Hey Chet,

Thanks for the reply. Yes the HTML file does have javascript in it, however the user has been able to upload a few dozen other HTML files with javascript, it's just this one file in particular that LabKey won't let them upload.

Best,
Jon

 
chetc (LabKey Support) responded:  2020-06-30 16:38
Status: Closed

Hello Jon,

Let me make sure that I'm understanding this correctly. They are able to upload other HTML files containing JS to this folder, but this file in particular results in issues?

If possible, could you send me that file? What is the code trying to do?

Thanks,
Chet