Issue 127725

Summary: Wrong XML attribute "table:table-name", should be "table:database-table-name"
Product: Calc Reporter: Andreas Säger <villeroy>
Component: editingAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Normal    
Priority: P5 (lowest)    
Version: 4.1.5   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Andreas Säger 2018-03-04 12:30:36 UTC
When you drag the Bibliography.biblio table into a sheet, you get a database-range entry in content.xml

<table:database-ranges>
    <table:database-range table:name="Import1" table:target-range-address="Sheet1.A1:Sheet1.AE60">
        <table:database-source-table table:database-name="Bibliography" table:table-name="biblio"/>
    </table:database-range>
</table:database-ranges>

LibreOffice creates this:
<table:database-ranges>
    <table:database-range table:name="Import1" table:target-range-address="Sheet1.A1:Sheet1.AE21">
        <table:database-source-table table:database-name="Bibliography" table:database-table-name="biblio"/>
    </table:database-range>
</table:database-ranges>

Apart from the range-address, it refers to a "table:database-table-name" instead of a "table:table-name".

"table:database-table-name" is the attribute which is documented in OpenDocument-v1.2.

LibreOffice handles the incorrect attribute and changes it to the correct one. 
OpenOffice does not handle the correct attribute and complains about a empty table name when refreshing the import range via menu:Data>Refresh.