Dear Fellow OpenMeetings Developers,
OM version 3.1.5 We are seeking your guidance to resolve an issue with loading a PNG file on to whiteboard by clicking on a CUSTOM NEW TOOL (icon) on the TOOLBAR. Our custom code (i) was working fine in 3.1.2 and 3.0.x. (ii) In 3.1.5, it is giving "Image Deleted" (deleted.jpg) picture on whiteboard. The log shows that: 1. We click on the icon on the toolbar to load the custom file (tool1_icon.png). 2. OM seems to append '.jpg' extension to our custom files. fileName = tool1_icon.png.jpg 3. Hence, these files become not readable. Consequently, OM gives 'deleted.jpg' image. 4. Then, it appends a hash code to the filename: tool1_icon.png1488789132517 With regard to file upload to whiteboard, what has changed between 3.1.2 and 3.1.5? We are using the following code in mainToolsPanel.lzx: canvas._drawarea.parent.parent.clearAreaAndAddImage( 'tool_icon1.png',0,0, canvas.getUrl() + 'DownloadHandler', 'tool_icon1.png', "videoconf1","/","",hib.conferencedomain); Below is our relevant custom code snippet and debug log. Any pointers would help us. Thank you. ------------------- DETAILS ----- OpenMeetings.log: Relevant portion ------ . fileName = tool1_icon.png.jpg DEBUG 03-06 02:32:14.657 DownloadHandler.java 634374 89 org.apache.openmeetings.core.servlet.outputhandler.DownloadHandler [http-nio-<IP-port>-exec-9] - parentPath = / DEBUG 03-06 02:32:14.657 DownloadHandler.java 634374 101 org.apache.openmeetings.core.servlet.outputhandler.DownloadHandler [http-nio-<IP-port>-exec-9] - sid: 1e33dee4-7881-4766-a13a-6aaab133b753 DEBUG 03-06 02:32:14.679 WhiteBoardService.java 634396 390 org.apache.openmeetings.core.remote.WhiteBoardService [RTMPConnectionExecutor-2] - startNewObjectSyncprocess: tool1_icon.png1488789132517 DEBUG 03-06 02:32:14.679 WhiteBoardObjectSyncManager.java 634396 83 org.apache.openmeetings.core.data.whiteboard.WhiteBoardObjectSyncManager [RTMPConnectionExecutor-2] - getWhiteBoardImagesSyncListByRoomAndImageid roomId: 5 DEBUG 03-06 02:32:14.679 WhiteBoardObjectSyncManager.java 634396 86 org.apache.openmeetings.core.data.whiteboard.WhiteBoardObjectSyncManager [RTMPConnectionExecutor-2] - getWhiteBoardImagesSyncListByRoomAndImageid roomList: {} DEBUG 03-06 02:32:14.680 WhiteBoardObjectSyncManager.java 634397 87 org.apache.openmeetings.core.data.whiteboard.WhiteBoardObjectSyncManager [RTMPConnectionExecutor-2] - getWhiteBoardImagesSyncListByRoomAndImageid objectId: tool1_icon.png1488789132517 DEBUG 03-06 02:32:14.681 DownloadHandler.java 634398 176 org.apache.openmeetings.core.servlet.outputhandler.DownloadHandler [http-nio-<IP-port>--exec-9] - requestedFile: tool1_icon.png.jpg current_dir: /usr/local/test/webapps/Test.Dev/upload DEBUG 03-06 02:32:14.682 DownloadHandler.java 634399 185 org.apache.openmeetings.core.servlet.outputhandler.DownloadHandler [http-nio-<IP-port>-exec-9] - LOG DownloadHandler: The request file is not readable DEBUG 03-06 02:32:14.682 DownloadHandler.java 634399 189 org.apache.openmeetings.core.servlet.outputhandler.DownloadHandler [http-nio-<IP-port>-exec-9] - LOG ERROR requestedFile: tool1_icon.png.jpg DEBUG 03-06 02:32:14.682 DownloadHandler.java 634399 193 org.apache.openmeetings.core.servlet.outputhandler.DownloadHandler [http-nio-<IP-port>-exec-9] - LOG endsWith d.jpg DEBUG 03-06 02:32:14.683 DownloadHandler.java 634400 195 org.apache.openmeetings.core.servlet.outputhandler.DownloadHandler [http-nio-<IP-port>-exec-9] - LOG moduleName: videoconf1 DEBUG 03-06 02:32:14.683 DownloadHandler.java 634400 215 org.apache.openmeetings.core.servlet.outputhandler.DownloadHandler [http-nio-<IP-port>--exec-9] - full_path: /usr/local/test/webapps/Test.Dev/default/deleted.jpg DEBUG 03-06 02:32:14.683 DownloadHandler.java 634400 240 org.apache.openmeetings.core.servlet.outputhandler.DownloadHandler [http-nio-<IP-port>-exec-9] - Detected browser type:0 DEBUG 03-06 02:32:14.684 OmFileHelper.java 634401 358 org.apache.openmeetings.util.OmFileHelper [http-nio-<IP-port>-exec-9] - File copied. DEBUG 03-06 02:32:14.716 WhiteBoardService.java 634433 418 org.apache.openmeetings.core.remote.WhiteBoardService [RTMPConnectionExecutor-3] - sendCompletedObjectSyncEvent: tool1_icon.png1488789132517 DEBUG 03-06 02:32:14.716 WhiteBoardObjectSyncManager.java 634433 83 org.apache.openmeetings.core.data.whiteboard.WhiteBoardObjectSyncManager [RTMPConnectionExecutor-3] - getWhiteBoardImagesSyncListByRoomAndImageid roomId: 5 DEBUG 03-06 02:32:14.716 WhiteBoardObjectSyncManager.java 634433 86 org.apache.openmeetings.core.data.whiteboard.WhiteBoardObjectSyncManager [RTMPConnectionExecutor-3] - getWhiteBoardImagesSyncListByRoomAndImageid roomList: { tool1_icon.png1488789132517={096ee278-9017-4210-be93-200232b11359=org.apache .openmeetings.db.dto.room.WhiteboardSyncLockObject@2e918076}} DEBUG 03-06 02:32:14.717 WhiteBoardObjectSyncManager.java 634434 87 org.apache.openmeetings.core.data.whiteboard.WhiteBoardObjectSyncManager [RTMPConnectionExecutor-3] - getWhiteBoardImagesSyncListByRoomAndImageid objectId: tool1_icon.png1488789132517 DEBUG 03-06 02:32:14.717 WhiteBoardObjectSyncManager.java 634434 89 org.apache.openmeetings.core.data.whiteboard.WhiteBoardObjectSyncManager [RTMPConnectionExecutor-3] - getWhiteBoardImagesSyncListByRoomAndImageid roomList Key imageId: tool1_icon.png1488789132517 DEBUG 03-06 02:32:14.717 WhiteBoardService.java 634434 427 org.apache.openmeetings.core.remote.WhiteBoardService [RTMPConnectionExecutor-3] - sendCompletedObjectSyncEvent syncListImage: {096ee278-9017-4210-be93-200232b11359=org.apache.openmeetings.db.dto.room.Wh iteboardSyncLockObject@2e918076} DEBUG 03-06 02:32:14.717 WhiteBoardService.java 634434 436 org.apache.openmeetings.core.remote.WhiteBoardService [RTMPConnectionExecutor-3] - sendCompletedImagesSyncEvent remove: 096ee278-9017-4210-be93-200232b11359 DEBUG 03-06 02:32:14.717 WhiteBoardService.java 634434 443 org.apache.openmeetings.core.remote.WhiteBoardService [RTMPConnectionExecutor-3] - sendCompletedImagesSyncEvent numberOfInitial: 0 DEBUG 03-06 02:32:14.735 WhiteboardManager.java 634452 42 org.apache.openmeetings.core.data.whiteboard.WhiteboardManager [RTMPConnectionExecutor-4] - addWhiteBoardObjectById: DEBUG 03-06 02:32:14.736 WhiteboardManager.java 634453 46 org.apache.openmeetings.core.data.whiteboard.WhiteboardManager [RTMPConnectionExecutor-4] - action: draw DEBUG 03-06 02:32:14.736 WhiteboardManager.java 634453 47 org.apache.openmeetings.core.data.whiteboard.WhiteboardManager [RTMPConnectionExecutor-4] - actionObject: [image, http://<IP-Port>/Test.Dev/DownloadHandler?fileName=tool1_icon.png.jpg&module Name=videoconf1&parentPath=%2F&room_id=&sid=1e33dee4-7881-4766-a13a-6aaab133 b753, http:// <IP-port>-/CoscendCC.Test.Dev/DownloadHandler, tool1_icon.png, videoconf1, /, , public, tool1_icon.png1488789132517, 1, null, 0, 0, 0, 100, 80, image_1488789132517] DEBUG 03-06 02:32:14.736 WhiteboardManager.java 634453 67 org.apache.openmeetings.core.data.whiteboard.WhiteboardManager [RTMPConnectionExecutor-4] - objectOID: image_1488789132517 ---------------- Customization Steps and custom code ---------------- Step 1: Create onclick event for a custom toolbar icon to load the tool_icon1.png file File: mainToolsPanel.lzx ICON to load tool_icon1.png file on to whiteboard <mainToolsPanelItem name="tool_icon1" modi="tool_icon1" labelid="2105" width="32" height="28" resourceItem=" tool_icon1_rsc" > <handler name="onclick"> canvas._drawarea.parent.parent.clearAreaAndAddImage( 'tool_icon1.png',0,0, canvas.getUrl() + 'DownloadHandler', 'tool_icon1.png', "videoconf1","/","",hib.conferencedomain); </handler> <labelTooltip labelid="2105" /> </mainToolsPanelItem> <class name="hcareToolsTopPanel" extends="baseTopPanel" . <horizontalHCareMenuIconBar name="_horizontalhcareTools" x="20" y="4" /> </class> Step 2: place the custom icon on toolbar on the whiteboard. File: fixedFileExplorer.lzx Thank you. Sincerely, Hemant K. Sabat Coscend Communications Solutions Web site: <http://www.coscend.com/> www.Coscend.com ------------------------------------------------------------------ Real-time, Interactive Video Collaboration, Tele-healthcare, Tele-education, Telepresence Services, on the fly. ------------------------------------------------------------------ CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail Messages from Coscend Communications Solutions' posted at: <http://www.coscend.com/Terms_and_Conditions.html> http://www.Coscend.com/Terms_and_Conditions.html