Giter VIP home page Giter VIP logo

Comments (10)

lenamtl avatar lenamtl commented on May 27, 2024

Hi,

In which case the file_id and relation id are not the same?

from projectsend.

RichH1978 avatar RichH1978 commented on May 27, 2024

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.

lenamtl avatar lenamtl commented on May 27, 2024

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.

AlanReiblein avatar AlanReiblein commented on May 27, 2024

The delete worked but the log reported the wrong file as deleted
any ideas

from projectsend.

AlanReiblein avatar AlanReiblein commented on May 27, 2024

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.

AlanReiblein avatar AlanReiblein commented on May 27, 2024

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.

AlanReiblein avatar AlanReiblein commented on May 27, 2024

Found change for number of files viewed

from projectsend.

eoffermann avatar eoffermann commented on May 27, 2024

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.

lenamtl avatar lenamtl commented on May 27, 2024

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.

lenamtl avatar lenamtl commented on May 27, 2024

Please update to the latest version and let us know if still need help

from projectsend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.