Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,552,698
Community Members
 
Community Events
184
Community Groups

Inserting a logo into a header using Stylesheet - getting HTTP Status 500 error

Hi, 

I've been trying to insert a logo into a header using the PDF stylesheet. 

I've looked at:

https://community.atlassian.com/t5/Confluence-questions/Insert-logo-for-PDF-export-header/qaq-p/1996630  

and 

https://community.atlassian.com/t5/Confluence-questions/How-to-insert-image-in-header-for-exporting-to-PDF/qaq-p/949260

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)

 

1 answer

1 accepted

0 votes
Answer accepted
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 16, 2023

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! 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events