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

Root node created in user workspace instead of live #13

Open
Jan3k3y opened this issue Dec 14, 2023 · 1 comment
Open

Root node created in user workspace instead of live #13

Jan3k3y opened this issue Dec 14, 2023 · 1 comment

Comments

@Jan3k3y
Copy link

Jan3k3y commented Dec 14, 2023

I have just occurred a strange behavior during the initial loading/creating of the database entries.

I started with this setting Neos.MetaData.Extractor.realtimeExtraction.enabled = true, can't delete newly uploaded images and don't see any metadata in the tab.
When searching in the database, I quickly found the problem:
It does not use the live workspace to create '/assets' but my own user's.

Steps to reproduce:

  1. new Neos system with empty database and Neos.MetaData.Extractor.realtimeExtraction.enabled = true
  2. upload an image via the media management
  3. try to read metadata (empty and when trying to write 'null-Exception')
  4. try to delete the picture (should not work either)

However, if you start with Neos.MetaData.Extractor.realtimeExtraction.enabled = false initially, upload an image and then ./flow metadata:extract, all these problems do not exist, since the correct workspace is taken as the basis.

Any cool suggestions how to fix this asap?

@Jan3k3y
Copy link
Author

Jan3k3y commented Dec 14, 2023

After the (slightly ugly) local rebuild of the package, I was able to drag the live-wokspace with $this->contextFactory->create();.
I then used it in the findOneByPath call and for getRootNode and solved the problem.

But I'm not very happy with this implementation because I already have a context and with this solution I just create a 'new' one😅

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

No branches or pull requests

1 participant