Issue 97381

Summary: Insert a new Hyperlink document with illegal character, OOo crashes after applying
Product: General Reporter: amy2008 <amy2008>
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P2 CC: issues, ooo.redflag, peter.junge
Version: DEV300m37   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 84292    

Description amy2008 2008-12-18 06:57:05 UTC
Can reproduce it in Writer Calc Drawing etc. with DEV300m37 on WinXP Ubuntu and 
Fedora.

How to reproduce it 
1 Create a new Writer document (or Calc, Drawing and so on)
2 Insert - HyperLink, HyperLink dialog appears, select 'New Document', 'Edit
  now', slect a path to locate the new link document, then enter some illegal
  characters as the new document name, then hit 'Apply' button
4 Firstly Close HyepLink dialog, secondly click 'OK' on OOo-Dev3.1 dialog, 
  please obey the operate order

Result
After step 3, hyperlink is inserted before or at the same time of 'Apply'
After step 4, OOo crashes

Expectation
After step3, hyperlink shouldn't be inserted. The most important is to check
the name of new document if it is legal, insert hyperlink; if not, rename it 
until the new document name is a legal one, insert hyperlink.
After step4, 'Hyperlink' dialog should be inactive. User just can close 
HyepLink dialog after they click 'OK' on OOo-Dev3.1 dialog.

Regards
Li Meiying
Comment 1 amy2008 2008-12-18 07:34:25 UTC
Please pay attention to this one.

Can reproduce it in Writer Calc Drawing etc. with DEV300m37 on WinXP Ubuntu and 
Fedora.

How to reproduce it 
1 Create a new Writer document (or Calc, Drawing and so on)
2 Insert - HyperLink, HyperLink dialog appears, select 'New Document', 'Edit
  now', slect a path to locate the new link document, then enter some illegal
  characters as the new document name
3 Specify the file type for the new document, e.g. 'Text Document', then 
  click 'Apply' button
4 Firstly Close HyepLink dialog, secondly click 'OK' on OOo-Dev3.1 dialog, 
  please obey the operate order

Result
After step 3, hyperlink is inserted before or at the same time of 'Apply'
After step 4, OOo crashes

Expectation
After step3, hyperlink shouldn't be inserted. The most important is to check
the name of new document if it is legal, insert hyperlink; if not, rename it 
until the new document name is a legal one, insert hyperlink.
After step4, 'Hyperlink' dialog should be inactive. User just can close 
HyepLink dialog after they click 'OK' on OOo-Dev3.1 dialog.

Regards
Li Meiying