marklogic-community / RunDMC

MarkLogic application for running a developer site
http://developer.marklogic.com/code/rundmc
Other
17 stars 18 forks source link

X509 message code topics getting 404'd #748

Closed kcoleman-marklogic closed 6 years ago

kcoleman-marklogic commented 6 years ago

Noticed this in the daily logs for DMC. This URL is getting 404'd because it is badly formed (in the content):

docs.marklogic.com/9.0/guide/messages/X509-en.xml/X509-BADEXT

It's not unique to this one message code, but it might be unique to X509. The messages guide is there and you can navigate to the X509 section, but if you click on any of the specific message subheads, you get a URL of the above form and a 404.

I spot checked several other messages chapters (e.g. OPTIC, ISYS, TDE) and they're working fine. Here's what a well-formed one of these URLs should look like:

If you form a similar URL manually for the X509 messages, it works. Reproducible on pubs.

kcoleman-marklogic commented 6 years ago

I think I found this. An overly specific fn:replace is at fault:

https://github.com/marklogic-community/RunDMC/blob/d6822ebc1f8a5863a0a76ab07b89f54216b321b2/src/apidoc/setup/guide.xqm#L372-L375

No digits need apply, apparently.

kcoleman-marklogic commented 6 years ago

Deployed and tested on pubs. Fix will be pushed with 9.0-4.