Forum OpenACS Development: Re: file-storage items on table cr_items

Collapse
Posted by Dave Bauer on
You can't create two folders with the same name and parent_id.

There is a constraint on the cr_items table that prevents this.

Unless your version of fs::get_folder is doing something strange.

Perhaps you can check the query that is running for fs::get_folder and the values for any bind variables, and if possible try out the same query in psql and paste the query and results here.

Collapse
Posted by Iuri Sampaio on
I didnt create two folders with thesame info.
every folder is unique and its name is the user_id of the system user.

Where did you see that?

Collapse
Posted by Dave Bauer on
Sorry I read

"
I realized that filestorage was creating new folders with the field "name" on table cr_items with all records as "file-storage-new-folder""

so I thought the problem you were referring to was about the cr_items.name.