marklogic-community / RunDMC

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

404 on http://docs.marklogic.com/10.0 #823

Closed kcoleman-marklogic closed 5 years ago

kcoleman-marklogic commented 5 years ago

If you attempt to access the landing page of 10.0 docs using an explicit version number rather than the default, you get a 404. That is, http://docs.marklogic.com works, but http://docs.marklogic.com/10.0 gets a 404. They should be the same page.

This is also true on pubs, so it is not fallout from the publishing bruhaha we had for 10.0-1. I am not 100% positive this is supposed to work, but my recollection is that it should.

This is likely fallout from the difficulty Gordon had setting up the 10.0 build and configuration. I suspect a config or redirector file somewhere needs tweaking.

I consider this a relatively minor issue, given it affects only the landing page, but we should still sort it out to avoid user confusion. Hitting a specific apidoc or guide page that includes 10.0 works fine. Hitting the landing page for the other versions also works OK, such as http://docs.marklogic.com/9.0.

I'm going to assign this to myself for now, in hopes that I stumble across an answer while working on other RunDMC work.

kcoleman-marklogic commented 5 years ago

I very much believe the fault lies here:

https://github.com/marklogic-community/RunDMC/blob/3bcae69691e1a034cd2be14ddce7068e61bc116e/src/apidoc/controller/rewrite.xqm#L55-L59

Note the occurences of \d rather than \d+.

kcoleman-marklogic commented 5 years ago

This fix is now deployed internally and seems to be working fine.