Bug 518539 - Wrong image file path in <image> tag
Summary: Wrong image file path in <image> tag
Status: UNCONFIRMED
Alias: None
Product: Gendoc
Classification: Modeling
Component: Core (show other bugs)
Version: 0.6.0   Edit
Hardware: PC Linux
: P3 normal
Target Milestone: 0.5.1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-20 20:29 EDT by Nicholas Kong CLA
Modified: 2017-06-27 04:58 EDT (History)
1 user (show)

See Also:


Attachments
Gendoc Error (44.86 KB, image/jpeg)
2017-06-20 20:29 EDT, Nicholas Kong CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Kong CLA 2017-06-20 20:29:37 EDT
Created attachment 268991 [details]
Gendoc Error

If the image file path is wrong, or the image does not exist. Gendoc will throw an exception, the description as follow. 
‘An image cannot be generated and has been replacing by a red cross…’

Example:
<image filePath=’${project_loc}/abc1.jpg’ maxH='true' maxW='true'><drop/>
The abc1.jpg does not exist in the project folder.

After click OK button, the odt file has been created in the target folder. But if we click this generated file, LibreOffice will give a warning: ‘General input/output error’
.
If we repair this document, the image doesn’t have been replaced by a red cross.
Comment 1 Nicholas Kong CLA 2017-06-20 20:49:54 EDT
OS:
RedHat 6.5 64bits (Santiago)

Plafform:
Eclipse Neon 4.6.3M20170301-0400
Comment 2 Nicholas Kong CLA 2017-06-21 21:49:19 EDT
I use the odt file as template, and use Libre Office to open the generated file.
Comment 3 BACH TOBJI Mohamed Ali CLA 2017-06-27 04:58:17 EDT
(In reply to Nicholas Kong from comment #2)
> I use the odt file as template, and use Libre Office to open the generated
> file.

Hi Nicholas,

Thank you for noticing that. In fact if the image doesn't exist there is no red cross inserted instead, the error message should be updated.

Regards,

Mohamed Ali