Item12724: Can't save topic settings or topic permissions

pencil
Priority: Urgent
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: NatEditPlugin
Branches:
Reported By: LeilaPearson
Waiting For:
Last Change By: MichaelDaum
I'm running into a problem saving in NatEdit. I'm using the latest NatSkin and NatEdit with Foswiki 1.1.9. The problem is:
  • Changes to the topic text work fine - both in WYSIWYG mode and in wiki text mode
  • Changes to set the topic parent setting work fine
  • Changes to other things under settings - for example content language, but as far as I can tell any other settings on that tab - do not save and persist. For example, if I change the language to German, I can see that the html header still says 'en' after the change, and when I edit the topic again, the language selector shows "default". On the other hand, if I "Edit Topic Preferences" directly I can set CONTENT_LANGUAGE and it will be reflected in the Settings tab when I do a regular topic edit later. I still can't make any changes to it though.
  • Changes to the permissions tab also don't save and persist.

I've tried to debug this, but haven't had any luck narrowing it down so far, and I'm finding it tricky to trace through the code. There are no errors in any of the logs. It isn't clear to me how the "submit" of this form data is handled or should be handled on the client side, and correspondingly what server side scripts will be called. I do see that UI::Save is called on the server side, but that seems to be just for the topic text. What saves the settings? Even a theory or hint on where to look to find the root cause of the problem would be appreciated.

-- LeilaPearson - 20 Jan 2014

Does installing SetVariablePlugin help?

-- MichaelDaum - 21 Jan 2014

Yes! Thank-you so much. I guess this plugin needs to be added to the dependencies so others don't experience the same issue.

I did notice a puzzling issue when testing this out. I set the permissions to enable edit for only a particular user (an admin user in this case - but I don't think it should matter) and then logged out and logged in again as a non-admin user. For some reason I was able to edit the topic and the changes also saved correctly. However, after saving the changes I was no longer able to edit the topic. The option wasn't visible and using the edit URL resulted in permission denied, as expected. This is reproducible. Why wasn't the permission setting honored immediately?

By the way, I just wanted to say that I'm really liking the added functionality in NatSkin and related plugins compared to the vanilla PatternSkin I was using before. I'm sure my users will too once they get a chance to see it. Thanks for sharing these excellent plugins.

-- LeilaPearson - 21 Jan 2014

Dependencies seem to be asserted corrently now looking at the DEPENDENCIES file. Closing.

-- MichaelDaum - 01 Dec 2014
 

ItemTemplate edit

Summary Can't save topic settings or topic permissions
ReportedBy LeilaPearson
Codebase 1.1.9
SVN Range
AppliesTo Extension
Component NatEditPlugin
Priority Urgent
CurrentState Closed
WaitingFor
Checkins
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r4 - 01 Dec 2014, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy