[CSHARP-4009] The API documentation for earlier versions is not accessible Created: 06/Jan/22  Updated: 28/Oct/23  Resolved: 08/Jan/22

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.11, 2.0.2, 2.1.1, 2.2.4
Fix Version/s: 2.15.0

Type: Improvement Priority: Minor - P4
Reporter: Kevin Xiong Assignee: Robert Stam
Resolution: Fixed Votes: 0
Labels: docs
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2022-01-06-16-36-39-418.png    

 Description   

The link of below is not accessible

 

  1. https://api.mongodb.com/csharp/1.11
  2. https://api.mongodb.com/csharp/2.0
  3. https://api.mongodb.com/csharp/2.1
  4. https://api.mongodb.com/csharp/2.2

 

<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>04V8533KXSSZ6TY2</RequestId><HostId>vOsULMnfiH2Crr3NWjwjNeE6iN3R635AXdq+2C6nI081RuO2FxsdkoVyGszEW9yQym8BMRnaqmw=</HostId></Error>

 



 Comments   
Comment by Githook User [ 07/Jan/22 ]

Author:

{'name': 'James Kovacs', 'email': 'jkovacs@post.harvard.edu', 'username': 'JamesKovacs'}

Message: CSHARP-4009: Fix hrefs to apidocs for versions 1.11, 2.0, 2.1, and 2.2.
Branch: gh-pages
https://github.com/mongodb/mongo-csharp-driver/commit/ed8056dc9a47676097ce2715b12c1dfa245f203e

Comment by Githook User [ 07/Jan/22 ]

Author:

{'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}

Message: CSHARP-4009: Use https instead of http in new links.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/451a1276dbc7c71fd31b904d8ecc299aa02e6b1b

Comment by Robert Stam [ 07/Jan/22 ]

apidocs prior to 2.3.0 used to be hosted at a web site called `api.mongodb.org`

apidocs starting with 2.3.0 are instead hosted directly in `mongodb.github.io/mongo-csharp-driver`

It appears that the `api.mongodb.org` web site has been updated and these old links have gone bad.

Comment by James Kovacs [ 07/Jan/22 ]

We are getting a 404 because those apidocs directories don't exist for these old versions in the gh-pages branch:

> find * -name apidocs
2.10/apidocs
2.11/apidocs
2.12/apidocs
2.13/apidocs
2.14/apidocs
2.3/apidocs
2.4/apidocs
2.5/apidocs
2.6/apidocs
2.7/apidocs
2.8/apidocs
2.9/apidocs

It looks like they never existed. For example, let's look at the 2.3 apidocs...

> git log --full-history -- 2.3/apidocs
commit 3ecc47c9c6c51a8a1d969fc6ea2422f44857735c
Author: rstam <robert@robertstam.org>
Date:   Fri Sep 23 14:43:10 2016 -0400
 
    Adding docs for 2.3.0.
(END)

But 2.2 and earlier show nothing:

> git log --full-history -- 2.2/apidocs
(END)

Comment by Robert Stam [ 07/Jan/22 ]

Thank you for reporting this. We will try to figure out how to restore access to these docs.

Comment by Kevin Xiong [ 06/Jan/22 ]

The screenshot was from the home page of MongoDB .NET Driver

MongoDB .NET Driver

Generated at Wed Feb 07 21:46:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.