add-on url with query string and oxygen 19.1
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 8
- Joined: Tue Nov 15, 2011 12:53 pm
add-on url with query string and oxygen 19.1
Post by jonathangudgion »
add-on urls with a query string like http://mysite/addon.aspx?version=test used to work in oxygen 17 and 19
in 19.1 they now give an error
Description: Invalid update site. Cause: Premature end of file.
Is this by accident or design?
Thanks
Jonathan
in 19.1 they now give an error
Description: Invalid update site. Cause: Premature end of file.
Is this by accident or design?
Thanks
Jonathan
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: add-on url with query string and oxygen 19.1
Post by alex_jitianu »
Hello,
I can't think of anything we changed that might have affected this behavior. If you go to File->Open URL... and you paste the add-on url, do you see the expected content? Likewise, if you open this URL in a browser, does it return what you expect?
Best regards,
Alex
I can't think of anything we changed that might have affected this behavior. If you go to File->Open URL... and you paste the add-on url, do you see the expected content? Likewise, if you open this URL in a browser, does it return what you expect?
Best regards,
Alex
-
- Posts: 8
- Joined: Tue Nov 15, 2011 12:53 pm
Re: add-on url with query string and oxygen 19.1
Post by jonathangudgion »
File->Open Url opens the file as does a browser
Only the add-on related functionality doesn't work
The 3 add-on related options on the help menu all give the error "Description: Invalid update site. Cause: Premature end of file."
I've changed the log4j.properties file for oxygen and can see this in the output
18503 DEBUG [ pool-3-thread-1 ] ro.sync.net.protocol.http.WebdavHttpURLConnection - Construct a connection to {add-on-url}?version=live?_=1517400772759
so it looks like oxygen is adding ?_=1517400772759 (which I guess changes each time but haven't checked) to the add-on url, presumably to get fresh content something like that. But I'm guessing!
I've removed the value of add-on url but can provide logs via email if you want
Thanks
Jonathan
Only the add-on related functionality doesn't work
The 3 add-on related options on the help menu all give the error "Description: Invalid update site. Cause: Premature end of file."
I've changed the log4j.properties file for oxygen and can see this in the output
18503 DEBUG [ pool-3-thread-1 ] ro.sync.net.protocol.http.WebdavHttpURLConnection - Construct a connection to {add-on-url}?version=live?_=1517400772759
so it looks like oxygen is adding ?_=1517400772759 (which I guess changes each time but haven't checked) to the add-on url, presumably to get fresh content something like that. But I'm guessing!
I've removed the value of add-on url but can provide logs via email if you want
Thanks
Jonathan
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: add-on url with query string and oxygen 19.1
Post by alex_jitianu »
Hi,
Good catch! We add this parameter as a cache buster, to make sure we get a fresh version of the file. Unfortunately, we didn't take into account an already existing GET section. I will add an issue to fix this but until we release a new version, perhaps you can find an workaround on your side as well:
- perhaps on the server side, test if the value of the version parameter starts with "live"
- change a bit the URL to ensure that even after we append to the GET the version parameter has the correct value: {add-on-url}?version=live&a=
I'm sorry for the inconvenience...
Best regards,
Alex
Good catch! We add this
Code: Select all
?_=1517400772759
- perhaps on the server side, test if the value of the version parameter starts with "live"
- change a bit the URL to ensure that even after we append to the GET the version parameter has the correct value: {add-on-url}?version=live&a=
I'm sorry for the inconvenience...
Best regards,
Alex
-
- Posts: 417
- Joined: Mon May 09, 2016 9:37 am
Re: add-on url with query string and oxygen 19.1
Post by sorin_carbunaru »
Hello Jonathan,
I just wanted to let you know that in the recently released oXygen 20 we fixed the problem that you stumbled upon.
Thank you for using oXygen and for your feedback!
Best wishes,
Sorin Carbunaru
oXygen XML
I just wanted to let you know that in the recently released oXygen 20 we fixed the problem that you stumbled upon.
Thank you for using oXygen and for your feedback!
Best wishes,
Sorin Carbunaru
oXygen XML
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service