Media Engine known issues

From EChase
Jump to: navigation, search

Image upload tempr directory[edit]

The mediaengine allows the user to upload item which are stored on a temporary file location and registered in the databases temporary item table. The temporary file location is set in the settings file. The media engine attempts to make sure it doesnt overwrite images held in the temporary file location by checking if the file it is about to create already exists. So if 0.jpg exists it trys 1.jpg...then 2.jpg....and so on till it finds a free number. The database will also not overwrite entries for items which already exist, ie if it thinks an image is already somewhere, it wont let you copy over it

The problem comes when 2 different mediaengines are running off a single database. ME A and B. A has 200 uploaded images and B has 10. Now B will attempt to add another one, it figures out the item ID 11.jpg is free and attempts to register to the database. As the URL constructed for image 11.jpg already exists the database will disallow the addition and fall over.

This needs to be fixed....but should be a problem as long as only 1 copy of the mediaengine is running per database

Building the mediaengine under linux[edit]

The mediaengine uses pkg-config to figure out where fvs.so is and thus the pkg-config directory has to be properly configures in your PKG_CONFIG_PATH

normally this is something like:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig maven build-mediaengine ./work/jakarta/bin/startup-lib.sh maven deploy-mediaengine

and so on... for windows...erm...yeh

Result tables[edit]

Result tables should be temporary, but currently they never go away. Every half hour or so, something needs to go through the result tables, archive the top results, and delete the tables.

Building the Media Engine Problems[edit]

Need a few extra jars, need to modify maven build process: - cp activation.jar work/jakarta-tomcat-5.5.9/webapps/axis/WEB-INF/lib/ - cp mediaengine/work/jakarta-tomcat-5.5.9/webapps/lib/libfvs-jni.dylib lib/ - cp work/jakarta-tomcat-5.5.9/webapps/webapp/WEB-INF/lib/castor-0.9.6-xml.jar work/jakarta-tomcat-5.5.9/webapps/axis/WEB-INF/lib/