Autosave Broken in 4.9?

classic Classic list List threaded Threaded
26 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Autosave Broken in 4.9? (and 4.10?)

bwallis42
This post was updated on .
Erik Bruchez wrote
That's correct. This is done by a filter (FormRunnerAuthFilter) since 4.9, see:
Interesting, this is where it stopped working for us, from 4.8.1 to 4.9.
Bingo! (I think, haven't tried fixing this yet)

Orbeon actually seems to work quite well without that filter as we do not have that filter defined in our web.xml. We re-package the orbeon war file as we have a different authentication setup which requires a filter of its own and uses our own forms based login popup page, we also include our own configuration files into our war file.

I'll have a look at the filter and include it into our filter chain and see what happens. I'll let you know how it goes.

thanks, I think I see the light at the end of the tunnel and this time it might not be the oncoming train :-)
Reply | Threaded
Open this post in threaded view
|

Re: Autosave Broken in 4.9? (and 4.10?)

Erik Bruchez
Administrator
Ha, great news! You'll let us know if the filter helps.

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: Autosave Broken in 4.9? (and 4.10?)

bwallis42
OK. So with the appropriate filter setup in our web.xml I am seeing autosave working reliably when I edit the form using either method ("edit" button from the view url or directly using the edit url).

Once there is a draft, if I then go to edit a form using the edit url I am prompted to choose the draft or not but if I view the form first and then edit  the form using the edit button then I don't get prompted.

The button definition is:

    <property as="xs:string" name="oxf.fr.detail.process.edit.cpf.*">
        edit
    </property>

The edit action doesn't seem to be checking if there are any drafts and prompting to use one if it exists. I can't see a way to code this in the action for the edit button. Does the edit action take any parameters? Is there a way to explicitly check if there are any drafts?

Should the edit action be doing this check for drafts itself?

thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Autosave Broken in 4.9? (and 4.10?)

Erik Bruchez
Administrator
Great that it is now working!

The other issue seems to match this one:

    https://github.com/orbeon/orbeon-forms/issues/2266

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: Autosave Broken in 4.9? (and 4.10?)

bwallis42
Erik Bruchez wrote
Great that it is now working!

The other issue seems to match this one:

    https://github.com/orbeon/orbeon-forms/issues/2266

-Erik
Would it be possible to change the process defined for the edit button displayed in the view page to navigate to the edit URL instead of just running the 'edit' action? This might end up asking each time about the draft but for me that is better than never asking at all.

thanks
Reply | Threaded
Open this post in threaded view
|

Re: Autosave Broken in 4.9? (and 4.10?)

bwallis42
I've just tried the following for the edit process

    <property as="xs:string" name="oxf.fr.detail.process.edit.cpf.*">
        navigate(uri="{replace(xxf:get-request-path(),'view','edit')}")
    </property>

and it seems to work, at least in the simple case I've tried so far.
12