Skip to content

Infinite loop of reloading Login page (opened via http) if browser locale is different from en_US #493

@Slenkis

Description

@Slenkis

LibreBooking info:

  • Project version: v2.8.6.2 (docker image tag = librebooking:develop)
  • Enviroment: run in docker-compose version 1.29.2

via this configuration:

docker-compose.yml
version: "3.7"

services:
  db:
    image: linuxserver/mariadb:10.6.13
    restart: always
    networks:
      - mynet
    volumes:
      - db_conf:/config
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Zurich
      - MYSQL_ROOT_PASSWORD=maria123
  app:
    image: librebooking/librebooking:develop
    restart: always
    depends_on:
      - db
    networks:
      - mynet
    ports:
      - "80:80"
    volumes:
      - app_conf:/config
    environment:
      - LB_DB_NAME=librebooking
      - LB_DB_USER=lb_user
      - LB_DB_USER_PWD=lb123
      - LB_DB_HOST=db
      - LB_INSTALL_PWD=install123
      - LB_ENV=dev
      - LB_LOG_FOLDER=/var/log/librebooking
      - LB_LOG_LEVEL=debug
      - LB_LOG_SQL=false
      - TZ=Europe/Zurich

volumes:
  db_conf:
  app_conf:

networks:
  mynet:

Browser info:

  • Locale: de-DE (problem with any locale other than en_US)
  • Google Chrome 134.0.6998.118 (Offical build) (64 bit) (cohort: Stable) and other browsers

Behavior:

  1. Open url: http://10.20.1.102/Web/index.php
  2. The page detects the browser locale and makes a GET request to http://10.20.1.102/Web/index.php?lang=de_de
  3. Receives a response with a 302 code and a header (for example):
set-cookie:
language=de_de; expires=Mon, 21 Apr 2025 18:45:05 GMT; Max-Age=2592000; secure; HttpOnly; SameSite=Lax
  1. Since the cookie has the secure flag set, it cannot be set.
  2. The page reloads and so on in a loop.

Video proof:

librebooking_issuse_login_page_loop_with_another_languages.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions