Index: /trunk/src/VBox/Main/src-server/MediumImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/src-server/MediumImpl.cpp	(revision 61644)
+++ /trunk/src/VBox/Main/src-server/MediumImpl.cpp	(revision 61645)
@@ -2997,13 +2997,26 @@
             {
                 /*
-                 * small trick. This case means target path has no filename at the end
-                 * it will look like "/path/to/new/location"
+                 * small trick. This case means target path has no filename at the end.
+                 * it will look like "/path/to/new/location" or just "newname"
                  * there is no backslash in the end
-                 * and there is no filename with extension(suffix) in the end
+                 * or there is no filename with extension(suffix) in the end
+                 */
+
+                /* case when new path contains only "newname", no path, no extension */
+                if (destMediumPath.equals(destMediumFileName))
+                {
+                    Utf8Str localSuffix = RTPathSuffix(sourceMediumFileName.c_str());
+                    destMediumFileName.append(localSuffix);
+                    destMediumPath = destMediumFileName;
+                }
+                /* case when new path looks like "/path/to/new/location"
                  * In this case just set destMediumFileName to NULL and 
-                 * and add '/' in the end of path.destMediumPath
-                 */
-                destMediumFileName.setNull();
-                destMediumPath.append(RTPATH_SLASH);
+                 * and add '/' in the end of path.destMediumPath 
+                 */ 
+                else
+                {
+                    destMediumFileName.setNull();
+                    destMediumPath.append(RTPATH_SLASH);
+                }
             }
 
