Displaying 20 results from an estimated 63 matches for "parse_uri".
Did you mean:
parsed_uri
2013 Sep 24
4
[PATCH 1/1] gpxe: fix possible null pointer dereference
Possibly authority variable (initialized with NULL) might be dereferenced when
an arbitrary path (without "//" on it) is supplied to parse_uri() function
Signed-off-by: Felipe Pena <felipensp at gmail.com>
---
gpxe/src/core/uri.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gpxe/src/core/uri.c b/gpxe/src/core/uri.c
index 6a1f2e5..4987821 100644
--- a/gpxe/src/core/uri.c
+++ b/gpxe/src/core/uri.c
@@ -151,7...
2015 Mar 18
0
[PATCH 2/2] builder: support for download resume
...download_to ~prog t ?progress_bar ?continue:(Some true) ~proxy uri filename;
(filename, false)
-and download_to ~prog t ?(progress_bar = false) ~proxy uri filename =
+and download_to ~prog t ?(progress_bar = false) ?(continue = false) ~proxy uri filename =
let parseduri =
try URI.parse_uri uri
with Invalid_argument "URI.parse_uri" ->
@@ -82,7 +82,6 @@ and download_to ~prog t ?(progress_bar = false) ~proxy uri filename =
* atomically rename it to the final filename.
*)
let filename_new = filename ^ "." ^ string_random8 () in
- unlink_on_exit fil...
2014 Dec 22
2
virt-v2v - Unable to authenticate to vCenter as DOMAIN\user
...c 'vpx://DOMAIN\user@vcenter/Datacenter/cluster_name/esx_server?no_verify=1' vm_name -o local -of raw -os /tmp
- errors immediately with virt-v2v: error: could not parse '-ic
vpx://DOMAIN\user@vcenter/Datacenter/cluster_name/esx_server?no_verify=1'.
Original error message was: parse_uri: unable to parse URI
What is the correct syntax for entering the authenticating user as 'DOMAIN\user' for virt-v2v?
Thanks,
Ben.
[root@virt-v2v ~]# virt-v2v -v -x -ic 'vpx://vcenter/Datacenter/cluster_name/esx_server?no_verify=1' vm_name -o local -of raw -os /tmp
virt-v2v: libgu...
2018 Feb 15
0
[PATCH] Introduce a wrapper around xmlParseURI.
...;
#include <libxml/xpathInternals.h>
#include <libxml/uri.h>
+#include "libxml2-utils.h"
+
#pragma GCC diagnostic ignored "-Wmissing-prototypes"
/* xmlDocPtr type */
@@ -426,16 +430,11 @@ mllib_xml_doc_get_root_element (value docv)
}
}
-value
-mllib_xml_parse_uri (value strv)
+static value
+Val_uri (xmlURIPtr uri)
{
- CAMLparam1 (strv);
+ CAMLparam0 ();
CAMLlocal3 (rv, sv, ov);
- xmlURIPtr uri;
-
- uri = xmlParseURI (String_val (strv));
- if (uri == NULL)
- caml_invalid_argument ("parse_uri: unable to parse URI");
rv = caml_alloc_...
2018 Nov 02
0
[PATCH REPOST] Introduce a wrapper around xmlParseURI.
...;
#include <libxml/xpathInternals.h>
#include <libxml/uri.h>
+#include "libxml2-utils.h"
+
#pragma GCC diagnostic ignored "-Wmissing-prototypes"
/* xmlDocPtr type */
@@ -426,16 +430,11 @@ mllib_xml_doc_get_root_element (value docv)
}
}
-value
-mllib_xml_parse_uri (value strv)
+static value
+Val_uri (xmlURIPtr uri)
{
- CAMLparam1 (strv);
+ CAMLparam0 ();
CAMLlocal3 (rv, sv, ov);
- xmlURIPtr uri;
-
- uri = xmlParseURI (String_val (strv));
- if (uri == NULL)
- caml_invalid_argument ("parse_uri: unable to parse URI");
rv = caml_alloc_...
2017 Dec 12
1
[PATCH] Introduce a wrapper around xmlParseURI.
An alternate solution to:
https://www.redhat.com/archives/libguestfs/2017-December/msg00035.html
"[PATCH] v2v: -i vmx: Allow ssh URLs to use spaces."
is to classify all URLs processed by libguestfs as either ordinary
URLs or the special non-standard URLs that we use for things like
‘virt-v2v -i vmx’ and ‘guestfish --add’.
For the non-standard URLs, provide a wrapper around
2017 Feb 02
2
[PATCH v2] resize: support non-local output disks (RHBZ#1404182)
...a/resize/resize.ml
+++ b/resize/resize.ml
@@ -315,6 +315,13 @@ read the man page virt-resize(1).
error (f_"error parsing URI '%s'. Look for error messages printed above.")
infile in
+ (* outfile can be a URI. *)
+ let outfile =
+ try (outfile, URI.parse_uri outfile)
+ with Invalid_argument "URI.parse_uri" ->
+ error (f_"error parsing URI '%s'. Look for error messages printed above.")
+ outfile in
+
infile, outfile, align_first, alignment, copy_boot_loader,
deletes,
dryrun, expand, expa...
2015 Mar 18
5
[PATCH 0/2] [RFE] virt-builder should support download resume
This patchset adds support for resuming downloads in virt-builder.
Partially downloaded file is not deleted on exit anymore.
There is a check for partially downloaded image in cache directory
based on its name. When found, download_to crafts appropriate
options to continue its download.
Maros Zatko (2):
mllib: allow external_command to return [] on nonzero return value
builder: support for
2018 Nov 02
2
[PATCH REPOST] Introduce a wrapper around xmlParseURI.
Previously posted:
https://www.redhat.com/archives/libguestfs/2017-December/msg00046.html
Rich.
2014 Apr 30
3
[PATCH 2/2] Fix handling of passwords in URLs
...+static int parse (const char *arg, char **path_ret, char **protocol_ret, char ***server_ret, char **username_ret, char **password_ret);
static char *query_get (xmlURIPtr uri, const char *search_name);
static int make_server (xmlURIPtr uri, const char *socket, char ***ret);
@@ -45,10 +45,11 @@ parse_uri (const char *arg, struct uri *uri_ret)
char *protocol = NULL;
char **server = NULL;
char *username = NULL;
+ char *password = NULL;
/* Does it look like a URI? */
if (is_uri (arg)) {
- if (parse (arg, &path, &protocol, &server, &username) == -1)
+ if (parse (...
2015 Feb 02
1
RFC: Handle query strings for http and https (RHBZ#1092583)
...(const char *arg, char **path_ret, char **protocol_ret, char ***server_ret, char **username_ret, char **password_ret, char **query_ret);
static char *query_get (xmlURIPtr uri, const char *search_name);
static int make_server (xmlURIPtr uri, const char *socket, char ***ret);
@@ -46,10 +46,11 @@ parse_uri (const char *arg, struct uri *uri_ret)
char **server = NULL;
char *username = NULL;
char *password = NULL;
+ char *query = NULL;
/* Does it look like a URI? */
if (is_uri (arg)) {
- if (parse (arg, &path, &protocol, &server, &username, &password) == -1)
+...
2017 Oct 04
11
[PATCH 0/9] build: Require OCaml >= 4.02.
Per my previous email:
https://www.redhat.com/archives/libguestfs/2017-September/msg00203.html
I'd like to talk about requiring a more modern version of the OCaml
compiler.
These commits show some of the code changes which would be possible
with OCaml >= 3.12 [which it turns out we already require by accident]
and also with OCaml >= 4.02. The latter is my favoured option.
Rich.
2013 Oct 06
0
[PATCH 1/1] gpxe: fix possible null pointer dereference
On Sep 23, 2013 10:06 PM, "Felipe Pena" <felipensp at gmail.com> wrote:
>
> Possibly authority variable (initialized with NULL) might be dereferenced
when
> an arbitrary path (without "//" on it) is supplied to parse_uri() function
>
> Signed-off-by: Felipe Pena <felipensp at gmail.com>
> ---
> gpxe/src/core/uri.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gpxe/src/core/uri.c b/gpxe/src/core/uri.c
> index 6a1f2e5..4987821 100644
> --- a/gpxe/src/cor...
2014 Dec 22
0
Re: virt-v2v - Unable to authenticate to vCenter as DOMAIN\user
...MAIN\user@vcenter/Datacenter/cluster_name/esx_server?no_verify=1' vm_name -o local -of raw -os /tmp
> - errors immediately with virt-v2v: error: could not parse '-ic
> vpx://DOMAIN\user@vcenter/Datacenter/cluster_name/esx_server?no_verify=1'.
> Original error message was: parse_uri: unable to parse URI
>
> What is the correct syntax for entering the authenticating user as 'DOMAIN\user' for virt-v2v?
That's a very good question, and I have no idea at all :-(
> [root@virt-v2v ~]# virt-v2v -v -x -ic 'vpx://DOMAIN\user@vcenter/Datacenter/cluster_name/e...
2014 Dec 23
1
Re: virt-v2v - Unable to authenticate to vCenter as DOMAIN\user
.../Datacenter/cluster_name/esx_server?no_verify=1' vm_name -o local -of raw -os /tmp
>> - errors immediately with virt-v2v: error: could not parse '-ic
>> vpx://DOMAIN\user@vcenter/Datacenter/cluster_name/esx_server?no_verify=1'.
>> Original error message was: parse_uri: unable to parse URI
>>
>> What is the correct syntax for entering the authenticating user as 'DOMAIN\user' for virt-v2v?
>
> That's a very good question, and I have no idea at all :-(
>
>> [root@virt-v2v ~]# virt-v2v -v -x -ic 'vpx://DOMAIN\user@vcente...
2017 Feb 03
0
Re: [PATCH v2] resize: support non-local output disks (RHBZ#1404182)
...size.ml
> @@ -315,6 +315,13 @@ read the man page virt-resize(1).
> error (f_"error parsing URI '%s'. Look for error messages printed above.")
> infile in
>
> + (* outfile can be a URI. *)
> + let outfile =
> + try (outfile, URI.parse_uri outfile)
> + with Invalid_argument "URI.parse_uri" ->
> + error (f_"error parsing URI '%s'. Look for error messages printed above.")
> + outfile in
This matches what we do with 'infile', but I wonder if that isn't
wrong, ie....
2020 Jan 22
0
[v2v PATCH 3/3] v2v: try to get windows driver files from libosinfo
...n { Libosinfo.architecture; location } ->
+ (* Ignore different architectures than the guest's. *)
+ if architecture <> arch then
+ false
+ else
+ try
+ (* Ignore invalid URLs, and non-file ones. *)
+ (match Xml.parse_uri location with
+ | { Xml.uri_scheme = Some scheme;
+ Xml.uri_path = Some _ } when scheme = "file" -> true
+ | _ -> false
+ )
+ with Invalid_argument _ -> false
+ ) (os#get_device_drivers ()) in
+ let uri =...
2015 Sep 01
3
[PATCH 1/3] get-kernel: split command line handling in own function
...output = ref "" in
- let machine_readable = ref false in
- let unversioned = ref false in
- let prefix = ref None in
-
- let set_file arg =
- if !file <> None then
- error (f_"--add option can only be given once");
- let uri =
- try URI.parse_uri arg
- with Invalid_argument "URI.parse_uri" ->
- error (f_"error parsing URI '%s'. Look for error messages printed above.") arg in
- file := Some uri
- and set_domain dom =
- if !domain <> None then
- error (f_"--domain o...
2015 Mar 23
1
[PATCH v4] [RFE] virt-builder should support download resume
This adds support for resuming downloads in virt-builder.
Partially downloaded image is not deleted on exit anymore.
There is a check for partially downloaded image in cache directory
based on its name. When found, download_to crafts appropriate
options to continue its download.
Fixes RHBZ#1198344
Ammended for forgotten unlink_on_exit and fixed call with optional
aguments.
Maros Zatko (1):
2015 Mar 23
2
[PATCH v3] [RFE] virt-builder should support download resume
This adds support for resuming downloads in virt-builder.
Partially downloaded file is not deleted on exit anymore.
There is a check for partially downloaded image in cache directory
based on its name. When found, download_to crafts appropriate
options to continue its download.
Fixes RHBZ#1198344
Ammended for forgotten unlink_on_exit.
Maros Zatko (1):
builder: support for download resume