Uploaded image for project: 'Alfresco One Platform'
  1. Alfresco One Platform
  2. ACE-2753

Cannot access DELETE and PUT WebScripts which are lying in Share

    Details

    • Testcase ID:
      Hide

      1) Put attached file in appropriate directory
      2) Login Share Webscript overwiev and refresh all webscripts
      3) Call Delete Webscritp URL with an appropriate Cient that can send delete requests

      4) Method not supported Exception (same for put example)

      5) But in Alfresco Repository it works

      Show
      1) Put attached file in appropriate directory 2) Login Share Webscript overwiev and refresh all webscripts 3) Call Delete Webscritp URL with an appropriate Cient that can send delete requests 4) Method not supported Exception (same for put example) 5) But in Alfresco Repository it works

      Description

      Hallo,

      I have created a put and delete Webscript. I have attached the put.desc.xml file and the delete.desc.xml file with their presentation ftl files.

      All files are inside following directory: WEB-INF/classes/alfresco/web-extension/site-webscripts/amin/"

      As you see the files are correct. In Share the WebScript overview (/share/page/index/all) is also showing that the declared WebScripts are available (for DELETE and PUT Method). But I get following exception when I try to execute the DELETE Webscripts (As you see server is answering that DELETE is not supported which can not be so, when you take a look to the desc.xml file):

      DELETE http://localhost:8080/share/page/amin/delete

      – response –
      405 Method Not Allowed
      Server: Apache-Coyote/1.1

      Allow: POST, HEAD, GET

      Content-Type: text/html;charset=utf-8

      Content-Length: 1051

      Date: Fri, 24 May 2013 15:16:00 GMT

      <html><head><title>Apache Tomcat/7.0.30 - Error report</title><style><!--H1

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}

      H2

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}

      H3

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}

      BODY

      {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}

      B

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}

      P

      {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}

      A

      {color : black;}

      A.name

      {color : black;}

      HR

      {color : #525D76;}

      --></style> </head><body><h1>HTTP Status 405 - Request method 'DELETE' not supported</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>Request method 'DELETE' not supported</u></p><p><b>description</b> <u>The specified HTTP method is not allowed for the requested resource.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.30</h3></body></html>

        Attachments

          Activity

            People

            • Assignee:
              closedissues Closed Issues
              Reporter:
              kroast Kevin Roast [X] (Inactive)
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: