Skip Menu |

This queue is for tickets about the Parse-Dia-SQL CPAN distribution.

Report information
The Basics
Id: 47040
Status: resolved
Priority: 0/
Queue: Parse-Dia-SQL

People
Owner: Nobody in particular
Requestors: pierrelouis.morel [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.10
Fixed in: 0.10_01



Subject: Associations are not generated
Hi, thanks for the packaging of tedia2sql on CPAN It seems that Parse::Dia::SQL can't generate association anymore Error message : Use of unitialized value $leftEnd{"role"} in concatenation (.) or string at C:/strawberry/perl/site/lib/Parse/Dia/SQL.pm line 993 with similar message for $rightEnd and $multStr From what I've found : Dia has added elements in the XML describing associations and modified some keywords. "role" seems to have been replaced by "role_a" and "role_b" Parse-Dia-SQL seems unable to generate association from dia files saved by a recent version of dia (tested with 0.96 and 0.97). Using the sample file from tedia2sql : With TestERDuncompressed.dia, association are generated. With TestERDuncompressed_dia097.dia saved on dia 0.97, they're not. Test done on Windows XP SP3, with strawberry perl v5.10.0 built for MSWin32-x86-multi thread Regards,
Subject: TestERDuncompressed.dia
Download TestERDuncompressed.dia
application/dia 159.5k

Message body not shown because it is not plain text.

Subject: TestERDuncompressed_dia097.dia

Message body not shown because it is not plain text.

Thank you for reporting this bug. It does indeed seem that Dia has changed the XML representation for UML associations going from Dia version 0.96 to 0.97, as indicated by the version number change below. Creating two visually identical diagrams in Dia version 0.96 and 0.97 respectively, yields: $ zgrep 'UML - Association' t/data/association_dia_0_96.dia <dia:object type="UML - Association" version="1" id="O2"> $ zgrep 'UML - Association' t/data/association_dia_0_97.dia <dia:object type="UML - Association" version="2" id="O2"> This probably means PDS should be object version aware, for UML associations at least. Use Dia 0.96 or prior until this has been resolved. Best regards, Andreas
Show quoted text
> This probably means PDS should be object version aware, for UML > associations at least. Use Dia 0.96 or prior until this has been
resolved. Show quoted text
> > Best regards, > Andreas
Thanks! (Works in a test file, now I'm back to blamming myself for my problems ^^)
On Wed Jun 17 06:17:30 2009, plcm wrote: Show quoted text
> It seems that Parse::Dia::SQL can't generate association anymore
Please retest Parse-Dia-SQL-0.10_01 with Dia 0.97 and report if it works as you expect. Regards, Andreas --
Le Dim. Jun. 21 09:29:44 2009, AFF a écrit : Show quoted text
> On Wed Jun 17 06:17:30 2009, plcm wrote: >
> > It seems that Parse::Dia::SQL can't generate association anymore
> > Please retest Parse-Dia-SQL-0.10_01 with Dia 0.97 and report if it works > as you expect. > > Regards, > Andreas
Works like a charm. Thank you very much. Regards, Pierre-Louis