Including icon Fails with "could not find attachment"
See original GitHub issueWhen attempting to publish a file that contained as csv file I had errors due to the attachment not found. I’m running through docker, only way it succeeded was when I stopped including the csv file as include and pasted it in directly into the table contents.
CSV Format looked like
"Team","Member or Group"
"Team1","icon:user[] BurritoBoy"
"Team1","icon:user[] TacoMan"
I tried to ensure it had underscores in the name, but it still failed, I’ve also tried adjusting with ./_file
and include::_file
to ensure path issues weren’t the problem.
[format="csv",options="header",cols="20,40",seperator=,]
[caption="Response Team "]
.members
|===================================================
include::./_response-team.csv[]
|===================================================
Exception in thread "main" java.lang.RuntimeException: Could not find attachment
at org.sahli.asciidoc.confluence.publisher.client.ConfluencePublisher.fileInputStream(ConfluencePublisher.java:254)
at org.sahli.asciidoc.confluence.publisher.client.ConfluencePublisher.addOrUpdateAttachment(ConfluencePublisher.java:197)
at org.sahli.asciidoc.confluence.publisher.client.ConfluencePublisher.lambda$addAttachments$9(ConfluencePublisher.java:192)
at java.util.HashMap.forEach(HashMap.java:1289)
at org.sahli.asciidoc.confluence.publisher.client.ConfluencePublisher.addAttachments(ConfluencePublisher.java:192)
at org.sahli.asciidoc.confluence.publisher.client.ConfluencePublisher.lambda$startPublishingUnderAncestorId$1(ConfluencePublisher.java:127)
at java.util.ArrayList.forEach(ArrayList.java:1257)
at org.sahli.asciidoc.confluence.publisher.client.ConfluencePublisher.startPublishingUnderAncestorId(ConfluencePublisher.java:123)
at org.sahli.asciidoc.confluence.publisher.client.ConfluencePublisher.publish(ConfluencePublisher.java:80)
at org.sahli.asciidoc.confluence.publisher.cli.AsciidocConfluencePublisherCommandLineClient.main(AsciidocConfluencePublisherCommandLineClient.java:87)
Caused by: java.io.FileNotFoundException: /tmp/confluence-publisher1621229107102861561/assets/3f70f6e9d48eba115943f9083b309afbdedcb9b30c285b6e472c765f760fd28e/user (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at org.sahli.a
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Outlook attachment icon problem
If the message doesn't contain an attachment and the issue is caused by a View corruption, then View-> reset View is likely to...
Read more >How to Fix It When Attachments Aren't Showing in Outlook
Try these tips to solve the problem of receiving an Outlook email that should have an attachment, but it's not showing.
Read more >all of the sudden, my attachment icon does nothing. Can't ...
all of the sudden, my attachment icon does nothing. Can't attach a file. No error message. clicked on the paperclip icon several times....
Read more >The attachment icon next to the name does not reflect ...
The attachment icon next to the name does not reflect the file content-type when attaching a file without an extension. 225 Views I...
Read more >c# - Emails do not display the paperclip icon even though ...
I don't even know how to define a google search for this problem since I can't avoid using very highly used words like...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @sheldonhull, thank your for your issue. Icons are currently not yet supported by the Confluence Publisher. Unfortunately, the renderer is not distinguishing between an icon and an image and therefore renders an attachment link for icons, too. Subsequently, the upload fails as the attachment does not exist as a file.
I will have a look into it asap to see how to at least ignore icon directives so that the publishing does no longer fail (but then will ignore the icon). Do you want to open a feature request for actually supporting icons? Not sure though whether that would be feasible within Confluence.
Hi @Riduidel, thank you for your support, a pull request would be highly appreciated. At least me, I am not currently working on this. Thank you!