Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Documents directori...
 
Notifications
Clear all

Documents directories Problem

13 Posts
2 Users
0 Reactions
14.1 K Views
(@djackjack)
Posts: 49
Active Member
Topic starter
 
[#1247]

Hello,

I think I have detected a problem with the management of documents. If you have document versions in a directory and we decided to change the directory path (in the Documents directories menu), versions of documents are not downloadable. I explored a little more and I could see that the directory document that I modified partially functionned.
Indeed, the new directory was created, but the old directory was not deleted and the files were not copied to the new directory.


 
Posted : 09 Jul 2013 11H43
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Ticket #1131 recorded


 
Posted : 09 Jul 2013 13H26
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

I just checked : all is working fine, at least since V3.3.2.
Please check access rights to your directories.
Possibly your documents were not moved because php user does not have rights to.

Tocket #1131 canceled.


 
Posted : 09 Jul 2013 15H59
(@djackjack)
Posts: 49
Active Member
Topic starter
 

Ok, but where can I adjust these access rights (for document directories)


 
Posted : 09 Jul 2013 18H23
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Directly on the OS of your server...


 
Posted : 09 Jul 2013 18H29
(@djackjack)
Posts: 49
Active Member
Topic starter
 

But users have never had access rights to the server and its functioned


 
Posted : 09 Jul 2013 19H19
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Let me explain.

When you set-up the directories (by default on installation) there were created with some rights, depending on OS configuration. I assume php user had rights to browse the directories, create content into it, but not change the directories.
So you could add some documents into these folders.
For instance your could have:

/rootFileDirectory/category/file1.txt
/rootFileDirectory/category/file2.txt

When changing the directory path from Project'Or RIA, the php server could not move the directory and its content. Some files were still in the old directory path.
Adding a new document just created the new directory with new path, so now you have :

/rootFileDirectory/category/file1.txt
/rootFileDirectory/category/file2.txt
/rootFileDirectory/newCategoryPath/file3.txt

So when program tries to retrieve

/rootFileDirectory/newCategoryPath/file1.txt

it fails.


 
Posted : 09 Jul 2013 19H42
(@djackjack)
Posts: 49
Active Member
Topic starter
 

Not exactly.
initially, you have the following files and directories

/rootFileDirectory/category1/subCategory1/file1.txt
/rootFileDirectory/category1/subCategory1/file2.txt
/rootFileDirectory/category1/subCategory2/file3.txt
/rootFileDirectory/category1/subCategory2/file4.txt
/rootFileDirectory/category1/file5.txt

In project'Or RIA, the user has created three directories documents. Then, the user decides to change the name of the directory (category1->newCategory1).

At the time of backup, I see two things:
First paths for subCategory1 subCategory2 and are not updated (the user must select the document directory and then run a backup for it to update itself)

Secondly if the user tries to download a file (eg file2.txt), it can not.

And if I look at the tree again (with the backup of the user to update the paths), it looks like this:

/rootFileDirectory/category1/subCategory1/file1.txt
/rootFileDirectory/category1/subCategory1/file2.txt
/rootFileDirectory/category1/subCategory2/file3.txt
/rootFileDirectory/category1/subCategory2/file4.txt
/rootFileDirectory/category1/file5.txt
/rootFileDirectory/newCategory1/subCategory1/
/rootFileDirectory/newCategory1/subCategory2/

And the server administrator told me that for the application all rights are allowed. Problem is it can not be a development problem?


 
Posted : 11 Jul 2013 17H13
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

I just tried again and could not reproduce.
I'll try again on another platform.

Which version are your running ?


 
Posted : 11 Jul 2013 23H09
(@djackjack)
Posts: 49
Active Member
Topic starter
 

V3.3.2


 
Posted : 12 Jul 2013 18H27
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

I tested again, on Linux this time, and cannot reproduce issue either.

There were historically issues about moving docs, but there are fixed now.

=> #799 : change document the directory it will not move document into new one
=> Fixed in V2.6

There was also an issue on creation rights for new folder 700 instead of 755, but it is also fixed (can't remind the version).

All I can advise :
=> manually move items from old directories to new ones => yuo should then be able to download them again
=> check all directories have 755 access rights
=> try again to move a folder.

Regards.


 
Posted : 12 Jul 2013 22H16
(@djackjack)
Posts: 49
Active Member
Topic starter
 

I read again one of your messages, I wanted to know at no time you do copies the files in a directory?

If someone wants to rename a folder containing subfolders and files, create a new directory and import each of the sub-folders and files, then delete the old directory?


 
Posted : 15 Jul 2013 18H43
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

If someone wants to rename a folder containing subfolders and files, create a new directory and import each of the sub-folders and files, then delete the old directory?

It can be done, but must be done through the application to preserve consistency between data and files.


 
Posted : 15 Jul 2013 20H21
Share:

Scroll to Top