Opened 15 years ago
Closed 15 years ago
#95 closed enhancement (fixed)
URL Pathnames
Reported by: | Mark Evenson | Owned by: | Mark Evenson |
---|---|---|---|
Priority: | major | Milestone: | 0.20 |
Component: | other | Version: | 0.20 |
Keywords: | Cc: | ||
Parent Tickets: |
Description
Goals
- Use Common Lisp pathnames to refer to representations referenced
by a URL.
- The URL schemes supported shall include at least "http", and those
enabled by the URLStreamHandler extension mechanism.
- Use URL schemes that are understood by the java.net.URL object.
A file specified by URL
- MERGE-PATHNAMES
(merge-pathnames "url.asd"
- PROBE-FILE returning the state of URL accesibility.
- TRUENAME "aliased" to PROBE-FILE signalling an error if the URL is
not accessible (see "Non-goal 1").
- DIRECTORY for non-wildcards
- URL pathname work as a valid argument for OPEN with :DIRECTION :INPUT.
- Enable the loading of ASDF2 systems referenced by a URL pathname.
- The reserved URL characters (
~
,/
,?
, etc.) shall be
encoded in the proper manner on construction of the Pathname.
- The "file" scheme will continue to be represented by an
"ordinary" Pathname.
- The "jar" scheme will continue to be represented by a jar
Pathname.
Non-goals
- We will not implement canonicalization of URL schemas (such as following
"http" redirects).
- DIRECTORY working for URL pathnames containing wildcards.
Change History (7)
comment:1 Changed 15 years ago by
Version: | → 0.20 |
---|
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
The implementation seems to be holding up to testing.
Marking as good to go for 0.20.
comment:3 Changed 15 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:4 follow-up: 5 Changed 15 years ago by
Status: | reopened → assigned |
---|
Need to check that logical hosts aren't in place before deciding to ship off a string to URL scheme land.
Test failure noticed in ANSI for Pathnames for CLTEST:COMPILE-FILE-TEST-LP.LISP by Ville.
comment:5 Changed 15 years ago by
Replying to mevenson:
[…]
Test failure noticed in ANSI for Pathnames for CLTEST:COMPILE-FILE-TEST-LP.LISP by Ville.
Not a test failure, but a (potentially) confusing warning message which should not be emitted at the default trace levels.
comment:6 Changed 15 years ago by
URL escaping (aka URI encoding) not implemented at the present point.
The current plan is to provide functions to encode/decode, and to use them to establish handlers if the common case fails. Re-use of code from PURI is being considered, subject to licensing analysis.
comment:7 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Implemented enough for 0.20; we'll pick up the warnings noted by Ville, and the URL escaping for 0.21.
An (incomplete) implementation was added in r12605-r12616.
Notably missing are the URL encoding/decoding functions.
See http://article.gmane.org/gmane.lisp.armedbear.devel/1058.