Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media folder not created properly #197

Closed
PhyxionNL opened this issue Mar 24, 2023 · 6 comments
Closed

Media folder not created properly #197

PhyxionNL opened this issue Mar 24, 2023 · 6 comments
Assignees
Labels
uSyncPublisher uSync Publisher Issues

Comments

@PhyxionNL
Copy link

Describe the bug
A clear and concise description of what the bug is.

Version (please complete the following information):

  • Umbraco Version: 11.2.1
  • uSync.Complete Version: 11.0.2

To Reproduce
Steps to reproduce the behavior:

  1. Create under Media a folder such as: Files\Temp\Placeholder\20.20.
  2. Upload some file to "20.20".
  3. Refer to this file in a new document.
  4. Sync parent containing the document to destination.
  5. What happens is that "20.20" isn't created, and the file is uploaded under "Placeholder".
  6. It might be required to also remove an existing - but differently named - folder AND a file with the same name as the uploaded file under "Placeholder" before syncing. See below for more details.

The additional steps I do:

  1. Go to Files\Temp\Placeholder\ and remove "20.10". Also remove it from trash.
  2. See above 1-3 instructions.
  3. Go to the document that referred to the file you removed in "20.10", and "clear" the file there as well, then save the document.
  4. Now sync the parent containing the documents.

Document structure under Content:
Folder\Doc1 -- old - now removed media item
Folder\Doc2 -- newly added with newly added media item
Doc1 and Doc2 have the same document type and refer to a different media item.

@KevinJump
Copy link
Member

Yeah, I can confirm i can reproduce this,

i think there is something going astray in the dependency calculations for the parent folders of the media items.

@KevinJump KevinJump self-assigned this Mar 24, 2023
@KevinJump KevinJump added the uSyncPublisher uSync Publisher Issues label Mar 24, 2023
@KevinJump
Copy link
Member

Hi,

It looks like the issue is with the caching layer in uSync.Complete. We will fix this.

if in the meantime you need a workaround disabling caching by adding the below to the "uSync" section of your appsetting.json file will fix the issue.

"Complete": {
      "Caching": {
        "Enabled": false
      }
    },  

@PhyxionNL
Copy link
Author

Thanks, until it's fixed I can move the file myself. Luckily I don't have to do this too often.
Just curious, is the 6th step required? 🙂

@KevinJump
Copy link
Member

Fix in a nightly build (not stable, for production, etc etc)

https://dev.azure.com/jumoo/Public/_artifacts/feed/nightly/NuGet/uSync.Complete/overview/11.0.3-build.20230324.1

I think you would also have to rebuild the uSync cache to test this (Publisher dashboard, cache in the top right hand corder).

  • for release we might put a cache rebuild in as part of the upgrade - but we will need to test it in terms of performance (big site = slow rebuild)

@KevinJump
Copy link
Member

just to add next release - wont actually be months, prob in next 10 days.

@KevinJump
Copy link
Member

Fixed in uSync.Compelte/uSync v11.1 (released)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
uSyncPublisher uSync Publisher Issues
Projects
None yet
Development

No branches or pull requests

2 participants