You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
I've been trying to insert a logo into a header using the PDF stylesheet.
I've looked at:
and
and modified the path with my own image location.
No matter what I try, when I click Save, I receive a HTTP Status 500 - Internal Server Error
Here's what I enter on the PDF stylesheet:
@page
{
margin-top: 2.54cm;
margin-bottom: 2.54cm;
margin-left: 1.27cm;
margin-right: 1.27cm;
@Top-left
{
background-image: url('/download/attachments/622690402/candella_logo_desktop_1.png');
background-size: 250px 86px;
background-repeat: no-repeat;
background-position: left center;
height: 86px;
width: 250px;
}
}
This is a sample of what I receive when I click Save:
Type Exception Report
Message java.lang.IllegalArgumentException: Host name may not be null
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
java.lang.RuntimeException: java.lang.IllegalArgumentException: Host name may not be null com.atlassian.confluence.extra.flyingpdf.config.ConfigurePdfExportAction.ssrfCheck(ConfigurePdfExportAction.java:169) com.atlassian.confluence.extra.flyingpdf.config.ConfigurePdfExportAction.doEdit(ConfigurePdfExportAction.java:283) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.base/java.lang.reflect.Method.invoke(Method.java:568)
Hi @Beth Wadds and welcome to the community,
If you try with the full url, what response are you getting?
Thank you, changing the image line to the following worked.
background-image: url('https://candella.atlassian.net/wiki/download/attachments/622690402/candella_logo_desktop_1.png');
Thank you very very much!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.