Forum

Documents directori...
 
Notifications
Retirer tout

Documents directories Problem

13 Posts
2 Utilisateurs
0 Reactions
14.1 {numéro}K Vu
(@djackjack)
Posts: 49
Active Member
Début du sujet
 
[#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.


 
Posté : 9 Juil AM 11:077
(@babynus)
Posts: 14952
Membre Admin
 

Ticket #1131 recorded


 
Posté : 9 Juil PM 13:077
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 9 Juil PM 15:077
(@djackjack)
Posts: 49
Active Member
Début du sujet
 

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


 
Posté : 9 Juil PM 18:077
(@babynus)
Posts: 14952
Membre Admin
 

Directly on the OS of your server...


 
Posté : 9 Juil PM 18:077
(@djackjack)
Posts: 49
Active Member
Début du sujet
 

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


 
Posté : 9 Juil PM 19:077
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 9 Juil PM 19:077
(@djackjack)
Posts: 49
Active Member
Début du sujet
 

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?


 
Posté : 11 Juil PM 17:077
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

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

Which version are your running ?


 
Posté : 11 Juil PM 23:077
(@djackjack)
Posts: 49
Active Member
Début du sujet
 

V3.3.2


 
Posté : 12 Juil PM 18:077
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 12 Juil PM 22:077
(@djackjack)
Posts: 49
Active Member
Début du sujet
 

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?


 
Posté : 15 Juil PM 18:077
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 15 Juil PM 20:077
Share:
Retour en haut