Uploaded image for project: 'JCommune'
  1. JCommune
  2. JC-1967

The server redirects to the deleted post

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.9 Larks, 2.11 Larks
    • Fix Version/s: 3.2 Larks
    • Labels:
      None

      Description

      When there're several posts in a topic and the first post is deleted, the server redirects to the deleted post:
      "POST /jcommune/posts/565 HTTP/1.1" 302 - (Delete the first post)
      Response code: 302
      Location: http://192.168.0.98:8080/jcommune/posts/565

      "GET /jcommune/posts/565 HTTP/1.1" 302 -
      "GET /jcommune/errors/404 HTTP/1.1" 404 9445

      This problem doesn't affect the end user, because it's possible to delete a first post only using direct HTTP request.

      Steps to reproduce:
      1. Login as administrator
      2. Create a topic in any branch
      3. Create several posts in the topic
      4. Send POST request with _method=DELETE for the first post in the topic.

      Actual Result: the server redirects to deleted post and as result, redirects to 404 page.

        Attachments

          Structure

            Activity

              People

              • Assignee:
                askir Alexey Kirillov
                Reporter:
                ilyaa Ilya Ageev
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Structure Helper Panel