[CDRIVER-2147] Token replacement issue in download link Created: 01/May/17  Updated: 28/Oct/23  Resolved: 02/May/17

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.7.0

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Hannes Magnusson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The download instructions on for example http://mongoc.org/libbson/current/installing.html#installing-from-source have broken token replacement

The most recent release of libbson is |release| and can be `downloaded here <https://github.com/mongodb/libbson/releases/download/|release|/libbson-|release|.tar.gz>`_. The following snippet will download and extract the current release of the driver.

The first

|release|

is correctly replaced, but the url itself becomes

https://github.com/mongodb/libbson/releases/download/|release|/libbson-|release|.tar.gz



 Comments   
Comment by Githook User [ 03/May/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-2147 Token replacement issue in download link
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/cb110dbfe4d346c1207ff05005f305cde44f6470

Comment by Hannes Magnusson [ 02/May/17 ]

https://github.com/mongodb/libbson/commit/0878c6eb4fe3cb8747bdcd8a9d6150efdc6170c6

Comment by Hannes Magnusson [ 01/May/17 ]

The working replaced tokens also link to mongoc, not libbson. Should be patched like this:

diff --git a/doc/conf.py b/doc/conf.py
index 2cca681..4258620 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -28,7 +28,7 @@ rst_prolog = """
 
 .. |release_patch| replace:: %(release_patch)s
 
-.. |release_download| replace:: https://github.com/mongodb/mongo-c-driver/releases/download/%(release)s/mongo-c-driver-%(release)s.tar.gz
+.. |release_download| replace:: https://github.com/mongodb/libbson/releases/download/%(release)s/libbson-%(release)s.tar.gz
 """ % locals()
 
 language = 'en'

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