Uploaded image for project: 'Antarcticle'
  1. Antarcticle
  2. ANTARCTICLE-381

Incorrect error while trying to comment the deleted article

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.7 Penguins
    • Fix Version/s: backlog
    • Labels:
      None
    • Environment:

      Opera browser version: 28.0.1750.51
      OS: Windows XP 32-bit

      Description

      Steps to reproduce:
      1. Open your own article in two tabs
      2. Delete the article in the first tab
      3. In another tab without updating the page try to post a comment to the opened article (for ex: test comment)
      4. Press Post button

      Actual result: Followin error appears:

      Error: Execution exception[[MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`qa_antarcticle`.`comments`, CONSTRAINT `comment_article_fk` FOREIGN KEY (`article_id`) REFERENCES `articles` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION)]]
      

      Expected result: Error 404

        Attachments

          Structure

            Activity

              People

              • Assignee:
                julik Julia Atlygina
                Reporter:
                zouie Elena
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Structure Helper Panel