[GrandComicsDatabase/gcd-django] API: Can't use series titles with "/" in them: returns 404 (Issue #671)

8 views
Skip to first unread message

Lofter1

unread,
Aug 28, 2025, 6:03:45 AM (14 days ago) Aug 28
to GrandComicsDatabase/gcd-django, Subscribed
Lofter1 created an issue (GrandComicsDatabase/gcd-django#671)

When using the API, trying to look up a series like "DC / Marvel: All Access" will result in a 404.

Request URL:
https://www.comics.org/api/series/name/DC%20%2F%20Marvel%3A%20All%20Access/year/1996/

As you can see the "/" in the name was properly encoded and therefor this should not be treated like https://www.comics.org/api/series/name/DC%20/%20Marvel%3A%20All%20Access/year/1996/

This Django ticket might give some useful insights on what might go wrong and possible fixes/workarounds.
https://code.djangoproject.com/ticket/15718

Another workaround could be to match "DC Marvel: All Access" from the URL to "DC / Marvel: All Access" in the DB so that the consumer of the API can just remove "/" from the name and still get proper results. The current workaround would be to remove everything up to the "/" in the name to get valid results.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <GrandComicsDatabase/gcd-django/issues/671@github.com>

JochenGCD

unread,
Aug 30, 2025, 8:23:05 AM (12 days ago) Aug 30
to GrandComicsDatabase/gcd-django, Subscribed

Closed #671 as completed.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <GrandComicsDatabase/gcd-django/issue/671/issue_event/19423686382@github.com>

JochenGCD

unread,
Aug 30, 2025, 8:23:06 AM (12 days ago) Aug 30
to GrandComicsDatabase/gcd-django, Subscribed
jochengcd left a comment (GrandComicsDatabase/gcd-django#671)

https://www.comics.org/api/series/name/DC%20/%20Marvel:%20All%20Access/year/1996/
now works, which it didn't do before
https://beta.comics.org/api/series/name/DC%20/%20Marvel:%20All%20Access/year/1996/

/ should not be encoded

we are now using path instead of str
https://docs.djangoproject.com/en/5.2/topics/http/urls/
path - Matches any non-empty string, including the path separator, '/'. This allows you to match against a complete URL path rather than a segment of a URL path as with str.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <GrandComicsDatabase/gcd-django/issues/671/3239230808@github.com>

Lofter1

unread,
Aug 30, 2025, 8:40:30 AM (12 days ago) Aug 30
to GrandComicsDatabase/gcd-django, Subscribed

Awesome, thanks for the quick fix!


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <GrandComicsDatabase/gcd-django/issues/671/3239239289@github.com>

Reply all
Reply to author
Forward
0 new messages