Hosted Content files upload with wrong mime types 13.1
I am running BIG-IP 13.1.0.3 Build 0.0.5 Point Release 3 VE. When I upload a .zip package or just standalone file to the hosted content, the wrong mime types are added by to the hosted content files. This seems to break my websites and webapps. I've tried patching this behavior myself but I have not been able to figure our exactly where the BIGIP is getting the mime type configuration from. The hosted content does not seem to get the mime type configuration found under /config/httpd/conf/httpd.conf or from /dev/mime.types. I'm not sure if possibly the configuration within /config/httpd/conf/magic might be having an effect on this behavior, however I don't think it does. From my earlier testing it seems that the BIGIP uses some nginx packages on its web rewriter and these packages seem to be fairly obfuscated within the F5 file system. I suspect the Hosted content's mime type attribute config file is also obfuscated some how which would explain why I couldn't find it poking around.. Or maybe I'm barking up the wrong tree here. Anyway.. I've tried to set AddType text/plain .css for my css files in httpd.conf with tmsh, to no avail. Command I tried: [ sudo tmsh modify sys httpd include 'AddType text/css .css' ]. This changed the httpd.conf file but the .css file still uploaded with the wrong mime type. So my question is, is it even possible to change the behavior on how the hosted content attributes files with mime types when uploaded? I would figure this is based on file extension. When I deliver my webapp package to my users will I need to instruct them to double check the mime type? I've come to the conclusion that the only way to do this is to change the mime types on-the-fly using an iRule. However I hate solving problems with an iRule like this that shouldn't exist in the first place. I've seen similar bug reports about bad mime types in the hosted content but these were for version 11.x... Any help here would be appreciated. Also there has to be a file somewhere that contains the mime type configuration that is seen when you click to edit the hosted content file properties and then change the mime type. This list must come from somewhere none-obvious. File types I am having issues with: .jar application/zip Zip Archive .gif application/octet-stream Binary Data .svg text/html html .js text/x-c C source file .css text/plain1.1KViews1like4Comments