reorganizing photos results in illegal_data_file_extension

flxfxp

Joined: 2012-05-19
Posts: 8
Posted: Thu, 2012-06-07 21:24

2012-06-07 21:21:33 +00:00 --- error: ORM_Validation_Exception [ 44 ]: ORM Validation has failed for items model
/var/www/example.com/system/libraries/ORM_Validation_Exception.php [ 20 ]
#0 /var/www/example.com/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /var/www/example.com/modules/gallery/models/item.php(773): ORM_Core->validate(NULL)
#2 /var/www/example.com/system/libraries/ORM.php(778): Item_Model_Core->validate()
#3 /var/www/example.com/modules/gallery/libraries/MY_ORM.php(34): ORM_Core->save()
#4 /var/www/example.com/modules/gallery/libraries/ORM_MPTT.php(79): ORM->save()
#5 /var/www/example.com/modules/gallery/models/item.php(440): ORM_MPTT_Core->save()
#6 /var/www/example.com/modules/organize/controllers/organize.php(135): Item_Model_Core->save()
#7 [internal function]: Organize_Controller->rearrange()
#8 /var/www/example.com/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Organize_Controller), Array)
#9 [internal function]: Kohana_Core::instance(NULL)
#10 /var/www/example.com/system/core/Event.php(208): call_user_func_array(Array, Array)
#11 /var/www/example.com/application/Bootstrap.php(67): Event_Core::run('system.execute')
#12 /var/www/example.com/index.php(113): require('/var/www/exampl...')
#13 {main}
2012-06-07 21:21:33 +00:00 --- error: Validation errors: Array
(
[name] => illegal_data_file_extension
)

How can I fix this?

Login or register to post comments
flxfxp

Joined: 2012-05-19
Posts: 8
Posted: Thu, 2012-06-14 10:40

...anyone?

Login or register to post comments
flxfxp

Joined: 2012-05-19
Posts: 8
Posted: Sat, 2012-06-23 17:19

I would really appreciate some help :)

Login or register to post comments
garster
garster's picture

Joined: 2012-12-19
Posts: 3
Posted: Wed, 2012-12-19 15:36

Hello

I get the exact same error, but when I am using the "Server add" feature. After some testing I found it does not like dots in the file name. For example "2012-03-12 3.4.5.jpg" will not work, but remove the dots, except for the one before the extension and it works. The files upload thru the normal uploading method, but if I use the Server Add feature the get the exact same error you get above. My guess is there is a bug in the Validation. I am going to look into it.

Login or register to post comments
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7894
Posted: Wed, 2012-12-19 15:47

gallery does not accept files w/ multiple dots in the name.
Although I thought a fix was in the works, what version are you using?

-s
________________________________
All New jQuery Minislideshow for G2/G3

Login or register to post comments
garster
garster's picture

Joined: 2012-12-19
Posts: 3
Posted: Wed, 2012-12-19 17:59

It does accept photos with multiple dots in the filename, if I do it thru the "Add Some Photos" normal web-based upload. Where it failed was in the "Server Add" feature. Actually everything looks fine, no errors. It just does not upload the files with dots. I tried to reproduce the OP's problem and could not. I am running 3.0.4, but I first noticed this in 3.0.3 but this might have been the first time I tried to upload photos with this "Date Time" (YYYY-MM-DD HH.MM.SS.jpg) format.

I have not dived into the code, but I am guessing either the Web Based upload is somehow escaping the dots, or the "Server Add" is having trouble reading the dots from the file system.

I really need Server add, as I am uploads thousands of photos in multiple albums, Server Add is saving me there. My work around will be to rename my photos, but I also want to figure out why the dots are problems. The OP might be having the same problem with the Organization.

Login or register to post comments
garster
garster's picture

Joined: 2012-12-19
Posts: 3
Posted: Wed, 2012-12-19 18:16

Interesting, now that I have found the right google-fu I am seeing that 3.0.4 does not accept filenames with multiple dots on purpose. Or at least if I am understanding it correctly. Most of the discussion was around existing photos now causing problems after an upgrade.

http://sourceforge.net/apps/trac/gallery/ticket/1894

I still cannot find anything about why multiple dots are not allowed.

Login or register to post comments
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7985
Posted: Wed, 2012-12-19 19:37

It was a bug - but it's fixed. If you upgrade to the latest nightly (see my link below) it should be fixed.
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!

Login or register to post comments