• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5019: if you get a lease conflict when using EditTablePlugin, the oops conflict output link is unusable

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine EditTablePlugin Urgent Closed   minor 4.2.0

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

re-worded from Kenneth's report in Item5014

When you edit a table with EditTablePlugin and get a lease conflict with someone the edit again and break anyway buttons send you to normal view mode.

-- TWiki:Main/KennethLavrsen - 23 Nov 2007



<verbatim><form action="/cgi-bin/TWikiRelease04x02/bin/view/Sandbox/EditTablePlugin" method="post">
To edit the topic anyway, click </verbatim>

EditTablePlugin is using the view script, because editing / adding a row is a view operation, but because the plugin is written to use #edittable1 it breaks the oopsconflict message - losing the =#edittable1=

-- SvenDowideit - 24 Nov 2007

It would need to pass aditional parameters:

  • viewauth instead of view
  • ettablenr=1 (or any other table number)
  • etedit=on
Somehow these would need to get passed to oops.

-- TWiki:Main.ArthurClemens - 02 Dec 2007

other options:

  • EditTablePlugin could have its own oops tmpl or message
  • EditTablePlugin could could use a more 'standard' trigger, using urlparams that are not lost

but i guess these are fo the future?

-- TWiki:Main.SvenDowideit - 09 Dec 2007

As Sven mentioned on IRC, the plugin throws the oops error itself. Instead of redirecting to the default oops page, it can redirect to a special edittableplugin oops, passing the url parameters.

-- TWiki:Main.ArthurClemens - 09 Dec 2007

I think that an easy work around is to change to a normal oops that warns that the topic is being edited by someone else and that you can edit and save the topic in a normal edit mode to break the lock.

Not elegant but would be an OK work around for 4.2

-- TWiki:Main.KennethLavrsen - 10 Dec 2007

The simple solution was to pass the edit table parameters to the oops url. The rest is TWikiMagic.

-- TWiki:Main.ArthurClemens - 12 Dec 2007

ItemTemplate
Summary if you get a lease conflict when using EditTablePlugin, the oops conflict output link is unusable
ReportedBy TWiki:Main.SvenDowideit
Codebase 4.2.0, ~twiki4
SVN Range TWiki-4.3.0, Fri, 23 Nov 2007, build 15712
AppliesTo Engine
Component EditTablePlugin
Priority Urgent
CurrentState Closed
WaitingFor

Checkins TWikirev:15979 TWikirev:15980
TargetRelease minor
ReleasedIn 4.2.0
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r10 - 2008-01-22 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback