In the composer.json file package url is given for https://packages.drupal.org/8. URL for the package should be updated.

{
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        }
CommentFileSizeAuthor
#2 3263402-2.patch314 bytesgauravvvv

Comments

Gauravmahlawat created an issue. See original summary.

gauravvvv’s picture

Status: Active » Needs review
StatusFileSize
new314 bytes

I have updated the path, Please review

larowlan’s picture

Status: Needs review » Postponed (maintainer needs more info)

Do we have anything at that url? I don't think so

cilefen’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Agreed: that would be a bad idea because no repo exists at that URL. If you think there should be versioned endpoints for aesthetic (or other) reasons, open an issue at https://www.drupal.org/project/project_composer if none exists.

$ curl -I https://packages.drupal.org/8/packages.json                                    
HTTP/2 200 
server: nginx
content-type: application/json
x-drupal-cache: MISS
expires: Sun, 19 Nov 1978 05:00:00 GMT
cache-control: no-cache, must-revalidate
content-language: en
via: 1.1 varnish, 1.1 varnish
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self'
permissions-policy: interest-cohort=()
strict-transport-security: max-age=15552000; includeSubDomains; preload
accept-ranges: bytes
date: Wed, 09 Feb 2022 19:49:51 GMT
age: 0
x-served-by: cache-sea4471-SEA, cache-ewr18133-EWR
x-cache: MISS, MISS
x-cache-hits: 0, 0
x-timer: S1644436192.625468,VS0,VE196
vary: Accept-Encoding

$  curl -I https://packages.drupal.org/9/packages.json
HTTP/2 302 
server: Varnish
retry-after: 0
location: https://www.drupal.org/9/packages.json
accept-ranges: bytes
date: Wed, 09 Feb 2022 19:49:56 GMT
via: 1.1 varnish
x-served-by: cache-ewr18125-EWR
x-cache: HIT
x-cache-hits: 0
x-timer: S1644436197.915331,VS0,VE0
content-length: 0
gauravvvv’s picture

https://packages.drupal.org/8 This URL redirects to Drupal 8 pagehttps://www.drupal.org/8, Same for https://packages.drupal.org/9, it's also redirecting to drupal 9 page.

cilefen’s picture

No one is supposed to browse these URLs with a web browser.