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

Creating renditions for previous versions broke the restore operation #2244

Open
airesearch2 opened this issue Oct 12, 2023 · 0 comments
Open

Comments

@airesearch2
Copy link

Steps to reproduce:
In alfresco share:

  1. Upload image 1.
  2. Upload new version (image 2) in alfresco share.

In rest api(http://ip:8080/api-explorer/
3) Create rendition for not latest version
curl:
curl -X POST "http://ip:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/5dd77fae-e30f-4009-a45d-0b91a4788bbd/versions/1.0/renditions" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"id\": \"imgpreview\"}"
url: http://dt0007.ce.local:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/5dd77fae-e30f-4009-a45d-0b91a4788bbd/versions/1.0/renditions

In alfresco share or in rest api:
4) Try to restore version 1.
4.1) In ui(alfresco share):
Message "Cannot restore image 1";
Status 500
log in console
"07180471 Wrapped Exception (with status template): 071853490 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/version/revert.post.json.js': nodeRef is a mandatory parameter"
4.2) In rest api:
Status 400.
url:
http://ip:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/5dd77fae-e30f-4009-a45d-0b91a4788bbd/versions/1.0/revert
log:
{ "error": { "errorKey": "framework.exception.ApiDefault", "statusCode": 400, "briefSummary": "nodeRef is a mandatory parameter", "stackTrace": "For security reasons the stack trace is no longer displayed, but the property is kept for previous versions" "descriptionURL": "https://api-explorer.alfresco.com" } }

We were expecting the problem to be fixed here but we were told the wrong repository:
Alfresco/acs-deployment#988

We use docker compose:
alfresco/alfresco-content-repository-community:7.0.0
alfresco/alfresco-share:7.0.0
transform-core-aio:alfresco/alfresco-transform-core-aio:2.3.10

I also install the latest version in the middle of August locally via docker compose. Here the
problem also reproduces.
https://docs.alfresco.com/content-services/community/install/containers/docker-compose/
image: docker.io/alfresco-content-repository-community:7.4.0.1
image: docker.io/alfresco/alfresco-share:7.4.0.1
image: alfresco/alfresco-transform-core-aio:4.0.0

I would appreciate it if someone could fix this problem or suggest a way around this bug.

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