1*cdf0e10cSrcweirThe folder contains extensions which need to be updated through a web site.
2*cdf0e10cSrcweirThe "Updates dialog" of the Extension Manager will mark the updates for these
3*cdf0e10cSrcweirextensions as "browser based update". The Extension Manager will open a browser
4*cdf0e10cSrcweirfor each of the extensions and navigate to the respective website.
5*cdf0e10cSrcweir
6*cdf0e10cSrcweir================================================================================
7*cdf0e10cSrcweirweb1.oxt - web5.oxt:
8*cdf0e10cSrcweir================================================================================
9*cdf0e10cSrcweirThey contain <update-information>. That is they reference directly the respective
10*cdf0e10cSrcweirwebX.update.xml (for example, web1.update.xml) files which are available at
11*cdf0e10cSrcweirhttp://extensions.openoffice.org/testarea/desktop/website_update/update/...
12*cdf0e10cSrcweirFor example:
13*cdf0e10cSrcweirhttp://extensions.openoffice.org/testarea/desktop/website_update/update/web2.update.xml
14*cdf0e10cSrcweir
15*cdf0e10cSrcweirThe update information contain multiple URLs to "localized" web sites. Each URL is
16*cdf0e10cSrcweirassigned to a particular local. For example:
17*cdf0e10cSrcweir
18*cdf0e10cSrcweir<src xlink:href="http://extensions.openoffice.org/testarea/desktop/website_update/update/web1_de.html" lang="de"/>
19*cdf0e10cSrcweir
20*cdf0e10cSrcweirThe Extension Manager will choose the URLs where the lang attribute matches most
21*cdf0e10cSrcweirclosely the locale of the office.
22*cdf0e10cSrcweir
23*cdf0e10cSrcweirThe following table shows what localized web site  is used, when the office uses the locale
24*cdf0e10cSrcweiren-US. The web page will display the locale used. See update/web1_de.html, etc.
25*cdf0e10cSrcweir
26*cdf0e10cSrcweir
27*cdf0e10cSrcweirLocalization:
28*cdf0e10cSrcweir
29*cdf0e10cSrcweirInstalled office en-US
30*cdf0e10cSrcweir         | publisher     | release notes
31*cdf0e10cSrcweir=============================================
32*cdf0e10cSrcweirweb1.oxt | en-US         | en-US
33*cdf0e10cSrcweir---------------------------------------------
34*cdf0e10cSrcweirweb2.oxt | en-US-region1 | en-US-region1
35*cdf0e10cSrcweir---------------------------------------------
36*cdf0e10cSrcweirweb3.oxt | en            | en
37*cdf0e10cSrcweir---------------------------------------------
38*cdf0e10cSrcweirweb4.oxt | en-GB         | en-GB
39*cdf0e10cSrcweir---------------------------------------------
40*cdf0e10cSrcweirweb5.oxt | de            | de
41*cdf0e10cSrcweir
42*cdf0e10cSrcweir
43*cdf0e10cSrcweir================================================================================
44*cdf0e10cSrcweirweb6.oxt
45*cdf0e10cSrcweir================================================================================
46*cdf0e10cSrcweirNeed not be committed in extensions/www/testarea/desktop.
47*cdf0e10cSrcweir
48*cdf0e10cSrcweirweb6.oxt is intended for tests with extensions.services.openoffice.org.
49*cdf0e10cSrcweirIt does not contain <update-information>. That is, the Extension Manager will obtain
50*cdf0e10cSrcweirthe update information from the repository as feed:
51*cdf0e10cSrcweir
52*cdf0e10cSrcweirhttp://updateext.services.openoffice.org/ProductUpdateService/check.Update
53*cdf0e10cSrcweir
54*cdf0e10cSrcweirTest
55*cdf0e10cSrcweir----
56*cdf0e10cSrcweirRepository:
57*cdf0e10cSrcweir
58*cdf0e10cSrcweir-Create the new extension in the repository.
59*cdf0e10cSrcweir-Provide a company name and a URL to the company website. In our case this should be
60*cdf0e10cSrcweir http://extensions.openoffice.org/testarea/desktop/website_update/update/web1_en-US.html
61*cdf0e10cSrcweir
62*cdf0e10cSrcweir-Create a new release for the extension. Upload the description.xml of version 2.0
63*cdf0e10cSrcweir(update/web6/description.xml). Provide a download URL for the web site (field
64*cdf0e10cSrcweir "Download from page / Open follow up page URL", which should be
65*cdf0e10cSrcweir  http://extensions.openoffice.org/testarea/desktop/website_update/update/web1_en-US.html
66*cdf0e10cSrcweir  Provide release notes.
67*cdf0e10cSrcweir
68*cdf0e10cSrcweir
69*cdf0e10cSrcweirOffice:
70*cdf0e10cSrcweir-Install version 1.0 of the extension:
71*cdf0e10cSrcweir desktop/test/deployment/update/website_update/web6.oxt
72*cdf0e10cSrcweir
73*cdf0e10cSrcweir-Run the update in the Extension Manager
74*cdf0e10cSrcweir
75*cdf0e10cSrcweir
76*cdf0e10cSrcweirResult:
77*cdf0e10cSrcweirThe Update Dialog should show the publisher name as provided in "Provider URL" field
78*cdf0e10cSrcweirof the extension edit page (not release).
79*cdf0e10cSrcweir
80*cdf0e10cSrcweirA release notes link is displayed with an URL to the release notes as provided in
81*cdf0e10cSrcweirthe "Provider Title" field of the extension release edit page.
82*cdf0e10cSrcweir
83*cdf0e10cSrcweirWhen running the update then the web browser should navigate to
84*cdf0e10cSrcweirhttp://extensions.openoffice.org/testarea/desktop/website_update/update/web1_en-US.html
85*cdf0e10cSrcweir
86*cdf0e10cSrcweir
87*cdf0e10cSrcweir================================================================================
88*cdf0e10cSrcweirweb7.oxt
89*cdf0e10cSrcweir================================================================================
90*cdf0e10cSrcweirNeed not be committed in extensions/www/testarea/desktop
91*cdf0e10cSrcweir
92*cdf0e10cSrcweirweb7.oxt is intended for tests with extensions.services.openoffice.org.
93*cdf0e10cSrcweirIt does not contain <update-information>. That is, the Extension Manager will obtain
94*cdf0e10cSrcweirthe update information from the repository as feed:
95*cdf0e10cSrcweir
96*cdf0e10cSrcweirhttp://updateext.services.openoffice.org/ProductUpdateService/check.Update
97*cdf0e10cSrcweir
98*cdf0e10cSrcweirThe description.xml which will be uploaded contains URLs for release notes and publisher
99*cdf0e10cSrcweirnames/ URLs. That is, these information are not generated from the information of the
100*cdf0e10cSrcweirrepository web site.
101*cdf0e10cSrcweir
102*cdf0e10cSrcweirTest
103*cdf0e10cSrcweir-----------
104*cdf0e10cSrcweirRepository:
105*cdf0e10cSrcweir
106*cdf0e10cSrcweir-Create the new extension in the repository.
107*cdf0e10cSrcweir-Provide a company name and a URL to the company website. In our case these should be different
108*cdf0e10cSrcweir to those provided in the description.xml. These should NOT go into the update feed.
109*cdf0e10cSrcweir Choose for example as "Provider Title": FOO and as "Provider URL" some valid URL but NOT
110*cdf0e10cSrcweir http://extensions.openoffice.org/testarea/desktop/website_update/update/web1_en-US.html
111*cdf0e10cSrcweir
112*cdf0e10cSrcweir-Create a new release for the extension. Upload the description.xml of version 2.0
113*cdf0e10cSrcweir(update/web7/description.xml). Provide a download URL for the web site (field
114*cdf0e10cSrcweir "Download from page / Open follow up page URL", which should be
115*cdf0e10cSrcweir  http://extensions.openoffice.org/testarea/desktop/website_update/update/web1_en-US.html
116*cdf0e10cSrcweir  Provide release notes.
117*cdf0e10cSrcweir
118*cdf0e10cSrcweirOffice:
119*cdf0e10cSrcweir-Install version 1.0 of the extension:
120*cdf0e10cSrcweir desktop/test/deployment/update/website_update/web7.oxt
121*cdf0e10cSrcweir
122*cdf0e10cSrcweir-Run the update in the Extension Manager
123*cdf0e10cSrcweir
124*cdf0e10cSrcweirResult:
125*cdf0e10cSrcweirThe Update Dialog should show the publisher name as provided in the description.xml.
126*cdf0e10cSrcweirThat is: My OpenOffice en-US and NOT "FOO".
127*cdf0e10cSrcweir
128*cdf0e10cSrcweirA release notes link is displayed with an URL to the release notes as provided in
129*cdf0e10cSrcweirthe description.xml. That is:
130*cdf0e10cSrcweirhttp://extensions.openoffice.org/testarea/desktop/publisher/release-notes_xxx.html
131*cdf0e10cSrcweir
132*cdf0e10cSrcweirWhen running the update then the web browser should navigate to
133*cdf0e10cSrcweirhttp://extensions.openoffice.org/testarea/desktop/website_update/update/web1_en-US.html
134