Toolbox Persistence Layer in 2019

5 views
Skip to first unread message

bruno.buzzi

unread,
Nov 21, 2019, 1:05:22 PM11/21/19
to orb...@googlegroups.com
Erik/Alex,

Update GemStone/S Persistence Layer for Orbeon 2019 i got the following
situation:

On "Reload Toolbox" an error/warning is displayed:
An error occurred while reading form metadata

It seems related to the following rest service:
path:
'/form/{app}/{from}?all-versions={all-versions}&all-forms={all-versions}'

Until now for this service (in my PL) when an application or a form was not
found the answer was a 404 (not found).

But with this configuration i got the warning "An error occurred while
reading form metadata".

If instead of returning 404 the service return an empty form node
('<form/>') the error does not arise.

So can you confirm that in service
'/form/{app}/{from}?all-versions={all-versions}&all-forms={all-versions}'
when an application or form is not found the PL should answer '<form/>' ?

Another question is the following service has been deprecated ?
path: '/custom/{app-name}/builder/toolbox'

Because in previous Orbeon versions this service was called to show the
Library list inside Form Builder.

regards,
bruno

--
Sent from: http://discuss.orbeon.com/

Alessandro Vernet

unread,
Nov 22, 2019, 12:56:52 PM11/22/19
to orb...@googlegroups.com
Hi Bruno,

If no forms are found matching the search criteria, the form metadata API
should return an empty `<forms/>`. And yes,
`/fr/service/custom/([^/^.]+)/([^/^.]+)/toolbox` is still there. But this is
something internal to Form Runner. Are you overriding this service? If so,
for what purpose?

https://doc.orbeon.com/form-runner/api/persistence/forms-metadata

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet

bruno.buzzi

unread,
Nov 22, 2019, 3:13:22 PM11/22/19
to orb...@googlegroups.com
Alex,

Ok, got it. REST Service updated.

`/fr/service/custom/([^/^.]+)/([^/^.]+)/toolbox`

The current implementation in the PL answer the XML of the latest form
definition (of the library for a given application name).

I will test the entire PL with Orbeon 2019 to see if anything has changed.
But most of Orbeon 2019 features are working well with GemStone/S.

regards,
bruno

Alessandro Vernet

unread,
Nov 24, 2019, 9:04:58 PM11/24/19
to orb...@googlegroups.com
OK Bruno, great, and you'll just let us know if you find any issue with
2019.1 as you get use or test your GemStone/S integration more.

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply all
Reply to author
Forward
0 new messages