Bug 135237

Summary: Filenames with multiple periods in them do not show up in the file listing (incorrect extension identification)
Product: [Applications] digikam Reporter: Birkir A. Barkarson <birkirb>
Component: Plugin-Generic-GeolocationEditAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 0.1.0

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;