Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-1155

gerrit/gitweb urls not accessible without authentication (>>>docsite broken)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • None
    • None
    • Build and Tools

      Some URLsĀ on gerrit are not accessbile unless authenticated. There are also some relocation done and not handled by the documentation fetcher.

      Both issues cause major problems when retrieving markdown files to generate documentation site. See for example this page

      To reproduce a typical access made by doc fetcher:

      # curl -vL  "https://gerrit.automotivelinux.org/gerrit/gitweb?p=src/app-framework-main.git;a=blob_plain;f=docs/4-quick-tutorial.md;hb=master"
      ...
      < HTTP/1.1 302 Found
      * Server nginx/1.12.1 is not blacklisted
      < Server: nginx/1.12.1
      < Date: Fri, 01 Dec 2017 18:27:56 GMT
      < Content-Length: 0
      < Connection: keep-alive
      < Location: https://gerrit.automotivelinux.org/gerrit/login/%2Fgitweb%3Fp%3Dsrc%2Fapp-framework-main.git%3Ba%3Dblob_plain%3Bf%3Ddocs%2F4-quick-tutorial.md%3Bhb%3Dmaster
      ...
      < HTTP/1.1 401 Unauthorized
      * Server nginx/1.12.1 is not blacklisted
      < Server: nginx/1.12.1
      < Date: Fri, 01 Dec 2017 18:27:56 GMT
      < Content-Type: text/html; charset=UTF-8
      < Content-Length: 8468
      < Connection: keep-alive
      ...
      

      We see both issues: 302 + 401.

      See attached logs for details.

        1. curl.log
          4 kB
        2. doc_fetch.log
          14 kB
        3. screenshot-1.png
          238 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jsmoeller Jan-Simon Moeller
            sdesneux Stephane Desneux
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: