Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
paulwalk opened this issue Jan 9, 2024 · 0 comments
Open

Comments

@paulwalk
Copy link

paulwalk commented Jan 9, 2024

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!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant