Grive / grive

an open source Linux client for Google Drive
http://www.lbreda.com/grive/start
GNU General Public License v2.0
1.59k stars 379 forks source link

Long file names are not synchronized, app crash. #157

Open uthark opened 11 years ago

uthark commented 11 years ago
 sync "./IFTTT/Instagram/ploylyla/อรุณสวัสดิ์ | ถ่ายจากกระถางต้นไม้หน้าบ้านพักที่อ่างขาง ต้นอะไรก็ไม่รู้ มีหยาดละอองน้ำเกาะเบาๆจากยามเช้า #คิดถึงอ่างขาง #nofiller.jpg" created in remote. creating local
 exception: /build/buildd/grive-0.3.0/libgrive/src/util/StdioFile.cc(109): Throw in function void gr::StdioFile::Open(const boost::filesystem3::path&, int, int)
 Dynamic exception type: boost::exception_detail::clone_impl<gr::StdioFile::Error>
 std::exception::what: std::exception
 [boost::errinfo_errno_*] = 36, "File name too long"
 [boost::errinfo_file_name_*] = ./IFTTT/Instagram/ploylyla/อรุณสวัสดิ์ | ถ่ายจากกระถางต้นไม้หน้าบ้านพักที่อ่างขาง ต้นอะไรก็ไม่รู้ มีหยาดละอองน้ำเกาะเบาๆจากยามเช้า #คิดถึงอ่างขาง #nofiller.jpg
 [boost::errinfo_api_function_*] = open

OS: Ubuntu 12.10 Files system: ext4 Path to google drive folder: /home/uthark/GoogleDrive

My idea is not to crash, but to ignore such files and warn user.

robaca commented 10 years ago

Same problem here with grive version "0.3.0-pre Jan 24 2014 20:40:10" on ubuntu 14.04, filesystem ext4. The file names are presumed shorter (154 characters) than 255 bytes, but the complete path is longer (319 characters), so I wouldn't expect any problems.

BallWarapol commented 8 years ago

Same problem on ubuntu 16.04lts (thai local).