assign document_id to new forms in orbeon 4.0

Locked 3 messages Options

Open this post in threaded view

assign document_id to new forms in orbeon 4.0

online

In orbeon 3.9 I create new forms with one of the url:s (both works)
/fr/[APPLICATION_NAME]/[FORM_NAME]/new/MY_DOCUMENT_ID
/fr/[APPLICATION_NAME]/[FORM_NAME]/edit/MY_DOCUMENT_ID

It is a very conveniant way to take control of document id generation
outside orbeon.

I am looking for a way to configure Orbeon 4 to make use of an assigned
document_id i new forms.

Any help would be appreciated
/Björn

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

Open this post in threaded view

Re: assign document_id to new forms in orbeon 4.0

online

Administrator

The reason is on this line:

This rejects a GET to /new if an id is not automatically generated.

I think this was done to prevent an external injection of a document id.

I am wondering what would be a reasonably safe solution to do this. I
don't think it's great if any user can modify the page URL to specify
a document id.

From where do you call that URL? Another app, or could you use a
Servlet forward?

On Tue, Dec 4, 2012 at 5:25 AM, Björn Molin <[hidden email]> wrote: