HTTP 405 Error | Community
Skip to main content
Level 2
Sep 24, 2018 7:53 AM UTC

HTTP 405 Error

I'm facing issue in uploading the java bundles in felix console.

whenever I'm trying to upload a bundle , my browser is not responding for some time and after that  its throws http 405 error.

I tried uploading lower size bundles ,still getting same error.

I'm using 6.1.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

12 replies

raj_mandalapu
Level 7
Oct 1, 2018 2:49 PM UTC

As per logs, the referrer URL is empty might be because of below conditions

  • entered the site URL in browser address bar itself.
  • visited the site by a browser-maintained bookmark.
  • visited the site as first page in the window/tab.
  • switched from a https URL to a http URL.
  • switched from a https URL to a different https URL. (only if it is blocked by referrer metatag on website)
  • has security software installed (antivirus/firewall/etc) which strips the referrer from all requests.
  • is behind a proxy which strips the referrer from all requests.
  • visited the site programmatically (like, curl) without setting the referrer header (searchbots!).

The temporary purpose you can enable allow empty - not recommended in production

Are you facing the same issue when you deploy through package manager?

Translate
Akash_Kapoor
Employee
Oct 1, 2018 2:36 PM UTC

Hi vineetp40789287​,

Can you check "allow empty" field in "Apache Sling Referrer Filter" from host:port/sytem/console/configMgr if already not checked?

It might help you fix the above exception.

Translate
mikezooz
Level 4
Oct 1, 2018 2:24 PM UTC

can you switch your port number to 4502 and give a try?

Translate
joerghoh
Employee
Sep 28, 2018 9:34 PM UTC

* Is this reproducible on your system?

* do you see that request in the request.log? Or the access.log?

* something suspicious in the error.log?

HTTP statuscode 405 "method not allowed" might be thrown by the CSRF filter, but I would doubt that (the webconsole is not covered by Sling filters).

Translate
Peter_Puzanovs
New Participant
Sep 27, 2018 12:30 PM UTC

Are you working through corporate proxy?

These things like to intercept POST requests.

E.g. upload of .jar is blocked and you get 405 as a response.

Regards,

Peter

Translate
Level 2
Sep 28, 2018 7:09 AM UTC

yes,I'm working in corporate proxy but i tried not using that proxy also.still not working.

Translate
smacdonald2008
Level 10
Sep 24, 2018 6:08 PM UTC

Its hard for commnity to suggest a fix without more information. Please post any log messages that you are seeing

Translate
Level 2
Sep 25, 2018 5:22 AM UTC

org.apache.sling.security.impl.ReferrerFilter Rejected empty referrer header for POST request to /system/console/bundles

I'm getting this log

Translate
smacdonald2008
Level 10
Sep 26, 2018 5:53 PM UTC

How are you creating your bundle/Java project. Are you following an online doc or using Maven Archetype project?

Translate