Uploaded image for project: 'Archive of Our Own'
  1. AO3-5008

Subscriptions being created with invalid subscribable types

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Medium
    • Resolution: DeployedToBeta
    • Affects Version/s: 0.9.192
    • Fix Version/s: 0.9.198
    • Milestone:
      Internal 0.9
    • Difficulty:
      Medium
    • Roadmap:
      Subscription
    • Components:
      BackEnd

      Description

      The problem:
      We've found some subscriptions for invalid subscribable types.

      Because the types we've found are in Russian, we suspect this is due to a translation tool modifying the page source.

      Steps to reproduce:
      1. Go to a work/series/user that you are not subscribed to
      2. Right click on 'Inspect Element'
      3. Change "User" to "Pseud" in "<input class="text" id="subscription_subscribable_type" name="subscription[subscribable_type]" type="hidden" value="User">" (or change 'Work' or 'Series') and "<input class="text" id="subscription_subscribable_id" name="subscription[subscribable_id]" type="hidden" value="23423">" to a valid Pseud id.
      4. Click subscribe. You should get a confirmation message.

      What should happen instead
      We should validate the subscribable type so the subscription is not created if the subscribable type is wrong.

        Attachments

          Activity

            People

            • Assignee:
              cresenne cresenne
              Reporter:
              sarken sarken
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: