bug in storage

kvdb

Joined: 2002-10-10
Posts: 29
Posted: Sat, 2002-11-09 21:01

I got a clean G2 from CVS (20021109). once i got in the test harnass I ran 'create random tree' .. did 'delete random album' .. those were fine.
Then I did 'delete all items'
and whoops, I encountered an error:

Fatal error: Cannot instantiate non-existent class: galleryentity in /home/michel/public_html/gallery2/modules/core/classes/GalleryStorage.class on line 418

If you need more info, let me know.
(using Debian 3.0 stable)

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2002-11-10 01:34

Good catch! I'm happy to see that those test cases are providing an easy way to do regression testing on the framework. I've fixed this, but won't check it in until my next big checkin (probably in the next day or so).

By the way, watch out for that test case. It can send back literally tons of debug output if you're deleting very many albums. In my tests I deleted 30 albums with that case and it sent back about 100MB of HTML :eek:

 
kvdb

Joined: 2002-10-10
Posts: 29
Posted: Sun, 2002-11-10 10:21

Oh dear... My (fortunately local!) webserver will have a hard time deleting >5000 albums.
I Better keep /etc/init.d/apache restart ready for launch in a spare terminal :wink:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-11-11 11:17

I typically use the ReInitialize Gallery test case to start from scratch. But if you just want to clean out your albums, you can use the DeleteRandomAlbums test case. Basically, if you run more than 1 iteration of a test case it suppresses debug output so it goes a lot faster. The DeleteAllItems case only has 1 iteration though so you see a ton of debug statements (which is why it takes so long).