Bug #5142
closed
comma improperly inserted in kar filename rather than a period (.)
Added by Matt Jones over 14 years ago.
Updated over 12 years ago.
Description
When KAR files are saved, with a name such as "foo.kar", then show up incorrectly in the kepler component pane with a comma in the name rather than the period (e.g., it becomes "foo,kar". KAR files should be saved with the normal period as the extension separator in the filename, and should display this way as well.
After digging a while, I found it is because those kar files are saved with ',kar'. When the Kepler is started, you can find these info from the database by using query: SELECT * FROM LIBRARY_INDEX Where Name like '%kar':
7 6 1180 1955 2 urn:lsid:kepler-project.org:kar:2000:4 7 CoreActors,kar
971 970 1958 1961 2 urn:lsid:kepler-project.org:kar:550:6 7 DataTurbine,kar
976 975 1964 1977 2 urn:lsid:kepler-project.org:kar:2001:3 7 CoreDirectors,kar
990 989 1998 2001 2 urn:lsid:kepler-project.org:kar:533:1 7 OpendapDataSource,kar
994 993 2004 2007 2 urn:lsid:kepler-project.org:kar:216:1 7 RExpression,kar
...
I'll dig further to know why it happens.
I believe the comma is used intentionally since you cannot use a period/dot in the name of a NamedObj. i don't think this is the first time the topic has come up for discussion, but I'm not sure how broadly it was discussed. At any rate, the comma has always been used in the name of the KAR file as it is displayed in the components tree. Perhaps there is a way to decouple the name from the display, but from what I remember, it was not immediately obvious how to have that work with the current implementation. I'm CCing Aaron on this as I believe he has insight on this topic.
Ben, thanks for your info which is very valuable. I'll switch from finding where it becomes ',kar' to how to display it with '.kar'.
re-assign to Madhu after discussing with Madhu and Ilkay.
This was fixed recently. NamedObj.setDisplayName() can be used for names with periods.
Original Bugzilla ID was 5142
Also available in: Atom
PDF