pve-apiclient.git
2 months agobump version to 3.0-1
Thomas Lamprecht [Tue, 21 May 2019 15:28:30 +0000 (17:28 +0200)]
bump version to 3.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agod/control: add defined ${perl:Depends} to dependency list
Thomas Lamprecht [Tue, 21 May 2019 14:47:49 +0000 (16:47 +0200)]
d/control: add defined ${perl:Depends} to dependency list

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agoset debian source format to 1.0
Thomas Lamprecht [Tue, 21 May 2019 14:46:45 +0000 (16:46 +0200)]
set debian source format to 1.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agodebian/rules should be executable
Thomas Lamprecht [Tue, 21 May 2019 14:46:27 +0000 (16:46 +0200)]
debian/rules should be executable

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agoMerge missing changelog entry
Dietmar Maurer [Wed, 24 Apr 2019 09:14:19 +0000 (11:14 +0200)]
Merge missing changelog entry

6 months agoGet version information from changelog
Rhonda D'Vine [Fri, 28 Dec 2018 17:24:07 +0000 (18:24 +0100)]
Get version information from changelog

The duplication of the version information both in the Makefile and in
debian/changelog is a potential error point, and an unneeded one.

Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
6 months agoAdd SOURCE file
Rhonda D'Vine [Fri, 28 Dec 2018 17:24:06 +0000 (18:24 +0100)]
Add SOURCE file

This package was missing the SOURCE information from the binary package.

Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
6 months agoAdd "make dsc" target
Rhonda D'Vine [Fri, 28 Dec 2018 17:24:05 +0000 (18:24 +0100)]
Add "make dsc" target

This target is required to make the package build automatically.

Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
13 months agobump version to 2.0-5
Dietmar Maurer [Tue, 19 Jun 2018 11:05:58 +0000 (13:05 +0200)]
bump version to 2.0-5

13 months agoadd make target to copy and include files from pve-common - update Exception.pm
Dietmar Maurer [Thu, 14 Jun 2018 07:59:17 +0000 (09:59 +0200)]
add make target to copy and include files from pve-common - update Exception.pm

17 months agobump version to 2.0-4
Wolfgang Bumiller [Mon, 22 Jan 2018 14:15:09 +0000 (15:15 +0100)]
bump version to 2.0-4

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
17 months agoavoid harmful '<>' pattern, explicitly read from STDIN
Thomas Lamprecht [Mon, 22 Jan 2018 09:52:13 +0000 (10:52 +0100)]
avoid harmful '<>' pattern, explicitly read from STDIN

Fixes problems in CLIHandler using the code pattern:

while (my $line = <>) {
    ...
}

For why this causes only _now_ problems lets first look how <>
behaves:

"The null filehandle <> is special: [...] Input from <> comes either
from standard input, or from each file listed on the command line.
Here's how it works: the first time <> is evaluated, the @ARGV array
is checked, and if it is empty, $ARGV[0] is set to "-" , which when
opened gives you standard input.  The @ARGV array is then processed
as a list of filenames." - 'perldoc perlop'

Recent changes in the CLIHandler code changed how we modfiied @ARGV
Earlier we assumed that the first argument must be the command and
thus shifted it out of @ARGV, now we can have multiple levels of
(sub)commands. This change also changed how we handle @ARGV, we do
not unshift anything but go through the arguments until we got to
the final command and copy the rest of @ARGV as we know that this
must be the commandos arguments.

For '<>' this means that ARGV was still fully populated and perl
tried to open element as a file, which naturally failed.
Thus the change in pve-common only exposed this 'dangerous' code
pattern.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agobump version to 2.0-3
Fabian Grünbichler [Wed, 17 Jan 2018 13:17:10 +0000 (14:17 +0100)]
bump version to 2.0-3

18 months agoraise exception if manual fingerprint verification failed
Thomas Lamprecht [Thu, 14 Dec 2017 10:12:06 +0000 (11:12 +0100)]
raise exception if manual fingerprint verification failed

If a fingerprint could not be verified automatically or manually
raise an exception to ensure that we do not continue with handling
the problematic or even evil response.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agouse new Exception.pm class to signal errors to caller
Thomas Lamprecht [Thu, 14 Dec 2017 10:12:05 +0000 (11:12 +0100)]
use new Exception.pm class to signal errors to caller

Allows a caller to acces the HTTP response code, which may be useful
to handle application logic. E.g., catching a HTTP_NOT_IMPLEMENTED
and fallback to an older method.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agoadd APIClient/Exception.pm class
Thomas Lamprecht [Thu, 14 Dec 2017 10:12:04 +0000 (11:12 +0100)]
add APIClient/Exception.pm class

As we do not want to depend on PVE libraries with this I forked of
the PVE::Exception class, removed all raise_* methods so that only
raise() itself was left over.

Also some minor adaptions to newer style for exporting where used.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
19 months agobuildsys: also cleanup *.buildinfo files
Thomas Lamprecht [Thu, 14 Dec 2017 10:38:17 +0000 (11:38 +0100)]
buildsys: also cleanup *.buildinfo files

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
19 months agoadd missing if
Fabian Grünbichler [Tue, 12 Dec 2017 10:02:48 +0000 (11:02 +0100)]
add missing if

19 months agocleanup Net::SSLeay error handling
Fabian Grünbichler [Mon, 27 Nov 2017 09:18:48 +0000 (10:18 +0100)]
cleanup Net::SSLeay error handling

X509_get_fingerprint does not die - it only returns undef in case of
errors (or segfaults if the $cert pointer is invalid).

21 months agobuild: reformat debian/control
Fabian Grünbichler [Wed, 4 Oct 2017 09:05:33 +0000 (11:05 +0200)]
build: reformat debian/control

using wrap-and-sort -abt

2 years agobump version to 2.0-2
Dietmar Maurer [Thu, 6 Apr 2017 09:04:48 +0000 (11:04 +0200)]
bump version to 2.0-2

2 years agoallow to specify cookie_name
Dietmar Maurer [Thu, 6 Apr 2017 09:03:41 +0000 (11:03 +0200)]
allow to specify cookie_name

2 years agobump version tp 2.0-1 for debain stretch
Dietmar Maurer [Fri, 10 Mar 2017 08:07:50 +0000 (09:07 +0100)]
bump version tp 2.0-1 for debain stretch

Makefile: use "--product pmg,pve --dist stretch" for upload target

2 years agoperftest1.pl: another example
Dietmar Maurer [Wed, 28 Dec 2016 10:35:30 +0000 (11:35 +0100)]
perftest1.pl: another example

2 years agoexample2.pl: add a second example
Dietmar Maurer [Wed, 28 Dec 2016 10:04:37 +0000 (11:04 +0100)]
example2.pl: add a second example

2 years agoexample1.pl: remove unnecessary perfix /api2/json/
Dietmar Maurer [Wed, 28 Dec 2016 09:52:09 +0000 (10:52 +0100)]
example1.pl: remove unnecessary perfix /api2/json/

2 years agoexample1.pl: use warnings instead of -w flag
Dietmar Maurer [Wed, 28 Dec 2016 09:49:20 +0000 (10:49 +0100)]
example1.pl: use warnings instead of -w flag

2 years agoadd simple example code, bump version to 1.0-2
Dietmar Maurer [Wed, 28 Dec 2016 09:47:23 +0000 (10:47 +0100)]
add simple example code, bump version to 1.0-2

2 years agoadd missing dependencies
Dietmar Maurer [Fri, 16 Dec 2016 08:34:14 +0000 (09:34 +0100)]
add missing dependencies

2 years agoadd dintsall target
Dietmar Maurer [Fri, 16 Dec 2016 08:23:14 +0000 (09:23 +0100)]
add dintsall target

2 years agoadd Makefile and debian package files
Dietmar Maurer [Fri, 16 Dec 2016 08:21:41 +0000 (09:21 +0100)]
add Makefile and debian package files

2 years agoinitial import
Dietmar Maurer [Fri, 16 Dec 2016 07:52:37 +0000 (08:52 +0100)]
initial import

copied from pve-gui-tests