Comments (10)
Hi,
In which case the file_id and relation id are not the same?
from projectsend.
Yes, the file_id and relation id may not be the same. For instance if a file is assigned to 2 users, there would be 1 record in tbl_files and 2 records in tbl_files_relations.
The file id would be 1
The relation ids would be 1 and 2
So depending on which user was viewing the file, the relation id would either be 1 or 2
If the first user tried to delete the file, it would work using the relation id as it is the same as the file id.
If the second user tried to delete the file, the system would report the file was deleted but not delete the file as no file id of 2 exists.
If you have more files on the system this could cause problems because a file id of 2 may exist and would be deleted rather than the correct file id of 1.
from projectsend.
OK thanks your fix seems ok.
I have made tests as admin
I have also test with Group and Group + individual Clients and seems to be ok.
from projectsend.
The delete worked but the log reported the wrong file as deleted
any ideas
from projectsend.
Sorry I am now confused
Did the fix of changing I'd to file_id which appeared to work but then noticed it reported wrong info into log. So reverted back.
Looked at the fix : delete files ...
but the comments on that appear to say it doesn't work.
Do I apply both ?
from projectsend.
I have done this on a test system replicating my database.
The log definitely reports wrong file and only 1 file is deleted if you select multiple.
Also how do I change the (max) number of files viewed at any time (I have over 400 files and it seems to take forever in manage files for an admin to see the page (on my test system)
from projectsend.
Found change for number of files viewed
from projectsend.
I was having several problems that currently appear to have been fixed by making this patch. I'm running r582 which didn't contain this fix.
Files weren't being deleted when instructed (Recent Activities would show the item as being deleted, but it would still be present), the wrong files were being deleted (same as above - the right files would be listed as deleted, but different ones were actually deleted), etc.
I'm not sure what changed on r582 to address the wrong files being deleted problem, but it didn't fix it for me. Applying the fix listed in this thread seems to have done it though.
from projectsend.
Please update to r583, there are a lot of security fixes, do a full backup file and DB prior the update.
There are 2 differents problems
1- sometimes the file was not deleted (depending of the case), this has been fixes.
2- when deleting multiple files at the time (depending of the case) that was not logged correctly, I beleive this has not benn fixed yet.
from projectsend.
Please update to the latest version and let us know if still need help
from projectsend.
Related Issues (20)
- The new UI seems to be non responsive
- Our projectsend page does not work HOT 1
- How to "use" Email translation HOT 1
- How to design %FILE% on email template
- When can we expect a new release?
- Add php-dom and php-ctype extensions to the php extension requirements HOT 1
- some function not work
- Translations for templates don't work HOT 1
- Your browser doesn't support HTML5, Flash or Silverlight. Please update your browser or install Adobe Flash or Silverlight to continue. HOT 5
- Buttons in E-mail templates not working
- Using custom port in Host field in setup
- Errors in log HOT 1
- 504 Gateway Time-out The server when https://www.projectsend.org is not available HOT 1
- Fatal error when files are in groups HOT 1
- Updating from r754, will it work? HOT 3
- Error 500 on manage-files.php HOT 4
- Client can't delete own files even though setting is enabled
- Files are visible to anyone
- Translation in transifex
- Development Lifecycle / Release Schedule HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from projectsend.