in2code-de / in2publish_core

in2publish Community Version
https://www.in2code.de/produkte/content-publisher/
GNU General Public License v3.0
40 stars 23 forks source link

[BUG] file moved and content replaced, only moved on page publish (if referenced) #28

Closed AndreasA closed 7 years ago

AndreasA commented 7 years ago

Hi, in regards to my file issue I think I now know how to replicate it exactly:

1.) Upload a file to a fileadmin folder, e.g. fileadmin/uploads01/ 2.) Reference the file in a content element 3.) Publish the page with the content element 4.) Move the same file to another folder in fileadmin, e.g. fileadmin/uploads02/ 5.) Replace that file with another file (upload and select replace) 6.) Go the same page of step 3 and publish the page.

Now the page content is published and the file was moved BUT the content was not updated. That requires another publish of the page (it is also marked as still having changes).

vertexvaar commented 7 years ago

I was able to reproduce this bug. in2publish thinks this file was just moved and does not have a look at the file size or other properties anymore. When publishing for the second time the file will be checked for file size / content differences because it was not changed otherwise.

EDIT: The file did not get published on the second try. It's even not marked as changed. This will take some time to fix

vertexvaar commented 7 years ago

It was a kind of nightmare, but I managed it somehow. Hope this finally fixes the whole problem.