creativecommons / cc-legal-tools-data

Legal tool (licenses, public domain dedication, etc.) data for Creative Commons
Creative Commons Zero v1.0 Universal
25 stars 40 forks source link

Data: Add RedirectMatch for ccEngine bug URLs #191

Closed TimidRobot closed 5 months ago

TimidRobot commented 5 months ago

Description

Data: Add RedirectMatch for ccEngine bug URLs

Also see related App PR:

Tests

Tested using creativecommons/index-dev-env:

Before changes

command:

http -h http://localhost:8080/licenses/by/4.0/mi/deed

output:

HTTP/1.1 404 Not Found
Connection: Keep-Alive
Content-Length: 273
Content-Type: text/html; charset=iso-8859-1
Date: Thu, 25 Apr 2024 19:28:15 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.59 (Debian)

command:

http://localhost:8080/licenses/by/4.0/mi/legalcode

output:

HTTP/1.1 404 Not Found
Connection: Keep-Alive
Content-Length: 273
Content-Type: text/html; charset=iso-8859-1
Date: Thu, 25 Apr 2024 19:28:15 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.59 (Debian)

After changes

command:

http -h http://localhost:8080/licenses/by/4.0/mi/deed

output:

HTTP/1.1 301 Moved Permanently
Connection: Keep-Alive
Content-Length: 330
Content-Type: text/html; charset=iso-8859-1
Date: Thu, 25 Apr 2024 19:47:19 GMT
Keep-Alive: timeout=5, max=100
Location: http://localhost:8080/licenses/by/4.0/deed.mi
Server: Apache/2.4.59 (Debian)

command:

http -h http://localhost:8080/licenses/by/4.0/mi/legalcode

output:

HTTP/1.1 301 Moved Permanently
Connection: Keep-Alive
Content-Length: 335
Content-Type: text/html; charset=iso-8859-1
Date: Thu, 25 Apr 2024 19:47:19 GMT
Keep-Alive: timeout=5, max=100
Location: http://localhost:8080/licenses/by/4.0/legalcode.mi
Server: Apache/2.4.59 (Debian)

Checklist

Developer Certificate of Origin

For the purposes of this DCO, "license" is equivalent to "license or public domain dedication," and "open source license" is equivalent to "open content license or public domain dedication."

Developer Certificate of Origin ``` Developer Certificate of Origin Version 1.1 Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 1 Letterman Drive Suite D4700 San Francisco, CA, 94129 Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Developer's Certificate of Origin 1.1 By making a contribution to this project, I certify that: (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it. (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved. ```
Shafiya-Heena commented 5 months ago

deployed to production & staging Mon 29 Apr 2024 05:19:10 PM UTC (it may take 30 minutes for caches to expire)