Issue 7090 - Error Saving HTML Document with Black Cloth Background
Summary: Error Saving HTML Document with Black Cloth Background
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: ucb
Classification: Code
Component: code (show other issues)
Version: OOo 1.0.1
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Unknown
QA Contact: issues@ucb
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2002-08-18 14:36 UTC by Unknown
Modified: 2002-11-19 21:07 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Example file that would not save (2.10 KB, application/octet-stream)
2002-08-19 13:57 UTC, Unknown
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-08-18 14:36:42 UTC
Howdy,

When saving a fixed width, two column HTML Document with Black Cloth Background, the 
initial save works OK, but follow-on saves yield the following error:

"Error saving the 
document test.html
Basic runtime error.
an exception occurred.
Type 
com.sun.ucb.ContentCreationException
Message: No Content!

the file updates 
properly.

Other backgrounds do not seem to cause this error.

The highlighted code in the 
error window seems to be focused on the following function, pointing to the Ucb.Copy 
string.

Function CopyFile(ByVal SourceUrl as String, TargetDir as String)
Dim 
sFileName as String
Dim sNewFileUrl as String
	sFileName = 
FileNameoutofPath(SourceUrl)
	sNewFileUrl = TargetDir & sFileName
-
>	oUcb.Copy(SourceUrl, sNewFileUrl)
	CopyFile() = sFileName
End 
Function

Regards,
Jim
Comment 1 prgmgr 2002-08-19 05:21:44 UTC
Thanks for posting Jim.

Could you please attach the HTML file ( please zip it up first! ) 
that we can use to reproduce this problem?

Thanks.
Comment 2 Unknown 2002-08-19 13:57:40 UTC
Created attachment 2542 [details]
Example file that would not save
Comment 3 prgmgr 2002-09-04 04:29:35 UTC
Thanks Jim for the file.

Do you have a copy of the background that causes this error?

Could you please attach it to this issue?
Comment 4 kai.sommerfeld 2002-09-04 08:14:17 UTC
Jim, could you please provide the values of SourceUrl, TargetDir,
sFileName, sNewFileUrl. The message of the exception thrown might be
hint for a malformed URL.

I reduced your problem to the following two lines of code and it works
fine for me, even if called multiple times.

oUcb = createUnoService( "com.sun.star.ucb.SimpleFileAccess" )
oUcb.copy( "file:///d:/temp.html", "file:///d:/wine%20tasting.html" )
Comment 5 matthias.huetsch 2002-11-19 21:04:29 UTC
Hi Jim,

having not heard anything back from you since quite some time, I'm now
resolving this issue as 'works for me', reassign it to you, and will
close it.

You're free to reopen this issue any time you like, if you don't agree
or have more input to resolve it otherwise.

Regards,
Matthias
Comment 6 matthias.huetsch 2002-11-19 21:06:06 UTC
Reopening for reassignment (when will I ever learn...)
Comment 7 matthias.huetsch 2002-11-19 21:06:57 UTC
Reassigning to submitter...
Comment 8 matthias.huetsch 2002-11-19 21:07:34 UTC
Resolving as 'works for me'...
Comment 9 matthias.huetsch 2002-11-19 21:07:58 UTC
Closing...