Web Script Status 405 - Method Not Allowed

cancel
Showing results for 
Search instead for 
Did you mean: 
jkim34
Member II

Web Script Status 405 - Method Not Allowed

Jump to solution

Hi,

Would anyone had successfully implemented callback URL from alfresco server? I'm connecting through either SAML or PingFederate to get to document residing on Alfresco server, and am partially successful so far.

What I meant by partially successful is that it opens successfully only after I fail for the first time. Second click and so forth (without closing the browser) successfully opens. The testing was done on IE11.

Here's the message I get when I click for the first time:

The Web Script /alfresco/wcservice/api/node/content/workspace/SpacesStore/<alfresco node>/file.txt has responded with a status of 405 - Method Not Allowed. 

405 Description: The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

Message: 06111704 Script url /api/node/content/workspace/SpacesStore/<alfresco node>/file.txt does not support the method POST

Here's similar thread in alfresco community.

Thanks.

1 Solution

Accepted Solutions
janv
Alfresco Employee

Re: Web Script Status 405 - Method Not Allowed

Jump to solution

Hi,

to get to document residing on Alfresco server

That webscript does not support http method POST by default ... you should use http method GET http: Content | Alfresco Documentation 

Alternatively, have a look at: Tunneling HTTP methods | Alfresco Documentation 

Regards,

Jan

View solution in original post

4 Replies
janv
Alfresco Employee

Re: Web Script Status 405 - Method Not Allowed

Jump to solution

Hi,

to get to document residing on Alfresco server

That webscript does not support http method POST by default ... you should use http method GET http: Content | Alfresco Documentation 

Alternatively, have a look at: Tunneling HTTP methods | Alfresco Documentation 

Regards,

Jan

jkim34
Member II

Re: Web Script Status 405 - Method Not Allowed

Jump to solution

Thanks Jan for the response, and noticing that 'Post' method was being used.

We've actually tried 'Get' method as well, but it also couldn't resolve our ultimate issue of not being able to retrieve the document successfully in first try. Same logic, same code works really well with second click and so forth (within same session, and same browser, of course). Initially, I was leaning toward blaming IE11 thinking that it may have been preventing preservation of session/cache within first click. But could this whole issue really be happening because 'Get' method was not used?

janv
Alfresco Employee

Re: Web Script Status 405 - Method Not Allowed

Jump to solution

No worries. Have you also tested & debugged with latest Chrome &/or Firefox (to compare with IE 11) ?

Regards,

Jan

jkim34
Member II

Re: Web Script Status 405 - Method Not Allowed

Jump to solution

Hello, sorry for late response as I was carried away with another project. So, with other integration we had earlier for 4.2 Alfresco, Chrome & Firefox worked fine interestingly. I'll probably need to dig down from both end, IE 11 & Webscript, to see what is really going on. Thanks for all your inputs!