Unexpected output: Affected paths: no mapping - resubmit patch.
⚙ D212 MINB-26 - Don't persist data for anonymous users
Page MenuHomeIn-Portal Phabricator

MINB-26 - Don't persist data for anonymous users
ClosedPublic

Authored by alex on Mar 20 2016, 7:11 AM.

Details

Test Plan

Allow anonymous users to add topics

  • login to Admin Console
  • go to Website & ContentStructure & Data section
  • go to Sections tab
  • open Forums section for editing
  • go to Permissions tab
  • set User Group dropdown to Guest
  • switch to Topics tab in middle part of the modal window
  • uncheck Inherited and check Access checkbox for the Add Topic [TOPIC.ADD] permission
  • uncheck Inherited and check Access checkbox for the Add Topic Reply [TOPIC.REPLY.ADD] permission
  • save changes

Create section structure for forum

  • login to Admin Console
  • go to Website & ContentStructure & DataForums section
  • go to Sections tab
  • add new section called Group using New Section button
  • go to Website & ContentStructure & DataForumsGroup section
  • add new section called Topics using New Section button

Topic creation by anonymous user

  • go to Front-End
  • ensure, that you're not logged-in
  • go to ForumsGroupTopics page using top menu
  • click on New Topic button at the bottom of the page
  • confirm, that new topic add page is displayed
  • confirm, that following checkboxes on a form are unchecked:
    • "DIsable BB codes"
    • "Disable smileys"
    • "Show signature"
    • "Notify me about replies"
  • create new topic
  • go to ForumsGroupTopics page using top menu
  • confirm, that new topic from "Guest" poster is listed there
  • open up In-Portal debugger and scroll to session information
  • confirm, that "bb_posts" session key isn't present in there

Topic reply by anonymous user

  • go to Front-End
  • ensure, that you're not logged-in
  • go to ForumsGroupTopics page using top menu
  • open previously created topic
  • confirm, that "Reply" button is shown on top of the page
  • click on Reply button
  • confirm, that topic reply page is displayed
  • confirm, that following checkboxes on a form are unchecked:
    • "DIsable BB codes"
    • "Disable smileys"
    • "Show signature"
  • create reply
  • confirm, that redirect back to topic detail page is happened
  • confirm, that on topic detail page new reply is shown

Signatures are displayed for logged-in users

  • go to Front-End (in another browser)
  • perform login
  • click on My Preferences link in sidebar
  • click on Forums tab
  • check the Show Signatures and Show signature checkboxes
  • enter something in the Signature textarea
  • save changes by pressing Update button
  • go to ForumsGroupTopics page using top menu
  • open previously created topic
  • post a reply (see above how this is done)
  • confirm, that the signature is displayed below the new post

Signatures not displayed for anonymous users

  • go to Front-End
  • ensure, that you're not logged-in
  • go to ForumsGroupTopics page using top menu
  • open previously created topic
  • confirm, that the signature isn't displayed for any of the posts

Private message posting form has correct defaults

  • go to Front-End
  • perform login
  • click on Private Messages link in sidebar
  • click on New Private Message link on top of the page
  • confirm, that:
    • the DIsable BB codes checkbox is checked, when Enable BB Codes checkbox on My Preferences page is unchecked and via versa
    • the Disable smileys checkbox is checked, when Enable Smileys checkbox on My Preferences page is unchecked and via versa
    • the Show signature checkbox is checked, when Show signature checkbox on My Preferences page is checked and via versa

Diff Detail

Repository
rINP In-Portal
Branch
/in-portal/branches/5.2.x
Lint
Lint ErrorsExcuse: Array fixing will be done in 5.3.x.
SeverityLocationCodeMessage
Errormodules/in-bulletin/units/posts/posts_config.php:101PHPCS.E.CodingStandard.Array.Array.SpaceAfterKeywordCodingStandard.Array.Array.SpaceAfterKeyword
Errormodules/in-bulletin/units/posts/posts_config.php:101PHPCS.E.CodingStandard.Array.Array.SpaceAfterKeywordCodingStandard.Array.Array.SpaceAfterKeyword
Errormodules/in-bulletin/units/posts/posts_config.php:101PHPCS.E.Generic.PHP.LowerCaseKeyword.FoundGeneric.PHP.LowerCaseKeyword.Found
Errormodules/in-bulletin/units/posts/posts_config.php:101PHPCS.E.Generic.PHP.LowerCaseKeyword.FoundGeneric.PHP.LowerCaseKeyword.Found
Unit
No Unit Test Coverage
Build Status
Buildable 353
Build 353: arc lint + arc unit

Event Timeline

alex updated this revision to Diff 505.Mar 20 2016, 7:11 AM
alex retitled this revision from to MINB-26 - Don't persist data for anonymous users.
alex updated this object.
alex edited the test plan for this revision. (Show Details)
alex added 1 JIRA issue(s): MINB-26.
alex edited the test plan for this revision. (Show Details)Mar 20 2016, 7:11 AM
alex edited edge metadata.
alex edited the test plan for this revision. (Show Details)
glebs accepted this revision.May 3 2016, 2:29 AM
glebs edited edge metadata.
This revision is now accepted and ready to land.May 3 2016, 2:29 AM
This revision was automatically updated to reflect the committed changes.