Dear Maxim,
We uploaded the following 2 files:
Case A: SWF
Case B: PDF
The SWF file does not appear in file explorer and whiteboard but it does
not show any error in log output.
The PDF file shows up in file explorer and whiteboard. There is a call
to downloadHandler. Is there a possible call that should take place
after "END generateBatchThumbByWidth" stage, for the SWF case as well?
Below is the log output for both cases.
A. SWF File
DEBUG 05-19 06:53:03.519 UploadController.java 246169 110
org.apache.openmeetings.servlet.outputhandler.UploadController
[http-nio-10.10.10.51-6060-exec-10] - fileSystemName: ABC.swf
DEBUG 05-19 06:53:03.520 FileProcessor.java 246170 76
org.apache.openmeetings.data.file.FileProcessor
[http-nio-10.10.10.51-6060-exec-10] - newFileExt: swf
DEBUG 05-19 06:53:03.522 FileProcessor.java 246172 89
org.apache.openmeetings.data.file.FileProcessor
[http-nio-10.10.10.51-6060-exec-10] - isAsIs: true
DEBUG 05-19 06:53:03.522 FileProcessor.java 246172 101
org.apache.openmeetings.data.file.FileProcessor
[http-nio-10.10.10.51-6060-exec-10] - writing file to:
/usr/local/<OMDIR>/dist/red5/webapps/<OMINSTANCE>/upload/files/65173cd61122f94af037e9d7990669d0.swf
DEBUG 05-19 06:53:03.543 FileExplorerItemDao.java 246193 54
org.apache.openmeetings.db.dao.file.FileExplorerItemDao
[http-nio-10.10.10.51-6060-exec-10] - .add(): adding file ABC.swf roomID: 2
DEBUG 05-19 06:53:03.549 FileExplorerItemDao.java 246199 78
org.apache.openmeetings.db.dao.file.FileExplorerItemDao
[http-nio-10.10.10.51-6060-exec-10] - .add(): file ABC.swf added as 93
DEBUG 05-19 06:53:03.556 FileProcessor.java 246206 142
org.apache.openmeetings.data.file.FileProcessor
[http-nio-10.10.10.51-6060-exec-10] - fileExplorerItemId: 93
DEBUG 05-19 06:53:03.556 FileProcessor.java 246206 146
org.apache.openmeetings.data.file.FileProcessor
[http-nio-10.10.10.51-6060-exec-10] - canBeConverted: false
DEBUG 05-19 06:53:03.557 GenerateThumbs.java 246207 35
org.apache.openmeetings.converter.GenerateThumbs
[http-nio-10.10.10.51-6060-exec-10] - generateThumb
DEBUG 05-19 06:53:03.561 ProcessHelper.java 246211 104
org.apache.openmeetings.util.process.ProcessHelper
[http-nio-10.10.10.51-6060-exec-10] - START generateBatchThumbByWidth
#################
DEBUG 05-19 06:53:03.561 ProcessHelper.java 246211 105
org.apache.openmeetings.util.process.ProcessHelper
[http-nio-10.10.10.51-6060-exec-10] -
/usr/lib64/ImageMagick-6.7.8/convert -thumbnail 50x50
/usr/local/<OMDIR>/dist/red5/webapps/<OMINSTANCE>/upload/files/65173cd61122f94af037e9d7990669d0.swf
/usr/local/<OMDIR>/dist/red5/webapps/<OMINSTANCE>/upload/files/_thumb_65173cd61122f94af037e9d7990669d0.swf
DEBUG 05-19 06:53:03.779 ProcessHelper.java 246429 153
org.apache.openmeetings.util.process.ProcessHelper
[http-nio-10.10.10.51-6060-exec-10] - exitVal: 1
DEBUG 05-19 06:53:03.780 ProcessHelper.java 246430 111
org.apache.openmeetings.util.process.ProcessHelper
[http-nio-10.10.10.51-6060-exec-10] - END generateBatchThumbByWidth
#################
DEBUG 05-19 06:53:05.447 AuthLevelUtil.java 248097 36
org.apache.openmeetings.util.AuthLevelUtil
[http-nio-10.10.10.51-6060-exec-1] - Level Room :: [GRANTED]
DEBUG 05-19 06:53:05.447 FileWebService.java 248097 672
org.apache.openmeetings.axis.services.FileWebService
[http-nio-10.10.10.51-6060-exec-1] - room_id 2
DEBUG 05-19 06:53:05.448 FileExplorerItemDao.java 248098 150
org.apache.openmeetings.db.dao.file.FileExplorerItemDao
[http-nio-10.10.10.51-6060-exec-1] - .getFileExplorerItemsByOwner() started
DEBUG 05-19 06:53:05.460 FileExplorerItemDao.java 248110 124
org.apache.openmeetings.db.dao.file.FileExplorerItemDao
[http-nio-10.10.10.51-6060-exec-1] - getFileExplorerItemsByRoom room_id :: 2
DEBUG 05-19 06:53:05.475 FileWebService.java 248125 699
org.apache.openmeetings.axis.services.FileWebService
[http-nio-10.10.10.51-6060-exec-1] - FileExplorerItem rList XYZ.swf
DEBUG 05-19 06:53:05.475 FileUtils.java 248125 73
org.apache.openmeetings.data.file.FileProcessor
[http-nio-10.10.10.51-6060-exec-1] - calling [1]
FileExplorerItemDaoImpl.updateFileOrFolder()
DEBUG 05-19 06:53:05.476 FileExplorerItemDao.java 248126 356
org.apache.openmeetings.db.dao.file.FileExplorerItemDao
[http-nio-10.10.10.51-6060-exec-1] - .updateFileOrFolder() started
DEBUG 05-19 06:53:05.477 FileExplorerItemDao.java 248127 175
org.apache.openmeetings.db.dao.file.FileExplorerItemDao
[http-nio-10.10.10.51-6060-exec-1] - .getFileExplorerItemsByParent() started
DEBUG 05-19 06:53:05.486 FileWebService.java 248136 699
org.apache.openmeetings.axis.services.FileWebService
[http-nio-10.10.10.51-6060-exec-1] - FileExplorerItem rList ABC.swf
DEBUG 05-19 06:53:05.486 FileUtils.java 248136 73
org.apache.openmeetings.data.file.FileProcessor
[http-nio-10.10.10.51-6060-exec-1] - calling [1]
FileExplorerItemDaoImpl.updateFileOrFolder()
DEBUG 05-19 06:53:05.487 FileExplorerItemDao.java 248137 356
org.apache.openmeetings.db.dao.file.FileExplorerItemDao
[http-nio-10.10.10.51-6060-exec-1] - .updateFileOrFolder() started
DEBUG 05-19 06:53:05.487 FileExplorerItemDao.java 248137 175
org.apache.openmeetings.db.dao.file.FileExplorerItemDao
[http-nio-10.10.10.51-6060-exec-1] - .getFileExplorerItemsByParent() started
DEBUG 05-19 06:53:05.489 FileWebService.java 248139 699
org.apache.openmeetings.axis.services.FileWebService
[http-nio-10.10.10.51-6060-exec-1] - FileExplorerItem rList ABC.swf
DEBUG 05-19 06:53:05.490 FileUtils.java 248140 73
org.apache.openmeetings.data.file.FileProcessor
[http-nio-10.10.10.51-6060-exec-1] - calling [1]
FileExplorerItemDaoImpl.updateFileOrFolder()
DEBUG 05-19 06:53:05.490 FileExplorerItemDao.java 248140 356
org.apache.openmeetings.db.dao.file.FileExplorerItemDao
[http-nio-10.10.10.51-6060-exec-1] - .updateFileOrFolder() started
DEBUG 05-19 06:53:05.491 FileExplorerItemDao.java 248141 175
org.apache.openmeetings.db.dao.file.FileExplorerItemDao
[http-nio-10.10.10.51-6060-exec-1] - .getFileExplorerItemsByParent() started
== == == ==
B. FOR PDF the following additional calls take place:
ProcessHelper.java - START generateSwf #################
ProcessHelper.java - /usr/local/swftools-0.9.2/pdf2swf -s insertstop -s
poly2bitmap -i -j 85 -s zoom=100
/usr/local/<OMDIR>/dist/red5/webapps/<OMINSTANCE>/uploadtemp/files/8d5dd39cccfe4b3ac43eca05e16aa984.pdf
/usr/local/<OMDIR>/dist/red5/webapps/<OMINSTANCE>/upload/files/8d5dd39cccfe4b3ac43eca05e16aa984/8d5dd39cccfe4b3ac43eca05e16aa984.swf
ProcessHelper.java - exitVal: 0
ProcessHelper.java - END generateSwf #################
DownloadHandler.java - query =
fileName=8d5dd39cccfe4b3ac43eca05e16aa984%2Eswf&moduleName=videoconf1&parentPath=%2F8d5dd39cccfe4b3ac43eca05e16aa984%2F&room_id=files&sid=3883b789f50d2e4b73e69e72cf77399e
--
Regards,
Susheel Jalali
Coscend Communications Solutions
www.Coscend.com
----------------------------------------------------------------
CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail
Messages from Coscend Communications Solutions' posted at:
http://www.Coscend.com/Terms_and_Conditions.html
On 05/14/16 13:23, Maxim Solodovnik wrote:
However, file explorer does not show this SWF filename
File explorer display files available via REST API
Could you check if your new files are available via REST API?
http://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/FileWebService.html#getRoomByParent(java.lang.String,%20long,%20long)
if not you can debug FileWebService
If it is available you need to check baseFileExplorerItem.lzx and
investigate what is wrong
On Fri, May 13, 2016 at 12:42 AM, Susheel Jalali <[email protected]
wrote:
Hello Maxim,
We appreciate any insight or pointer on this issue. There is no error
popup or error dialog shown. The SWF file gets loaded to "upload/files"
directory but not appearing in Files section of Room, nor in whiteboard.
(Details below).
Thank you.
--
Regards,
Susheel Jalali
Coscend Communications Solutions
www.Coscend.com
----------------------------------------------------------------
CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail
Messages from Coscend Communications Solutions' posted at:
http://www.Coscend.com/Terms_and_Conditions.html
On 04/30/16 02:56, Maxim Solodovnik wrote:
Hello Susheel,
I will answer you after May 9
It is public holidays here in Russia and I'm going to have mountain trip
:)
WBR, Maxim
(from mobile, sorry for the typos)
On Apr 30, 2016 01:22, "Susheel Jalali" <[email protected]>
wrote:
Dear Maxim,
Thank you for pointing us to StoredFile.java
The ./upload/files/OUR_UPLOADED_SWF_FILENAME.swf appears (the name is in
hash format)
However, file explorer does not show this SWF filename, and whiteboard
does not display it on direct upload to it.
PDF and image files are being uploaded and displayed in the File Explorer
as well as in whiteboard
Which other files (e.g. fileUpload.java or UploadController.java) do we
need to modify, to eliminate this SWF file upload error?
In UploadController.java, there is a commented out line of code. Is this
relevant?
// Flash cannot read the response of an upload
// httpServletResponse.getWriter().print(returnError);
--
Regards,
Susheel Jalali
Coscend Communications Solutions
www.Coscend.com
----------------------------------------------------------------
CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail
Messages from Coscend Communications Solutions' posted at:
http://www.Coscend.com/Terms_and_Conditions.html
On 04/25/16 19:09, Maxim Solodovnik wrote:
You need to add swf to StoredFile.java
I believe swf files are blocked due to it might be security hole
On Mon, Apr 25, 2016 at 7:33 PM, Susheel Jalali <
[email protected]>
wrote:
Dear OpenMeetings Developers,
We want to upload SWF files to file explorer and display on whiteboard,
but the upload is failing with HTTP 500 Error.
However, all the other formats (PPT, PDF, DOC, PNG and other image
formats) are getting uploaded, and also displayed on whiteboard.
We appreciate any pointer to help with this.
Details:
-------
Do we need to modify any program code (e.g. uploadWindowExplorer.lzx,
fileUpload.lzx or other) ?
For example, code to skip any file-type-verification or OO / Jod/
conversion calls in the case where the file being uploaded is already
in
SWF format.
We noticed that "*.swf" is not mentioned in the lists of file types
that
are setup in the "browse" method in "fileUpload.lzx",
Does this issue need addition of lines for SWF, like:
, swfExt = "*.swf"
. . .
, imgExt = <existing list> + ";" + swfExt;
. . OR . .
allExt = <existing list> + ";" + swfExt;
PS. Could not find related question/answer in past email archives; the
closest came to:
code.google.com/archive/p/openmeetings/issues/370 and 371,
but those deal with OpenOffice or JOD converter topics, after
successful
upload.
--
Sincerely,
Susheel Jalali
Coscend Communications Solutions
www.Coscend.com
----------------------------------------------------------------
CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail
Messages from Coscend Communications Solutions' posted at:
http://www.Coscend.com/Terms_and_Conditions.html