Issue 116025

Summary: Assertion: Error: Unacceptable parameters are provided in Save request!
Product: General Reporter: 400guy <tenger>
Component: codeAssignee: Mathias_Bauer
Status: CLOSED FIXED QA Contact: issues@framework <issues>
Severity: Trivial    
Priority: P3 CC: frank.schoenheit, issues, Mathias_Bauer, mikhail.voytenko, rb.henschel
Version: DEV300m95Keywords: regression
Target Milestone: ---   
Hardware: PC   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
suggested patch none

Description 400guy 2010-12-10 00:30:54 UTC
I am running a non-product build of DEV300_m95.


To provoke the assertion ...

(*) At welcome center, type alt-D to create a Text Document.  Program displays
blank document Untitled 1.

(*) Take menu options File > Save as.  Program opens dialog Save As.

(*) Type File name /tmp/a3, select file type Microsoft Word 6.0 (.doc) from the
dropdown list, leave Automatic file name extension checked, and click Save. 
Program presents the familiar warning "This document may contain formatting or
content that cannot be saved in the Microsoft Word 6.0 file format ..."

(*) Click Keep Current Format.  Program displays empty document a3.doc; the Save
icon in the toolbar is greyed.

(*) Type "a".  The program displays the typed character in the document and
ungreys the Save icon.

(*) Click the save icon in the toolbar.  Program presents Debug Output ...

        Error: Unacceptable parameters are provided in Save request!

        From File /home/terry/OOo_hacking/SRC_DIR/sfx2/source/doc/guisaveas.cxx
at Line 695
        Abort ? (Yes=abort / No=ignore / Cancel=core dump)
Comment 1 400guy 2010-12-14 19:13:36 UTC
It happened to me again, from Calc and saving in the default (.ods) format. 
From some small experiments, I think that the program raises the assertion after
I do "Save as ..." before doing anything else to the document.
Comment 2 Regina Henschel 2010-12-20 22:37:58 UTC
I get the same error, when saving in Draw, not 'saving as' but 'saving' via icon
in the standard toolbar. DEV300m95 on WinXP.
Comment 3 Frank Schönheit 2011-01-05 13:40:49 UTC
*** Issue 116312 has been marked as a duplicate of this issue. ***
Comment 4 Frank Schönheit 2011-01-05 13:41:06 UTC
transfering target from the duplicate issue 116312
Comment 5 Frank Schönheit 2011-01-05 13:41:35 UTC
now really
Comment 6 mikhail.voytenko 2011-01-05 14:07:42 UTC
Looks to be my area, taking the issue over.
Comment 7 Martin Hollmichel 2011-03-15 21:04:02 UTC
set target to 3.x since not release relevant for 3.4 release.
Comment 8 Mathias_Bauer 2011-03-31 06:38:18 UTC
The reason is a typo in appuno.cxx
I just found it by accident. I'll fix it in my current CWS.
Comment 9 Frank Schönheit 2011-03-31 06:44:40 UTC
fs->mba: Please kindly put a pointer to the fix here, then. This thing is annoying, I'd like to transplant it to my CWS'es ... Thanks.
Comment 10 Mathias_Bauer 2011-04-06 07:51:03 UTC
Created attachment 76281 [details]
suggested patch
Comment 11 Mathias_Bauer 2011-04-06 08:23:17 UTC
The assertion was caused by a typo in appuno.cxx (superfluous line) as well as by a missing treatment of the SID_FAIL_ON_WARNING item.
Comment 12 Mathias_Bauer 2011-04-06 08:25:14 UTC
@mav: please review
Comment 13 mikhail.voytenko 2011-04-06 09:10:11 UTC
The patch looks good.