Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • cubicweb cubicweb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 197
    • Issues 197
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cubicweb
  • cubicwebcubicweb
  • Issues
  • #204

Closed
Open
Created Jan 15, 2021 by Carine Dengler@cdenglerMaintainer

CW_BASE_URL ending on /cms leads to files in /data to not be found

Short description:

CW_BASE_URL https://k8s-cms-base-url.francearchives.demo.logilab.fr/cms leads to files in /data to not be found while https://k8s-cms-base-url[k8s-cms-base-url.francearchives.demo.logilab.fr works fine

Version: 3.28

Long description:

Changing CW_BASE_URL from https://k8s-cms-base-url.francearchives.demo.logilab.fr to https://k8s-cms-base-url.francearchives.demo.logilab.fr/cms leads to 404 errors on any files in /data, while the application itself works fine. This behavior has been observed in our Kubernetes deployment (its unclear whether our prod or preprod deployments are showing this behavior as well, since these files are served directly by nginx).

The following behavior is observed for a given URL

https://k8s-cms-base-url.francearchives.demo.logilab.fr/cms/data/846f3564704e5cf0325b6b3fea7a6866/css/bootstrap.min.css/ (how it is send by the application) -> not found error by application

https://k8s-cms-base-url.francearchives.demo.logilab.fr/cms/data/846f3564704e5cf0325b6b3fea7a6866/css/bootstrap.min.css (no slash) -> not found error by application

https://k8s-cms-base-url.francearchives.demo.logilab.fr/data/846f3564704e5cf0325b6b3fea7a6866/css/bootstrap.min.css/ (no /cms) -> not found error by web server

https://k8s-cms-base-url.francearchives.demo.logilab.fr/data/846f3564704e5cf0325b6b3fea7a6866/css/bootstrap.min.css (no slash, no /cms) -> file found \o/

Network logs CubicWeb logs

It's not urgent, since we will probably serve our /data files by nginx in this case as well, but I would be greatly interested in finding out what the problem is.

Edited Jan 15, 2021 by Carine Dengler
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking