Closed ToruKawaguchi closed 2 months ago
Hi! You probably are right about the default limit. On the other hand, mark is an open source program and relies on community contributions, I'll be glad to merge a PR that addresses the issue.
@kovetskiy Any chance you have a minute to approve the PR that fixes this issue? https://github.com/kovetskiy/mark/pull/220 Thank you.
@nicolaasuni-vonage Thanks for your PR!
Closing as fixed as a workaround exists.
I have a document with 53 attachment. I could upload it correctly, but could not update it with mark showing following error.
No attachment was changed but it seems that mark handles the attachment as a new file.
I suspect that the following line might be the cause:
https://github.com/kovetskiy/mark/blob/2f34e9397368cd5c423dac6fc6db4a0be436195c/pkg/confluence/api.go#L429-L431
because corresponding Confluence API uses paging and returns maximum of 50 attachment by default.
https://docs.atlassian.com/ConfluenceServer/rest/7.17.1/#content/{id}/child/attachment-getAttachments
I would applicate if the team could handle this.