Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Under certain conditions edits made by superuser are not being published [BUG] #196

Open
PleatherStarfish opened this issue Jan 7, 2022 · 0 comments

Comments

@PleatherStarfish
Copy link

PleatherStarfish commented Jan 7, 2022

I have a Django CMS page with a URL like this something.edu/dynamic/x/y/

We had a legacy static page at a URL like this something.edu/x/y/z.html

When we moved the sub-page into the CMS, the new subpage link needed to change to something.edu/dynamic/x/y/z/

For some reason our superuser account was also assigned various groups and granular permissions. I figured it didn't matter because superuser status should override all other permissions.

When this superuser made the edit to the djangocms-link on the parent page, the change appeared okay in edit mode. But when the superuser tried to "Publish" the change, the link still looked like this: <a href="./z.html"> In other words, trying to "Publish" the CMS page failed silently. The HTML on the CMS page didn't change, and the link was still broken. (I confirmed this in an incognito browser page and a second browser to make sure I wasn't viewing a cached version of the page.)

We removed the superuser from all groups and granular permissions. The superuser was then able to successfully edit the djangocms-link and publish the change.

By the way, the page we were trying to edit is a page that requires authentication via the page-specific "Login required" option. I have not been able to reproduce this bug when trying to edit other Django CMS pages. But removing the redundant permissions and groups from the superuser permissions did fix the problem. Yesterday I also encountered problems with making any edits to the text of the page with the superuser account. But today I was only able to reproduce this bug when trying to make edits to the djangocms-link plugin specifically. So I'm not 100% certain if it's a bug with CMS permissions more generally or with the djangocms-link plugin.

The bug was encountered on a site running django 3.2.6, django-cms 3.9.0, and djangocms-link 3.0.0.

@PleatherStarfish PleatherStarfish changed the title Under certain conditions edits made by superuser are being overridden by .html extension [BUG] Under certain conditions edits made by superuser are not being published [BUG] Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant