pywb icon indicating copy to clipboard operation
pywb copied to clipboard

Documentation for Warcserver Index Configuration is misleading

Open maeb opened this issue 3 years ago • 0 comments

Describe the bug

In https://github.com/webrecorder/pywb/blob/42445562dab4cfe68cabc82ee94d51e3c70ee037/docs/manual/warcserver.rst?plain=1#L216 and https://github.com/webrecorder/pywb/blob/42445562dab4cfe68cabc82ee94d51e3c70ee037/docs/manual/warcserver.rst?plain=1#L247 the syntax should be ia: cdx+http://web.archive.org/cdx /web, i.e. space delimiter and not semicolon.

The sauce is found here: https://github.com/webrecorder/pywb/blob/42445562dab4cfe68cabc82ee94d51e3c70ee037/pywb/warcserver/index/indexsource.py#L187

Steps to reproduce the bug

Configure a collection as exemplified in the documentation:

collections:                                                                                                                                                                                                                                  
  ia:   cdx+http://web.archive.org/cdx;/web

Doesn't work.

Steps to reproduce the fix

Configure a collection as per the source:

collections:                                                                                                                                                                                                                                  
  ia:   cdx+http://web.archive.org/cdx /web

It works.

maeb avatar Feb 23 '22 11:02 maeb