forked from comunes/kune
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.wave-import
71 lines (54 loc) · 3.11 KB
/
README.wave-import
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
* README Wave Import
This document was originally written for documenting the export of all the waves from the old Google Wave and import them in Wave In A Box (WIAB), nowadays known as Apache Wave. This may be also valid to export/import waves from an Apache Wave instance to another.
IMPORTANT: Nowadays there is another utility to do this, distributed within Apache Wave, that aims to simplify things:
https://github.com/apache/wave/blob/trunk/README.export-import
The current document describes the process without that utility.
In order to run the mentioned .sh scripts, you may need to download the necessary scripts from
https://github.com/vega113/WaveImport
** Features:
- Import all the waves in which specified user is a participant.
- Wave Id's and wavelet Id's remain same, except domains.
- Domains of participants are renamed to Wiab server domain.
- Attachments are not imported nowadays.
** Get Google OAuth application Id:
- Go to https://code.google.com/apis/console/.
- Create a new project.
- Click on "API Access" on the left, then "Create an OAuth2.0 client id".
- Enter a product name. Leave the logo empty. Click "Next".
- Application type: Installed application.
- Click "Create client ID".
Make sure to you have compiled WIAB by running the following command:
ant dist
** Export waves from GWave to JSon files:
Run
./run-export.sh <ClientId> <ClientSecret> <ParticipantId> <ExportDir> [-i IncludeWavesList] [-e ExcludeWavesList]
Parameters are:
ClientId - Google application Id;
ClientSecret - Google application secret;
ParticipantId - Wave participant name, for example [email protected];
ExportDir - directory to write export files;
IncludeWavesList - optional, list of waves to include,
for example googlewave.com!w+9aLgzbTk0u googlewave.com!w+Cl2NTbgKCW;
ExcludeWavesList - optional, list of waves to exclude.
Note: For Linux machines you might need to prepend the "!" with "\", i.e.
googlewave.com!w+9aLgzbTk0u -> googlewave.com\!w+9aLgzbTk0u
Copy/paste URL from console to browser. Press Enter.
Copy/paste URL received code from browser to console.
** Import waves to WIAB:
Enable the import waves feature in server.config
enable_import = true
Run
./run-import.sh <WaveServerImportUrl> <WaveServerDomain> <ExportDir>
Parameters are:
WaveServerImportUrl - URL of import service, for example http://localhost:9898/import;
WaveServerDomain - domain of WIAB server, for example local.net;
ExportDir - directory with exported waves.
** TROUBLESHOOTING
In order to properly import, you may need to do some changes in the WIAB code, as indicated in:
https://github.com/vega113/WaveImport/blob/master/README
Take into account you should compile with "ant" the wave code after the changes, for the "http://localhost:9898/import" to work. You will know your /import works if from a browser it outputs the following:
HTTP ERROR 405
Problem accessing /import. Reason:
HTTP method GET is not supported by this URL
Powered by Jetty://
A "Not found" and similar results show the WIAB source code is not incorporating properly the "/import".