Hi all, So this morning my production environment (that uses orbeon
as a separate deployment w/ Tomcat) suddenly went weird (At least today is when
we noticed it). We tried restarting our tomcat server and that
obliterated our logs so I don’t know the exact date it started. Our forms populate an instance from a URL which is a GET
webservice. It looks like: <xforms:instance id="my-instance" src="http://myUrl?mycommand"/> When the user wants to save the form, we refresh that
instance to make sure they aren’t submitting data we already have in the
system using a submission (triggered by a <xforms:submit>) before calling
the save submission: <xforms:submission id="my-instance-refresh"
action="http://myUrl?mycommand" method="get" ref="instance('my-instance')"
replace="instance" instance="my-instance"> The issue that we’re seeing is that instead of just
sending http://myUrl to the server, the submission
was including everything that was already in the instance, which was confusing
the server and so we kept getting status 400 bad request returned. To illustrate, if, at the time of submission, the instance
looks like: <project> <id>10</id> <name>Bob</name> </project> <project> … it is sending: http://myUrl?mycommand&id=10&name=Bob&... Which we do NOT want. We just want it to use http://myUrl?mycommand We upgraded to build dev-post-3.7.1.201003230300 on 4/10 and
our test system is running the exact same version. The Java code is
the exact same between the two systems. We only see this on the production
system. I would offer an example for the sandbox but like I said, we can’t
figure out what is going on that caused this to happen in this system only. Thanks, Stephanie -- 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 |
Administrator
|
Stephanie,
I am not sure why you are seeing this only on one system and not another, but this unfortunately is per the XForms spec: by default, with the GET method, instance data is serialized as URL parameters. You can change this by adding the following attribute on xforms:submission: serialization="none". -Erik On Fri, Apr 23, 2010 at 10:25 AM, Stephanie Hall (TT) <[hidden email]> wrote: > Hi all, > > > > So this morning my production environment (that uses orbeon as a separate > deployment w/ Tomcat) suddenly went weird (At least today is when we noticed > it). We tried restarting our tomcat server and that obliterated our logs > so I don’t know the exact date it started. > > > > Our forms populate an instance from a URL which is a GET webservice. It > looks like: > > <xforms:instance id="my-instance" src="http://myUrl?mycommand"/> > > > > When the user wants to save the form, we refresh that instance to make sure > they aren’t submitting data we already have in the system using a submission > (triggered by a <xforms:submit>) before calling the save submission: > > <xforms:submission id="my-instance-refresh" action="http://myUrl?mycommand" > method="get" ref="instance('my-instance')" replace="instance" > instance="my-instance"> > > > > The issue that we’re seeing is that instead of just sending http://myUrl to > the server, the submission was including everything that was already in the > instance, which was confusing the server and so we kept getting status 400 > bad request returned. > > > > To illustrate, if, at the time of submission, the instance looks like: > > > > <project> > > <id>10</id> > > <name>Bob</name> > > </project> > > <project> > > … > > > > it is sending: > > > > http://myUrl?mycommand&id=10&name=Bob&... > > > > Which we do NOT want. We just want it to use http://myUrl?mycommand > > > > We upgraded to build dev-post-3.7.1.201003230300 on 4/10 and our test system > is running the exact same version. The Java code is the exact same between > the two systems. We only see this on the production system. I would offer > an example for the sandbox but like I said, we can’t figure out what is > going on that caused this to happen in this system only. > > > > Thanks, > > Stephanie > > -- > 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 > > -- 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 |
Free forum by Nabble | Edit this page |