Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

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

Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Olivier
Hello
I am having trouble with my site in Chrome V60+ with Orbeon 4.4.
This is a known problem for versions 4.4 and lower, I imagine it comes from the deprecation of something in Chrome V60+.

My main problem is that I cannot for the moment recompile or use a precompiled Orbeon CE version as there has been some personilization in it, several things I am working on in my architecture.

I hope(d) I could fi the issue I have by modifying the resource_packaged which are directly in my deployed site.

Here is a description of my problem :
I have several instances, with params in it stating if the form is in read mode, write mode, differents ids etc.

I tried using triggers with setvalues and getvalues and from my understanding, the setvalues are ok, but the form does not refresh to match any changed values of the underlying instance.
i.e. if I change ith as xforms:setvalue my param <root ui:mode-write='false>... to <root ui:mode-write='true'> my forms stay in read mode and does not reflect the change in instance.

this "only" in Chrome V60+ (works ok in FF and edge and Chrome V59 and lower).

more details :
I put the following in my form :

                        <xforms:trigger  appearance="minimal">
                            <xforms:label>Open the element</xforms:label>
                            <xforms:hint>Navigate to the chosen element. </xforms:hint>
                            <xforms:action ev:event="DOMActivate">
                            <!-- modify the node used as temporary buffer for javascript parameter. is writen to the input field -->
                             <xforms:setvalue  ref="instance('temp-instance')/temp-id" value="instance(foo-instance')/root/foo@id"/>
                            <!-- retrieve the parameter in the input field in the document. -->
                             <xxforms:script ev:event="DOMActivate">
                                     window.alert("found Value :"+ORBEON.xforms.Document.getValue("temp-id-input"));
                            </xxforms:script>
                            </xforms:action>
                        </xforms:trigger>


With this line present in my main form body

<xforms:input ref="instance('temp-instance')/temp-id" id="temp-id-input" style="display: none"/>


2 checks I added :
                <xforms:trigger>
            <xforms:label>Press for show target</xforms:label>
            <xforms:message level="modal" ev:event="DOMActivate" value="instance('temp-instance')/temp-id"/>
         </xforms:trigger>

--> returns the correct content that whas just set

                 <xforms:trigger>
            <xforms:label>Press for show target input for orbeon</xforms:label>
            <xxforms:script ev:event="DOMActivate">
                         window.alert("ORBEON.xforms.Document.getValue :"+ORBEON.xforms.Document.getValue("temp-id-input"));
            </xxforms:script>
         </xforms:trigger>
 
--> returns the correct content that was just set In FF and Chrome V59-
Returns "" in Chrome V60+
     
I am trying to implement the changes in AjaxServer.Js described in the

Use jQuery to get elements with prefix, fix https://github.com/orbeon/orbeon-forms/issues/1461

but it does not seem to be the correct solution.

I also tried to get http://blog.orbeon.com/2014/01/orbeon-forms-441-pe.html

but with same lack of success

Any idear what I could try to backport in the resourcepackaged orbeon code 4.4 ?
any refs to commits that may fix the issue ?

Do not hesitate to contact me for any additional information or if you may have a hint on how to fix this.
Or even if you think you can spent some time on the problem.

Best regards
Olivier

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Alessandro  Vernet
Administrator
Hi Olivier,

So you're saying that you also have this problem with Orbeon Forms PE 4.4.1
with Chrome 60. Is that correct? If so, would you be able to create
a minimal example that reproduces the problem, that we can run here, and
attach it a response so we can look into it?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Olivier000
Hello Alessandro.
I may not have been clear, sorry.
I mean that I use a modified version 4.4CE but I cannot make it evolve due
to several problems to 4.5.

I think Erik told me that I could try to backport the commits I linked
(which is true make a link to a 4.4.1PE edition).

From what you told me It seems that 4.4.1 would solve the problem but I
cannot succeed in modifying my version to make it work, mainly because I
think I can only access the packaged resources.

But maybe am i doing something wrong ?

Ideally if I could spot the exact commits you put on 4.4CE to go to 4.4.1CE
(there is a tag on gitblit like this) which solve the issue my website would
be ok again on Chrome.

Any help welcome.

Best regards


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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Alessandro  Vernet
Administrator
Hi Olivier,

The exact commit is linked from issue #1461. Are you already tried applying
it on the version you're using?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Olivier000
Hello Alessandro.
We definitely ported the 10 lines in AjaxServer.js, without any effect on
the behaviour.

Would you have any idear of linked commits we would also have to include ?

Best regards
Olivier

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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Olivier000
<http://discuss.orbeon.com/file/t375623/Chrome60.png>
Here a copy of the network path when clicking

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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Alessandro  Vernet
Administrator
Olivier, if you aren't seeing any differences, maybe the minimized version of
that file (-min.js) wasn't produced? Could you double check that, and if
you're "patching" Orbeon Forms manually, also generate the -min.js file?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Olivier000
Hi again
I just tried minifying je AjaxServer.js manually, I put the
AjaxServer-min.js directly on the deployed glassfish app where the previous
one was.

But still the same thing in my form runner, no modification on the form
displayed, it stays in read even though I pressed the "modify" button.

Does the network fils called seem ok to you (my previous snapshot) ?

Any other idea ?

Best regards
Olivier

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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Olivier000
Could it have something to do with :
https://developers.google.com/web/updates/2016/08/removing-document-write

I have this in the log console when I try press the "modify" button of the
top section (I do not have any message if I try to modify the sections
underneath

<http://discuss.orbeon.com/file/t375623/Chrome60_Orbeon_2.png>

I am continuing my searches...

Thanks

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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Alessandro  Vernet
Administrator
Olivier, I don't think it has something to do with `document.write()`. Can
you try disabling minimal (`oxf.xforms.minimal-resources`) and combined
(`oxf.xforms.combine-resources`) resources (see link below for the doc on
those properties), and see if you changes are taken into account?

https://doc.orbeon.com/configuration/properties/xforms.html

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Olivier000
Goor, Getting closer.
I tried with both minimal and combined deactivated and THERE it works.

I reactivated minimal -> still OK
I reactivated combined -> KO

Did I miss a file that is made for "combined" js ?

Thanks very much already as I have a workaround, even though, from what I
understand, it is going to be slower to use.

Best regards
Olivier

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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Alessandro  Vernet
Administrator
Olivier, so minimal is good, but combined is causing the problem; indeed,
this is progress :). Have you tried restarting the server? If that doesn't
do it, can you try emptying the cache in your browser or doing a force
reload?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Olivier000
Previous to putting combine-resources to false,
I had tried emptying all generated and osgi cache in my glassfish server +
emptying cache on the client side.

Could the combine resources get an old version of AjaxServer from somewhere
else ? a compiled version in a local war ?

best regards
Olivier



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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Alessandro  Vernet
Administrator
Olivier, yes the minimized version is in a jar, along the non-minimized
version, but I assume you updated it as well, right?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Olivier000
Good evening Alessandro.
The minimized version seems ok as it works with minimized = true,
It is the combine-resources which has to be false.

Any idea why the combine-resource would fail to get the js (normal or min)
which are in the resource-packaged directory ?
Best regards and thanks a lot already for the fallback which allows us to
continue with Chrome
Olivier

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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Alessandro  Vernet
Administrator
Hi Olivier,

Indeed, you're right: if it's working with just minimal-resources = true,
then the minimized file in the jar must be OK. Using the combined resources
alone, can you check the combined file served to the browser and check that
your patch isn't there? Next, can you check if you have a file with that
name anywhere on disk?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Olivier000
Hello Alessandro
What is the name of the file I should be looking for ? tried "*-combined"
but nothing found.

Thanks for the great help
Olivier


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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Alessandro  Vernet
Administrator
Hi Olivier,

Check what is the combined file loaded by the browser that contains the
"old" code, and see if can find a file by the same name on the server. With
newer versions, they file path looks as follows:

/xforms-server/f2cd7dc309043fd412193cb0d7b459855aa44b3f/orbeon-42b5746d9a0096ef8779e03d0488ec3a31da4abf.js

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Olivier000
Hello Alessandro.
I did not find any file matching that format on our server, but we had to
reactivate the "combined" option nevertheless because putting it to "false"
had the effect that when on a write form (xforms:input) of a number, the
number would not appear anymore.

The number is there in the instance, (so read is ok) but going in write mode
just shows a blank place where you can put a new number, but the present
value is not shown.
And as all the writable number fields are empty, the form cannot be
submitted again.

Any idea where that could be avoided ?
So we could have the numbers AND the chrome modification possibilities ?

Any help welcome.
Best regards anyway

Olivier

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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Form not reflecting instance changes (Personalized Orbeon 4.4CE in Chrome V60+), was ok before

Olivier000
This post was updated on .
In reply to this post by Alessandro Vernet
Hi again
After a little more research, we spotted, as you thought so, that the
AjaxServer.js and AjaxServer-min.js which were in the
generated/jsp/web-app/loader_NNNNNNNNN were not correct.

copy/pasting the right ones there allows us to put back to "true" the
combine option, which gets rid of the number problem.

Our site works, with number OK and under Chrome 60+, but we have to do the copy / pasting after every update.
A relief but a bit of a hassle to do that cp.

Any idear where the loader could take those old versions from ?


Best regards
Olivier

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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orbeon+unsubscribe@googlegroups.com.
To post to this group, send email to orbeon@googlegroups.com.
12