Skip to content

URI parse on LDAP example from RFC 3986 fails to extrapolate URI #1

@paulwalk

Description

@paulwalk

I tested the urip.Parse method against each of the examples in the RFC:
https://datatracker.ietf.org/doc/html/rfc3986#section-1.1.2

All of these parse without raising an exception. However the LDAP example - although parsing without raising an exception - gives an incomplete URI.

Example:

data = []byte("ldap://[2001:db8::7]/c=GB?objectClass?one")
uri, err := urip.Parse(data)
	if err != nil {
		fmt.Println(err.Error())
		return
	}
	fmt.Printf("uri       : %s\n", uri)
	fmt.Printf("scheme    : %s\n", uri.Scheme)

gives the following output:

uri       : ldap://
scheme    : ldap

(I should say this is a minor issue - and the library is generally useful to me - so thanks for developing this and sharing it!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions