Bug 144529 - Double ListBox dlg:selected attribute corrupts xdl dialog
Summary: Double ListBox dlg:selected attribute corrupts xdl dialog
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.1.5.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-16 07:18 UTC by bughugger
Modified: 2022-12-07 03:22 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bughugger 2021-09-16 07:18:27 UTC
After creating a dialog in the Basic editor and closing I was not able to reopen the dialog for editing. Got an error message instead:
"Fehler beim Laden von BASIC im Dokument file:///C:/Users/.../LibreOffice/4/user/basic/Standard/BookEntryDlg.xdl:
Allgemeiner Fehler.
Allgemeiner Ein-/Ausgabefehler."
The editor then opened but without any dialog visible in the editor.
Having a closer look at the xdl I found double entries for the dlg:selected property of two ListBox controls. Both controls have manually entered value lists (dlg:menuitems) and I have selected the first value as default in the IDE. See below for code snippet. After removing the duplicate properties manually in a text editor I can open the dialog without any issues.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="BookEntryDlg" dlg:left="180" dlg:top="90" dlg:width="304" dlg:height="154" dlg:closeable="true" dlg:moveable="true" dlg:title="qwertz">
 <dlg:bulletinboard>
  <dlg:menulist dlg:id="ListBox_CCY" dlg:tab-index="5" dlg:left="27" dlg:top="49" dlg:width="38" dlg:height="13" dlg:spin="true" dlg:linecount="4">
   <dlg:menupopup>
    <dlg:menuitem dlg:value="CHF" dlg:selected="true" dlg:selected="true"/>
    <dlg:menuitem dlg:value="EUR"/>
    <dlg:menuitem dlg:value="USD"/>
    <dlg:menuitem dlg:value="GBP"/>
   </dlg:menupopup>
  </dlg:menulist>
  <dlg:menulist dlg:id="ListBox_VAT" dlg:tab-index="7" dlg:disabled="true" dlg:left="207" dlg:top="49" dlg:width="40" dlg:height="13" dlg:spin="true">
   <dlg:menupopup>
    <dlg:menuitem dlg:value="7.7" dlg:selected="true" dlg:selected="true"/>
    <dlg:menuitem dlg:value="3.7"/>
    <dlg:menuitem dlg:value="2.5"/>
   </dlg:menupopup>
  </dlg:menulist>
  ...
  ...
 </dlg:bulletinboard>
</dlg:window>
Comment 1 Andreas Heinisch 2022-05-07 14:07:11 UTC
May you attach a sample dialog or step by step instructions. I could not reproduce the error.
Comment 2 QA Administrators 2022-11-05 03:36:15 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2022-12-07 03:22:35 UTC
Dear bughugger,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp