Issue 77861 - RPT: Crash when executing report bound to non-existent table/query, and having groups
Summary: RPT: Crash when executing report bound to non-existent table/query, and havin...
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: recent-trunk
Hardware: All Windows XP
: P2 Trivial (vote)
Target Milestone: OOo 2.3
Assignee: marc.neumann
QA Contact: issues@dba
URL:
Keywords: new_implementation, oooqa
Depends on:
Blocks:
 
Reported: 2007-05-27 23:53 UTC by Regina Henschel
Modified: 2007-09-28 04:07 UTC (History)
1 user (show)

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


Attachments
database with crashing report "Join" (49.26 KB, application/vnd.sun.xml.base)
2007-05-27 23:54 UTC, Regina Henschel
no flags Details
stripped-down version to reproduce the crash (4.61 KB, application/vnd.sun.xml.base)
2007-05-29 14:39 UTC, Frank Schönheit
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Regina Henschel 2007-05-27 23:53:06 UTC
Open the attached database document.
Open report "Join" in edit mode.
Goto report property.
Make sure that in tab data the type SQL is choosen. It might be changed by
document recovery.
The SQL is:
SELECT * FROM "Landessprache" AS "Landessprache" INNER JOIN "Länder" AS "Länder"
ON "Landessprache"."Land" = "Länder"."Code" INNER JOIN "Sprachen" AS "Sprachen"
ON "Landessprache"."Sprache"="Sprachen"."Kurz"

Run that report. Crash.
The same SQL statement works as query. Do not use the query design mode, because
it changes INNER JOIN to WHERE.
Comment 1 Regina Henschel 2007-05-27 23:54:35 UTC
Created attachment 45446 [details]
database with crashing report "Join"
Comment 2 Regina Henschel 2007-05-27 23:55:48 UTC
The ID of the error report is rw33pc.

Comment 3 marc.neumann 2007-05-29 09:18:03 UTC
confirm and reassign to the right developer
Comment 4 Frank Schönheit 2007-05-29 11:57:15 UTC
submitted issue 77892 for the "Content type" being reset to "Table" all the time ...
Comment 5 Frank Schönheit 2007-05-29 13:59:06 UTC
hmm, cannot reproduce the crash ...
Comment 6 Frank Schönheit 2007-05-29 14:16:47 UTC
hmm - Marc showed me that he indeed did a modified version of this issue ...
If you do *not* change the "Content type" to "SQL command", but execute the
report without changing any properties, then it in fact crashes.

Regina, can you please confirm that for you, it crashes *after* you changed the
"Content type" to "SQL command"? If so, did you save before executing the report?
Comment 7 Frank Schönheit 2007-05-29 14:29:41 UTC
investigating this further, it seems to boil down to: If the report is bound to
a non-existent table or query,  or a statement which cannot properly be
executed, *and* contains at least one group, then executing it crashes.
Comment 8 Frank Schönheit 2007-05-29 14:31:21 UTC
grabbing
Comment 9 Frank Schönheit 2007-05-29 14:39:44 UTC
Created attachment 45486 [details]
stripped-down version to reproduce the crash
Comment 10 Frank Schönheit 2007-05-29 14:46:30 UTC
I checked in a fix for the crash when executing the report *without* changing
the "Content type" to "SQL command". Waiting for feedback from regina whether
her crash really happened after doing this property change.
Comment 11 Frank Schönheit 2007-05-29 14:56:38 UTC
The Report Designer iTeam decided that this issue is a show stopper for the
release of the report designer. Targeting to 2.3, thus.
Comment 12 Regina Henschel 2007-05-29 15:16:41 UTC
I change content type to SQL and insert the SQL-command. If I then execute the
report directly, it will not crash. I tested it with execution immediately after
inserting the SQL-command and after clicking the save-icon in the designer.

But when I close the designer then and execute the report by doublclick or
"open", then it crashes.
Comment 13 Regina Henschel 2007-05-29 15:34:59 UTC
Addition: I tried it with after saving in the base document window and with
before saving in the base document window. Crashes both.

When you have entered the SQL-command, make sure that the changes are applied.
If your cursor is still in the field it is not applied, but you must click for
example the "Allgemein" tab of the property dialog or hit Enter.
Comment 14 Frank Schönheit 2007-05-29 19:43:03 UTC
okay - this means we talk about the same bug.

When you change the properties and execute from within the designer, then the
changed properties are applied, which do not crash.

When you save and close the report, and execute it by double-clicking, then your
changes are *not* applied (this is issue 77892), and thus the report is executed
with the old settings - which crash.

Changing summary to reflect this, and setting to FIXED.

Thanks for the feedback.
Comment 15 Frank Schönheit 2007-06-12 14:25:00 UTC
fs-> msc: please verify in CWS oj14 build 0.4.0
Comment 16 marc.neumann 2007-06-14 09:50:33 UTC
verified in CWS oj14 version 0.4.0
Comment 17 drewjensen.inbox 2007-09-28 04:07:45 UTC
Tested w/ XP, OOo 2.3 Stable, SRB 1.0.1

Executing now displays error dialog, with correct error statement that table can
not be found