orlandov/vimfluence — Issue #5: confluence 4.0 not supported
Author: timesselens
Created: 2011-11-18 13:12:20+00:00
State: open

vimfluence seemingly does not support confluence 4.0

I tried replacing the externals dir with 'confluence-cli-2.3.0-SNAPSHOT-distribution.zip', making a few path changes here and there.

https://bitbucket.org/bob_swift/confluence-cli/downloads/confluence-cli-2.3.0-SNAPSHOT-distribution.zip

It seems the getPage/getPageSource returns the HTML instead of text in confluence 4

anything I can test?

diff:

@@ -130,7 +131,7 @@ sub _run_cmd {
my ($params) = @_;

my $cmd = "java -jar \""
- . confluence_path . "/release/confluence-cli-1.5.0.jar\" "
+ . confluence_path . "/lib/confluence-cli-2.3.0-SNAPSHOT.jar\" "
. join(" ", @$params);
open my $fh, $cmd . "|"
or die "Couldn't execute confluence cli script: '$cmd'\n";
@@ -149,7 +150,7 @@ sub fetch_page {
my ($space, $title) = @_;

my $cmd = [ @{$self->{common_params}}
- , '-a' => 'getSource'
+ , '-a' => 'getPageSource'
, '--space' => $space
, '--title' => "\"$title\""
];