Community
Participate
Working Groups
I am trying to import a set of SML files using the attached smlif content. The SMLIF file is in the TestFolder folder In the import wizard, select TestFolder/SML as the location for the SML files. Nothing happens Try agai to import and use the wizard defaults. The SML files are generated but the folder structure is not what I want to see. I get a 'none' as the name of folder containing the instances and the rules are created under the TestFolder
Created attachment 60763 [details] smlif file
Cannot be contained in i3; moving to i4
Yes it appears what is happening is that it's using the baseURI from the SML-IF file and appending the document alias to create the file names of the SML model units. It must be assuming that the baseURI has an ending slash, since it's creating top level documents as: TestFolder/SML/noneDatabaseServerRules TestFolder/SML/nonedefinition33940.xsd TestFolder/SML/nonedefinition33941.xsd TestFolder/SML/noneUserUnitRules I can't recreate the first scenario you mentioned, Valentina... this is probably due to fixing bug 186480. However, the scenario I'm seeing is probably as you described in the 2nd part, which is we aren't appending a slash to baseURI if it isn't already there.
moving target to i8
we are deferring these to our bug triage iteration (i11)
Created attachment 99136 [details] smlif file updated with new namespace URI
The problem was our logic to generate a file name based on an SML document's namespace. We would take the last token, splitting the namespace at non word characters (\W). This resulted in namespaces that ended in "/1.0.0" attempting to use a prefix of "0" on generated file names, and the Java support for generating temp file names expects prefixes to have at least 3 characters. I changed the split to use the characters [/:] instead, because I believe that was the original intent. Now namespaces ending in 1.0.0 will result in files named like this: 1.0.0_12345.xsd. Along the way I made some improvements to our error handling and presentation in the import dialog.
closing to cleanup bugzilla