Skip to content

URI-Ms in CDXJ TimeMap contain surted URI-R #741

Closed
@machawk1

Description

When fetching CDXJ TimeMaps, the URI-R "embedded" is that of a SURTed URI-R. This only seems to be the case with CDXJ TimeMaps and not Link TimeMaps.

For example, I ran ipwb index samples/warcs/5mementos.warc | ipwb replay

When accessing http://localhost:5000/timemap/link/memento.us I get:

<http://memento.us/>; rel="original",
<http://localhost:5000/timemap/link/memento.us>; rel="self timemap"; type="application/link-format",
<http://localhost:5000/timemap/cdxj/memento.us>; rel="timemap"; type="application/cdxj+ors",
<http://localhost:5000/timegate/memento.us>; rel="timegate",
<http://localhost:5000/memento/20130202100000/memento.us/>; rel="first memento"; datetime="Sat, 02 Feb 2013 10:00:00 GMT",
<http://localhost:5000/memento/20140114100000/memento.us/>; rel="memento"; datetime="Tue, 14 Jan 2014 10:00:00 GMT",
<http://localhost:5000/memento/20140115101500/memento.us/>; rel="memento"; datetime="Wed, 15 Jan 2014 10:15:00 GMT",
<http://localhost:5000/memento/20161231110000/memento.us/>; rel="memento"; datetime="Sat, 31 Dec 2016 11:00:00 GMT",
<http://localhost:5000/memento/20161231110001/memento.us/>; rel="last memento"; datetime="Sat, 31 Dec 2016 11:00:01 GMT"

All is well in the above. When I access http://localhost:5000/timemap/cdxj/memento.us , I get:

!context ["https://tools.ietf.org/html/rfc7089"]
!id {"uri": "http://localhost:5000/timemap/cdxj/memento.us"}
!keys ["memento_datetime_YYYYMMDDhhmmss"]
!meta {"original_uri": "http://memento.us/"}
!meta {"timegate_uri": "http://localhost:5000/timegate/memento.us"}
!meta {"timemap_uri": {"link_format": "http://localhost:5000/timemap/link/memento.us","cdxj_format": "http://localhost:5000/timemap/cdxj/memento.us"}}
20130202100000 {"uri": "http://localhost:5000/memento/20130202100000/us,memento)/", "rel": "first memento", "datetime"="Sat, 02 Feb 2013 10:00:00 GMT"}
20140114100000 {"uri": "http://localhost:5000/memento/20140114100000/us,memento)/", "rel": "memento", "datetime"="Tue, 14 Jan 2014 10:00:00 GMT"}
20140115101500 {"uri": "http://localhost:5000/memento/20140115101500/us,memento)/", "rel": "memento", "datetime"="Wed, 15 Jan 2014 10:15:00 GMT"}
20161231110000 {"uri": "http://localhost:5000/memento/20161231110000/us,memento)/", "rel": "memento", "datetime"="Sat, 31 Dec 2016 11:00:00 GMT"}
20161231110001 {"uri": "http://localhost:5000/memento/20161231110001/us,memento)/", "rel": "last memento", "datetime"="Sat, 31 Dec 2016 11:00:01 GMT"}

Note that the values for each memento that are specified, http://localhost:5000/memento/20161231110001/us,memento)/ , are inaccessible.

Using latest master: fd45f93

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions