Skip to content

Keep the comment filter working after editing a comment (6.1.x) - #378

Open
snoopdave wants to merge 1 commit into
merge-6.1.8-rc2-into-6.1.xfrom
comments-filter-after-edit-6.1.x
Open

snoopdave wants to merge 1 commit into
merge-6.1.8-rc2-into-6.1.xfrom
comments-filter-after-edit-6.1.x

Conversation

@snoopdave

Copy link
Copy Markdown
Contributor

Greg Huber found on 6.1.8 RC2 that editing a comment on the Comments page, then clicking Filter, gives a 500.

  • The inline save uses up the page's form token and refreshed it only in the comments form; the filter form kept the spent one. Now every token field on the page is refreshed.
  • Checked locally on Jetty: edit then Filter, two edits then Filter, and Filter alone all load the list; before the fix, Filter after an edit returned 500.
  • Based on Bring roller-6.1.x up to the 6.1.8 RC2 tag #377 (RC2 → roller-6.1.x). I'll retarget this to roller-6.1.x once Bring roller-6.1.x up to the 6.1.8 RC2 tag #377 merges. Goes into 6.1.8 RC3.

Saving an edited comment used up the page's form token and refreshed it
only in the comments form, so the filter form then posted a spent token
and failed. Refresh every form token on the page.

@mraible mraible left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked on the RC2 source in Jetty with this change: after one edit, after two edits, and with no edit, Filter loads the list, and both salt fields hold the newly issued salt. Without it, Filter after an edit returns 500. CI will run once this is retargeted to roller-6.1.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants