plcapi.git
9 years agoFix leftovers from branch merging; remove more php closing tags; bump up requirements...
gggeek [Wed, 10 Dec 2014 00:01:55 +0000 (00:01 +0000)]
Fix leftovers from branch merging; remove more php closing tags; bump up requirements to 5.3; fix composer autoloading; do not test on 5.2 on travis

9 years agoMerge 5.3 branch, as that becomes the new master, and 5.1 becomes the legacy branch
gggeek [Tue, 9 Dec 2014 23:33:47 +0000 (23:33 +0000)]
Merge 5.3 branch, as that becomes the new master, and 5.1 becomes the legacy branch

Conflicts:
ChangeLog
Makefile
demo/client/comment.php
demo/client/introspect.php
demo/client/which.php
doc/xmlrpc_php.xml
lib/xmlrpc.inc
lib/xmlrpc_wrappers.inc
test/benchmark.php
test/parse_args.php

9 years agoConvert docs files to unix newlines
gggeek [Mon, 8 Dec 2014 00:33:50 +0000 (00:33 +0000)]
Convert docs files to unix newlines

9 years agoMake sure testsuite returns non-0 exit code on failure; make Travis tests less verbose
gggeek [Mon, 8 Dec 2014 00:24:34 +0000 (00:24 +0000)]
Make sure testsuite returns non-0 exit code on failure; make Travis tests less verbose

9 years agoFix testsuite failure for https mode
gggeek [Mon, 8 Dec 2014 00:11:46 +0000 (00:11 +0000)]
Fix testsuite failure for https mode

9 years agoPlaying around with Travis
gggeek [Sun, 7 Dec 2014 22:41:12 +0000 (22:41 +0000)]
Playing around with Travis

9 years agoAvoid testsuite failure on php 5.2 with DateTimes
gggeek [Sun, 7 Dec 2014 21:08:14 +0000 (21:08 +0000)]
Avoid testsuite failure on php 5.2 with DateTimes

9 years agoDisable XDebug for unit testing on Travis
gggeek [Sun, 7 Dec 2014 20:40:51 +0000 (20:40 +0000)]
Disable XDebug for unit testing on Travis

9 years agono need to call anymore $client->setSSLVerifyHost(2) to silence a curl warning when...
gggeek [Sun, 7 Dec 2014 20:35:01 +0000 (20:35 +0000)]
no need to call anymore $client->setSSLVerifyHost(2) to silence a curl warning when using https with recent curl builds

9 years ago2nd try to get Travis up and running
gggeek [Sun, 7 Dec 2014 20:11:24 +0000 (20:11 +0000)]
2nd try to get Travis up and running

9 years agoImprove testsuite to make it easily executable by Travis
gggeek [Sun, 7 Dec 2014 20:01:09 +0000 (20:01 +0000)]
Improve testsuite to make it easily executable by Travis

9 years agoFix tzo typos in the manual
gggeek [Sat, 6 Dec 2014 23:13:11 +0000 (23:13 +0000)]
Fix tzo typos in the manual

9 years agoinstrument the email-checking code to expose problematic email address in exception
Thierry Parmentelat [Wed, 5 Nov 2014 08:34:46 +0000 (09:34 +0100)]
instrument the email-checking code to expose problematic email address in exception

9 years agoAdded the role 'node' to the DeleteSliceTag method. It makes sense that ipv6
Guilherme Sperb Machado [Tue, 16 Sep 2014 23:57:36 +0000 (01:57 +0200)]
Added the role 'node' to the DeleteSliceTag method. It makes sense that
nodes can delete slice tags.

9 years agojust included the ipv6 to the Accessors' init
Guilherme Sperb Machado [Tue, 16 Sep 2014 23:09:48 +0000 (01:09 +0200)]
just included the ipv6 to the Accessors' init

9 years agoadded the accessor for the ipv6 support in slices
Guilherme Sperb Machado [Fri, 12 Sep 2014 15:28:39 +0000 (17:28 +0200)]
added the accessor for the ipv6 support in slices

9 years agoSetting tag plcapi-5.3-5 plcapi-5.3-5
Thierry Parmentelat [Tue, 19 Aug 2014 13:05:50 +0000 (15:05 +0200)]
Setting tag plcapi-5.3-5
allow GetSlices to filter on tags as well

9 years agoallow GetSlices to filter on tags as well
Thierry Parmentelat [Tue, 19 Aug 2014 13:04:49 +0000 (15:04 +0200)]
allow GetSlices to filter on tags as well

9 years agoSetting tag plcapi-5.3-4 plcapi-5.3-4
Thierry Parmentelat [Tue, 19 Aug 2014 10:47:01 +0000 (12:47 +0200)]
Setting tag plcapi-5.3-4
enable filtering on tags (like hrn) with GetPersons and GetSites

9 years agotags defined on Person and Site were not exposed to Filter, so that e.g.
Thierry Parmentelat [Mon, 18 Aug 2014 17:46:23 +0000 (19:46 +0200)]
tags defined on Person and Site were not exposed to Filter, so that e.g.
GetPersons({'hrn':<something>},['email','hrn'])
was failing although the 'hrn' tag is marked as expose_to_api

9 years agoMerge branch 'master' of ssh://git.onelab.eu/git/plcapi
Thierry Parmentelat [Fri, 18 Jul 2014 09:55:16 +0000 (11:55 +0200)]
Merge branch 'master' of ssh://git.onelab.eu/git/plcapi

9 years agomake sync: no /rootfs/ anymore, and using lxc-enter-namespace
Thierry Parmentelat [Fri, 18 Jul 2014 09:53:53 +0000 (11:53 +0200)]
make sync: no /rootfs/ anymore, and using lxc-enter-namespace

9 years agoSmall improvement to makefile 3.0.0
gggeek [Sun, 15 Jun 2014 19:48:04 +0000 (21:48 +0200)]
Small improvement to makefile

9 years agoRemove Id tag from demo files
gggeek [Sun, 15 Jun 2014 19:47:38 +0000 (21:47 +0200)]
Remove Id tag from demo files

9 years agoTag for 3.0.0 release
gggeek [Sun, 15 Jun 2014 19:13:00 +0000 (21:13 +0200)]
Tag for 3.0.0 release

10 years agoSetting tag plcapi-5.3-3 plcapi-5.3-3
Thierry Parmentelat [Mon, 2 Jun 2014 07:47:38 +0000 (09:47 +0200)]
Setting tag plcapi-5.3-3
provide more context in messages from AddPersonToSlice and DeletePersonFromSlice

10 years agoOne more nitpick
gggeek [Mon, 26 May 2014 22:16:38 +0000 (23:16 +0100)]
One more nitpick

10 years agoNitpicks: formatting, commented-out code
gggeek [Mon, 26 May 2014 22:12:35 +0000 (23:12 +0100)]
Nitpicks: formatting, commented-out code

10 years agoRename php file containing server class, remove phpunit
gggeek [Mon, 26 May 2014 21:44:07 +0000 (22:44 +0100)]
Rename php file containing server class, remove phpunit

10 years agoMore tabs/to/spaces conversion, plus remove closing php tags as they are not consider...
gggeek [Mon, 26 May 2014 21:31:28 +0000 (22:31 +0100)]
More tabs/to/spaces conversion, plus remove closing php tags as they are not considered good style anymore

10 years agoMerge pull request #3 from Smarre/master
Gaetano Giunta [Mon, 26 May 2014 21:18:51 +0000 (22:18 +0100)]
Merge pull request #3 from Smarre/master

Modernization commits

10 years agoxmlrpcmsg: Convert createPayload() from private to public
Samu Voutilainen [Fri, 23 May 2014 10:11:41 +0000 (13:11 +0300)]
xmlrpcmsg: Convert createPayload() from private to public

Apparently this was used elsewhere, even when it was marked as private.
Adjusting to that now...

10 years agoModernized old classes
Samu Voutilainen [Fri, 23 May 2014 09:50:51 +0000 (12:50 +0300)]
Modernized old classes

10 years agoMoved Phpxmlrpc class to own file
Samu Voutilainen [Fri, 23 May 2014 09:50:35 +0000 (12:50 +0300)]
Moved Phpxmlrpc class to own file

10 years agoRenamed Xmlrpc class to Phpxmlrpc
Samu Voutilainen [Fri, 23 May 2014 09:28:03 +0000 (12:28 +0300)]
Renamed Xmlrpc class to Phpxmlrpc

10 years agoSplitted classes from xmlrpc.php to separate files
Samu Voutilainen [Fri, 23 May 2014 09:26:09 +0000 (12:26 +0300)]
Splitted classes from xmlrpc.php to separate files

10 years agoConvert tabs to spaces.
Samu Voutilainen [Fri, 23 May 2014 09:19:35 +0000 (12:19 +0300)]
Convert tabs to spaces.

10 years agoRenamed .inc files to .php files
Samu Voutilainen [Fri, 23 May 2014 09:07:59 +0000 (12:07 +0300)]
Renamed .inc files to .php files

.inc extension for included PHP files is not recommended, instead
standard .php should be PHP files extension.

10 years agoxmlrpc.inc: changed verifyhost from 1 to 2.
Samu Voutilainen [Thu, 22 May 2014 08:32:23 +0000 (11:32 +0300)]
xmlrpc.inc: changed verifyhost from 1 to 2.

New PHP versions (PHP 5.3 and so on) does not support CURL’s ssl
host checking option 1 anymore, 2 is enforced or no checks.

10 years agoxmlrpc.inc: Converted $GLOBALS array to internal class Xmlrpc
Samu Voutilainen [Wed, 21 May 2014 12:50:05 +0000 (15:50 +0300)]
xmlrpc.inc: Converted $GLOBALS array to internal class Xmlrpc

This way $GLOBALS array won’t be polluted with internal data of
us, and if something else does something to that array, it
won’t affect us anymore.

10 years agoxmlrpc.inc: removed deprecated xmlrpc_backslash global
Samu Voutilainen [Wed, 21 May 2014 11:55:16 +0000 (14:55 +0300)]
xmlrpc.inc: removed deprecated xmlrpc_backslash global

10 years agoxmlrpc.inc: remove deprecated xmlEntities
Samu Voutilainen [Wed, 21 May 2014 11:31:10 +0000 (14:31 +0300)]
xmlrpc.inc: remove deprecated xmlEntities

10 years agoxmlrpc.inc: removed dl("xml.so")
Samu Voutilainen [Wed, 21 May 2014 10:53:04 +0000 (13:53 +0300)]
xmlrpc.inc: removed dl("xml.so")

This function has been deprecated and removed from php-5.3 and upwards,
and was only useful for PHP 4, which is not supported anymore.

10 years agoexceptions thrown by AddPersonToSlice and DeletePersonFromSlice show more context
Thierry Parmentelat [Fri, 16 May 2014 07:54:01 +0000 (09:54 +0200)]
exceptions thrown by AddPersonToSlice and DeletePersonFromSlice show more context

10 years agoSetting tag plcapi-5.3-2 plcapi-5.3-2
Thierry Parmentelat [Fri, 21 Mar 2014 15:31:33 +0000 (16:31 +0100)]
Setting tag plcapi-5.3-2
don't use PyXML that is deprecated in f20, use lxml instead
higher max size for login_base (32 vs 20) and slice name (64 vs 32)

10 years agoincrease max slice_name length to 64 chars
Tony Mack [Tue, 25 Feb 2014 20:24:55 +0000 (15:24 -0500)]
increase max slice_name length to 64 chars

10 years agoincrease max login_base length to 32 chars
Tony Mack [Tue, 25 Feb 2014 20:24:05 +0000 (15:24 -0500)]
increase max login_base length to 32 chars

10 years agoFix comma in composer.json
gggeek [Mon, 3 Feb 2014 23:08:03 +0000 (00:08 +0100)]
Fix comma in composer.json

10 years agoBump requirements to 5.1.0; grammar fixes in comments
gggeek [Mon, 3 Feb 2014 22:36:57 +0000 (23:36 +0100)]
Bump requirements to 5.1.0; grammar fixes in comments

10 years agoAdd gitignore file for generated documentation
gggeek [Sun, 2 Feb 2014 19:57:30 +0000 (20:57 +0100)]
Add gitignore file for generated documentation

10 years agoUpdate makefile for docs:
gggeek [Sun, 2 Feb 2014 19:54:35 +0000 (20:54 +0100)]
Update makefile for docs:
- newer phpdocumentor
- doc-generating tools are moved to a different directory

10 years agoAdd another missing doc image to versioning
gggeek [Sun, 2 Feb 2014 19:16:41 +0000 (20:16 +0100)]
Add another missing doc image to versioning

10 years agoAdd to versioning missing image for docs
gggeek [Sun, 2 Feb 2014 19:12:12 +0000 (20:12 +0100)]
Add to versioning missing image for docs

10 years agoFix: make convert.php script for doc generation compatible with php 5.3
gggeek [Sun, 2 Feb 2014 19:05:22 +0000 (20:05 +0100)]
Fix: make convert.php script for doc generation compatible with php 5.3

10 years agoUpdate docs with new project hosting
gggeek [Sat, 18 Jan 2014 16:21:14 +0000 (17:21 +0100)]
Update docs with new project hosting

10 years ago- welcome 2014
gggeek [Fri, 10 Jan 2014 18:07:33 +0000 (19:07 +0100)]
- welcome 2014

10 years agochange default path to javascript debugger
gggeek [Fri, 10 Jan 2014 18:03:56 +0000 (19:03 +0100)]
change default path to javascript debugger

10 years ago- update testsuite
gggeek [Fri, 10 Jan 2014 18:00:21 +0000 (19:00 +0100)]
- update testsuite

10 years ago- when using curl and keepalive, reset curl handle if we did not get back an http...
gggeek [Fri, 10 Jan 2014 16:58:07 +0000 (17:58 +0100)]
- when using curl and keepalive, reset curl handle if we did not get back an http 200 response (eg a 302)

10 years agopython-2.7 is now for granted
Thierry Parmentelat [Thu, 9 Jan 2014 12:58:38 +0000 (13:58 +0100)]
python-2.7 is now for granted

10 years agonoreal change, just nicer requires
Thierry Parmentelat [Thu, 9 Jan 2014 12:55:33 +0000 (13:55 +0100)]
noreal change, just nicer requires

10 years agoRequires: python-lxml
Thierry Parmentelat [Thu, 9 Jan 2014 12:52:21 +0000 (13:52 +0100)]
Requires: python-lxml

10 years agoan attempt to reinstate wsdl generation, not such a big deal after all
Thierry Parmentelat [Thu, 9 Jan 2014 11:42:49 +0000 (12:42 +0100)]
an attempt to reinstate wsdl generation, not such a big deal after all

10 years agoPLC.GPG (used in slice ticket methods) does not use PyXML anymore, but lxml instead
Thierry Parmentelat [Thu, 9 Jan 2014 11:40:47 +0000 (12:40 +0100)]
PLC.GPG (used in slice ticket methods) does not use PyXML anymore, but lxml instead

10 years agobugfix
Thierry Parmentelat [Thu, 9 Jan 2014 10:31:14 +0000 (11:31 +0100)]
bugfix

10 years agoturn off wsdl generation for now as this requires PyXML that was dropped in f19
Thierry Parmentelat [Wed, 8 Jan 2014 15:37:03 +0000 (16:37 +0100)]
turn off wsdl generation for now as this requires PyXML that was dropped in f19

10 years agoIgnore local composer.phar in git
gggeek [Sun, 15 Dec 2013 12:28:48 +0000 (13:28 +0100)]
Ignore local composer.phar in git

10 years agoAdd composer.json
gggeek [Sun, 15 Dec 2013 12:28:20 +0000 (13:28 +0100)]
Add composer.json

10 years agoSetting tag plcapi-5.3-1 plcapi-5.3-1
Thierry Parmentelat [Tue, 10 Dec 2013 07:48:21 +0000 (08:48 +0100)]
Setting tag plcapi-5.3-1
create accessor 'hrn' for site as well
create accessors 'sfa_created' for site/slice/person
AddSite() and AddSlice() set respectively Site HRN and Slice HRN.
UpdatePerson() updates Person HRN according to updated email.
UpdateSite() updates Site HRN according to updated login_base.
Fix AddPersonToSite().
GetPeerData() ignores Sites/Slices/Persons that have tag sfa_created=='True'
RefreshPeer() manages Site*Person and Person*Role relationships.

10 years agobump version number to 5.3
Thierry Parmentelat [Tue, 10 Dec 2013 07:45:42 +0000 (08:45 +0100)]
bump version number to 5.3

10 years agoRefreshPeer now manages Site*Person and Person*Role relationships
Mohamed Larabi [Fri, 6 Dec 2013 19:00:57 +0000 (20:00 +0100)]
RefreshPeer now manages Site*Person and Person*Role relationships

10 years agofix GetPeerData()
Mohamed Larabi [Tue, 3 Dec 2013 16:37:52 +0000 (17:37 +0100)]
fix GetPeerData()

10 years agohandle peers with old version of myplc that does not support 'hrn' field in Node
Mohamed Larabi [Fri, 29 Nov 2013 17:18:45 +0000 (18:18 +0100)]
handle peers with old version of myplc that does not support 'hrn' field in Node

10 years agoGetPeerData() ignores Sites/Slices/Persons that have the tag sfa_created=True, so...
Mohamed Larabi [Fri, 29 Nov 2013 17:11:07 +0000 (18:11 +0100)]
GetPeerData() ignores Sites/Slices/Persons that have the tag sfa_created=True, so they dont get treated by RefreshPeer()

10 years agoAddPersonToSite: fix updating person's HRN
Mohamed Larabi [Tue, 26 Nov 2013 11:07:33 +0000 (12:07 +0100)]
AddPersonToSite: fix updating person's HRN

10 years agoAdd gitignore
gggeek [Tue, 19 Nov 2013 21:42:50 +0000 (22:42 +0100)]
Add gitignore

10 years agoRemove $id$ tag now that we are on git; update copyright notice to year 2013
gggeek [Tue, 19 Nov 2013 20:59:47 +0000 (21:59 +0100)]
Remove $id$ tag now that we are on git; update copyright notice to year 2013

10 years agoUpdateSite: check if tagtype HRN exists before setting/updating it
Mohamed Larabi [Mon, 18 Nov 2013 15:10:48 +0000 (16:10 +0100)]
UpdateSite: check if tagtype HRN exists before setting/updating it

10 years agoUpdatePerson: fix the part of updating the person HRN tag
Mohamed Larabi [Fri, 15 Nov 2013 16:39:21 +0000 (17:39 +0100)]
UpdatePerson: fix the part of updating the person HRN tag

10 years agoUpdateSite: if site tag HRN does not exist then we need to create it
Mohamed Larabi [Fri, 15 Nov 2013 10:38:28 +0000 (11:38 +0100)]
UpdateSite: if site tag HRN does not exist then we need to create it

10 years agoUpdate Site HRN when Site's login_base is updated
Mohamed Larabi [Thu, 14 Nov 2013 16:46:52 +0000 (17:46 +0100)]
Update Site HRN when Site's login_base is updated

10 years agoUpdate Person HRN when Person's email is updated
Mohamed Larabi [Thu, 14 Nov 2013 16:46:10 +0000 (17:46 +0100)]
Update Person HRN when Person's email is updated

10 years agoSet Site/Slice HRN when new Site/Slice is created
Mohamed Larabi [Thu, 14 Nov 2013 16:45:10 +0000 (17:45 +0100)]
Set Site/Slice HRN when new Site/Slice is created

10 years agoIdentify objects (Site/Slice/Person) created through SFA using sfa_created tag
Mohamed Larabi [Wed, 13 Nov 2013 16:54:06 +0000 (17:54 +0100)]
Identify objects (Site/Slice/Person) created through SFA using sfa_created tag

10 years agocreate an accessor for hrns also for sites
Mohamed Larabi [Thu, 31 Oct 2013 16:27:36 +0000 (17:27 +0100)]
create an accessor for hrns also for sites

10 years agoSetting tag plcapi-5.2-10 plcapi-5.2-10 plcapi-5.3-0
Thierry Parmentelat [Thu, 10 Oct 2013 15:44:18 +0000 (17:44 +0200)]
Setting tag plcapi-5.2-10
provide a slicename_to_hrn function

10 years agoAdd slicename_to_hrn in order to check slice HRN as well as persons and nodes
Mohamed Larabi [Thu, 10 Oct 2013 14:23:38 +0000 (16:23 +0200)]
Add slicename_to_hrn in order to check slice HRN as well as persons and nodes

10 years agoSetting tag plcapi-5.2-9 plcapi-5.2-9
Thierry Parmentelat [Fri, 20 Sep 2013 09:48:48 +0000 (11:48 +0200)]
Setting tag plcapi-5.2-9
add an hrn accessor for slice so the SFA code can keep track of the federation-wide name of the slice

10 years agocreate an accessor for hrns also for slices
Thierry Parmentelat [Thu, 12 Sep 2013 08:43:34 +0000 (10:43 +0200)]
create an accessor for hrns also for slices

10 years agoSetting tag plcapi-5.2-8 plcapi-5.2-8
Thierry Parmentelat [Wed, 28 Aug 2013 14:39:23 +0000 (16:39 +0200)]
Setting tag plcapi-5.2-8
fix for wsgi-based deployments, each thread has its own api()

10 years agofix for WSGI-based PLCAPI, on behalf of Thomas Dreibholz
Thierry Parmentelat [Thu, 25 Jul 2013 19:07:39 +0000 (21:07 +0200)]
fix for WSGI-based PLCAPI, on behalf of  Thomas Dreibholz

10 years agoSetting tag plcapi-5.2-7 plcapi-5.2-7
Thierry Parmentelat [Fri, 28 Jun 2013 07:19:31 +0000 (09:19 +0200)]
Setting tag plcapi-5.2-7
also cleanup omf-slicemgr initscript

10 years agoMerge branch 'master' of ssh://git.onelab.eu/git/plcapi
Thierry Parmentelat [Fri, 28 Jun 2013 07:18:31 +0000 (09:18 +0200)]
Merge branch 'master' of ssh://git.onelab.eu/git/plcapi

10 years agoremove plc.d/omf-slicemgr as well
Thierry Parmentelat [Fri, 28 Jun 2013 07:18:22 +0000 (09:18 +0200)]
remove plc.d/omf-slicemgr as well

10 years agoSetting tag plcapi-5.2-6 plcapi-5.2-6
Thierry Parmentelat [Fri, 28 Jun 2013 06:01:03 +0000 (08:01 +0200)]
Setting tag plcapi-5.2-6
tear down omf-related aspects as this is no longer needed with omfv6

10 years agosecond pass of cleanup for omf aspects
Thierry Parmentelat [Thu, 27 Jun 2013 19:24:30 +0000 (21:24 +0200)]
second pass of cleanup for omf aspects

10 years agomkdir var/log
Thierry Parmentelat [Thu, 27 Jun 2013 18:29:37 +0000 (20:29 +0200)]
mkdir var/log

10 years agotear down omf aspects as this is not needed any more with OMFv6
Thierry Parmentelat [Thu, 27 Jun 2013 18:21:13 +0000 (20:21 +0200)]
tear down omf aspects as this is not needed any more with OMFv6

10 years agoSetting tag plcapi-5.2-5 plcapi-5.2-5
Thierry Parmentelat [Thu, 27 Jun 2013 18:12:15 +0000 (20:12 +0200)]
Setting tag plcapi-5.2-5
also expose 'expires' in ResolveSlices

10 years agohave ResolveSlices return 'expires' too
Thierry Parmentelat [Thu, 27 Jun 2013 13:06:57 +0000 (15:06 +0200)]
have ResolveSlices return 'expires' too