The virtual catalogs (e.g., CMR or httpd_catalog) crash when a path does not end in slash in one (rare) case.

Description

The summary is a bit misleading - I only know this is true for the httpd_catalog, but fo that code, this is definitely true and I suspect it's true for CMR as well (but I'm less sure how to test that code).

Given the httpd_catalog's default configuration (and making sure that is altered to activate the catalog), asking for <showNode> response for the following paths produces:
(note the presence or absence of trailing slashes)

  • /RemoteResources/tests/ --> Correct response, with <node count="2" ... name="/RemoteResources/test">

  • /RemoteResources/tests --> basic_string C++ exception

Environment

None

Status

Assignee

James Gallagher

Reporter

James Gallagher

Labels

Fix versions

Story Points

0.5

Affects versions

Hyrax 1.15.2

Epic Link

Priority

Medium