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

Cannot publish attachment with non latin names in some Confluence versions. #217

Closed
qwazer opened this issue Apr 3, 2024 · 1 comment
Closed
Assignees

Comments

@qwazer
Copy link
Collaborator

qwazer commented Apr 3, 2024

publish pages with attachments - OK
publish the same pages again - failed with

Caused by: io.github.md2conf.confluence.client.http.RequestFailedException: Cannot create new content property: JsonContentProperty{id='null', key='%D0%9F%D0%BE%D0%B8%D1%81%D0%BA+%D1%81+%D0%B8%D0%BD%D0%B4%D0%B5%D0%BA%D1%81%D0%BE%D0%BC-hash', content=CollapsedReference{idProperties={status=current, id=ContentId{id=884862}, version=CollapsedReference{idProperties={number=0}, referentClass=class com.atlassian.confluence.api.model.content.Version}}, referentClass=class com.atlassian.confluence.api.model.content.Content}, version=null} (request: POST http://localhost:8090/rest/api/content/884862/property , response: 409 {"statusCode":409,"data":{"authorized":false,"valid":false,"allowedInReadOnlyMode":true,"errors":[{"message":{"key":"jsonproperty.duplicate.key","args":[]}}],"successful":false},"message":"Cannot create new content property: JsonContentProperty{id='null', key='%D0%9F%D0%BE%D0%B8%D1%81%D0%BA+%D1%81+%D0%B8%D0%BD%D0%B4%D0%B5%D0%BA%D1%81%D0%BE%D0%BC-hash', content=CollapsedReference{idProperties={status=current, id=ContentId{id=884862}, version=CollapsedReference{idProperties={number=0}, referentClass=class com.atlassian.confluence.api.model.content.Version}}, referentClass=class com.atlassian.confluence.api.model.content.Content}, version=null}","reason":"Conflict"}, reason: )
at io.github.md2conf.confluence.client.http.RestApiInternalClient.lambda$sendRequestAndFailIfNot20x$8 (RestApiInternalClient.java:247)
at io.github.md2conf.confluence.client.http.RestApiInternalClient.sendRequest (RestApiInternalClient.java:262)
at io.github.md2conf.confluence.client.http.RestApiInternalClient.sendRequestAndFailIfNot20x (RestApiInternalClient.java:244)
at io.github.md2conf.confluence.client.http.RestApiInternalClient.sendRequestAndFailIfNot20x (RestApiInternalClient.java:240)
at io.github.md2conf.confluence.client.http.RestApiInternalClient.setPropertyByKey (RestApiInternalClient.java:344)
at io.github.md2conf.confluence.client.PublishConfluenceClient.addOrUpdateAttachment (PublishConfluenceClient.java:231)
at io.github.md2conf.confluence.client.PublishConfluenceClient.lambda$addAttachments$9 (PublishConfluenceClient.java:214)

@qwazer qwazer self-assigned this Apr 3, 2024
@qwazer
Copy link
Collaborator Author

qwazer commented Jul 11, 2024

#253

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