Bug 135237 - Filenames with multiple periods in them do not show up in the file listing (incorrect extension identification)
Summary: Filenames with multiple periods in them do not show up in the file listing (i...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-GeolocationEdit (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-07 07:52 UTC by Birkir A. Barkarson
Modified: 2018-03-23 21:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 0.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Birkir A. Barkarson 2006-10-07 07:52:33 UTC
Version:           svn (using KDE KDE 3.5.4)
Installed from:    Fedora RPMs
OS:                Linux

From digikam when selecting for example three files IMG1.jpg IMG2.mod.jpg and IMG3.jpg the one with multible periods does not show up in the gpssync file listing and can thus not be edited.
Comment 1 caulier.gilles 2006-10-11 13:21:38 UTC
Fixed in svn. by commit #594449 (i have forget to CCBUGS here).

Gilles
Comment 2 caulier.gilles 2006-10-11 13:31:30 UTC
SVN commit 594457 by cgilles:

kipi-plugins from trunk : Raw converter and JPEGLossLess plugin don't check properly the filenale extension.
CCBUGS: 135237


 M  +1 -1      jpeglossless/utils.cpp  
 M  +2 -2      rawconverter/dcrawiface.cpp  
 M  +1 -1      rawconverter/plugin_rawconverter.cpp  


--- trunk/extragear/libs/kipi-plugins/jpeglossless/utils.cpp #594456:594457
@@ -61,7 +61,7 @@
     QString rawFilesExt(kipi_raw_file_extentions);
 
     QFileInfo fileInfo(file);
-    if (rawFilesExt.upper().contains( fileInfo.extension().upper() ))
+    if (rawFilesExt.upper().contains( fileInfo.extension(false).upper() ))
         return true;
 
     return false;
--- trunk/extragear/libs/kipi-plugins/rawconverter/dcrawiface.cpp #594456:594457
@@ -141,7 +141,7 @@
     QFileInfo fileInfo(path);
     QString   rawFilesExt(kipi_raw_file_extentions);
 
-    if (!fileInfo.exists() || !rawFilesExt.upper().contains( fileInfo.extension().upper() ))
+    if (!fileInfo.exists() || !rawFilesExt.upper().contains( fileInfo.extension(false).upper() ))
         return false;
 
     // Try to extract embedded thumbnail using dcraw with options:
@@ -256,7 +256,7 @@
         return false;
     }
 
-    if (!rawFilesExt.upper().contains( fileInfo.extension().upper() ))
+    if (!rawFilesExt.upper().contains( fileInfo.extension(false).upper() ))
     {
         identify = i18n("Not a RAW file");
         return false;
--- trunk/extragear/libs/kipi-plugins/rawconverter/plugin_rawconverter.cpp #594456:594457
@@ -116,7 +116,7 @@
     QString rawFilesExt(kipi_raw_file_extentions);
 
     QFileInfo fileInfo(filePath);
-    if (rawFilesExt.upper().contains( fileInfo.extension().upper() ))
+    if (rawFilesExt.upper().contains( fileInfo.extension(false).upper() ))
         return true;
 
     return false;