Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-32140

Polls vote via POST to /direct results in 405

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.2
    • Fix Version/s: 12.0
    • Component/s: Entity Broker, Polls
    • Labels:
      None
    • Test Plan:
      Hide

      1. Create a poll with an option.
      2. In Resources, create a HTML page with this Source:

      <form action="https://trunk-mysql.nightly.sakaiproject.org/direct/polls/vote" method="post">
      pollId:<br>
      <input type="text" name="pollId" value="<insert_poll_id>"><br>
      pollOption:<br>
      <input type="text" name="pollOption" value="<insert_poll_option_id>"><br><br>
      <input type="submit" value="Submit">
      </form>

      and save it.
      3. Click on the page.
      4. Click submit and make the poll has been voted for and doesn't take you to a 405 page.

      Show
      1. Create a poll with an option. 2. In Resources, create a HTML page with this Source: <form action="https://trunk-mysql.nightly.sakaiproject.org/direct/polls/vote" method="post"> pollId:<br> <input type="text" name="pollId" value="<insert_poll_id>"><br> pollOption:<br> <input type="text" name="pollOption" value="<insert_poll_option_id>"><br><br> <input type="submit" value="Submit"> </form> and save it. 3. Click on the page. 4. Click submit and make the poll has been voted for and doesn't take you to a 405 page.

      Description

      If you try and vote for a poll using a form in Resources like this:

      <form action="https://trunk...../direct/polls/vote" method="post">
      pollId:<br>
      <input type="text" name="pollId" value="982"><br>
      pollOption:<br>
      <input type="text" name="pollOption" value="3703"><br><br>
      <input type="submit" value="Submit">
      </form>

      you get your vote saved to the db but it takes you to a nonexistent page.

      Full error message is:
      HTTP Status 405 - Access Provider: Attempted to access an entity URL path (/polls/new.html) using method (POST) for an entity (/polls) and view (new) when there is no access provider to handle the request for prefix (polls)

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                nickwilson Nick Wilson
                Reporter:
                nickwilson Nick Wilson
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration