Cannot edit 'Expire after' for Shared links #7952

Closed
opened 2026-02-05 13:25:58 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @oscarnorberg on GitHub (Nov 29, 2025).

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

By default, I always set an expiry time for shared album links. In rare occasions, the person I share an album with needs access after the expiry time.

When I go to Shared links I can see that the link in question is Expired. When I click on the link, I can edit custom URL, password, description, toggle metadata, allow public user to download and allow public user to upload. But I cannot edit the Expire after dropdown link.

Also, the entry in the Expire after does not match what I set when I created the link. In the picture below, you can see it shows as 55 years ago. For this particular shared link, it was probably around 1-3 months ago. I have checked all expired shared links and they all say 55 years ago and are uneditable.

By the way, I love everything about the shared link page, the (expected) functionality, the clear UI, all. If I could just re-enable expired links by setting a new expiry date into the future. 😅

Image

The OS that Immich Server is running on

OMV 7.7.18-1 (Sandworm), Linux 6.12.43+deb12-amd64

Version of Immich Server

v2.3.1

Version of Immich Mobile App

N/A

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

No response

Your docker-compose.yml content

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends:
    #   file: hwaccel.transcoding.yml
    #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /srv/mergerfs/storage/camera/from-synology-2024-07-10:/from-synology-2024-07-10:ro
      - /etc/localtime:/etc/localtime:ro
      - ${LIBRARY_LOCATION}:/usr/src/app/upload/library
      - ${THUMBS_LOCATION}:/usr/src/app/upload/thumbs
      - ${PROFILE_LOCATION}:/usr/src/app/upload/profile
      - ${VIDEO_LOCATION}:/usr/src/app/upload/encoded-video
    env_file:
      - immich-server.env
    ports:
      - 2283:2283
    depends_on:
      - redis
      - database
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
    #   file: hwaccel.ml.yml
    #   service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
    volumes:
      - model-cache:/cache
      - ${LIBRARY_LOCATION}:/usr/src/app/upload/library
      - ${THUMBS_LOCATION}:/usr/src/app/upload/thumbs
      - ${PROFILE_LOCATION}:/usr/src/app/upload/profile
      - ${VIDEO_LOCATION}:/usr/src/app/upload/encoded-video
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
    env_file:
     - immich-server.env
    restart: always

  redis:
    container_name: immich_redis
    image: docker.io/redis:6.2-alpine@sha256:328fe6a5822256d065debb36617a8169dbfbd77b797c525288e465f56c1d392b
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always

  database:
    container_name: immich_postgres
    image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
    volumes:
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    healthcheck:
      test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
      interval: 5m
      start_interval: 30s
      start_period: 5m
    command: ["postgres", "-c" ,"shared_preload_libraries=vectors.so", "-c", 'search_path="$$user", public, vectors', "-c", "logging_collector=on", "-c", "max_wal_size=2GB", "-c", "shared_buffers=512MB", "-c", "wal_compression=on"]
    restart: always

volumes:
  model-cache:

networks:
  default:
    name: npmnet
    external: true

Your .env content

# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
LIBRARY_LOCATION=/srv/mergerfs/storage/camera/immich-library
THUMBS_LOCATION=/docker-data/Immich-Cache/thumbs/
UPLOAD_LOCATION=/docker-data/Immich-Cache/upload/
PROFILE_LOCATION=/docker-data/Immich-Cache/profile/
VIDEO_LOCATION=/docker-data/Immich-Cache/encoded-video/
# The location where your database files are stored
DB_DATA_LOCATION=/immich-server

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# TZ=Etc/UTC

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
DB_PASSWORD=HIDDEN

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

Reproduction steps

  1. Create a shared link for an album, set expiry time
  2. Wait for expiry time to pass
  3. Go to Shared links
  4. Click on Edit button for expired link
  5. Check Expire after and try to set it to a future value (not possible)
    ...

Relevant log output


Additional information

No response

Originally created by @oscarnorberg on GitHub (Nov 29, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug By default, I always set an expiry time for shared album links. In rare occasions, the person I share an album with needs access after the expiry time. When I go to Shared links I can see that the link in question is Expired. When I click on the link, I can edit custom URL, password, description, toggle metadata, allow public user to download and allow public user to upload. But I cannot edit the Expire after dropdown link. Also, the entry in the Expire after does not match what I set when I created the link. In the picture below, you can see it shows as 55 years ago. For this particular shared link, it was probably around 1-3 months ago. I have checked all expired shared links and they all say 55 years ago and are uneditable. By the way, I love everything about the shared link page, the (expected) functionality, the clear UI, all. If I could just re-enable expired links by setting a new expiry date into the future. 😅 <img width="432" height="779" alt="Image" src="https://github.com/user-attachments/assets/5bc8acab-da96-4aa6-9ba5-e29428a6942b" /> ### The OS that Immich Server is running on OMV 7.7.18-1 (Sandworm), Linux 6.12.43+deb12-amd64 ### Version of Immich Server v2.3.1 ### Version of Immich Mobile App N/A ### Platform with the issue - [x] Server - [ ] Web - [ ] Mobile ### Device make and model _No response_ ### Your docker-compose.yml content ```YAML services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} # extends: # file: hwaccel.transcoding.yml # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /srv/mergerfs/storage/camera/from-synology-2024-07-10:/from-synology-2024-07-10:ro - /etc/localtime:/etc/localtime:ro - ${LIBRARY_LOCATION}:/usr/src/app/upload/library - ${THUMBS_LOCATION}:/usr/src/app/upload/thumbs - ${PROFILE_LOCATION}:/usr/src/app/upload/profile - ${VIDEO_LOCATION}:/usr/src/app/upload/encoded-video env_file: - immich-server.env ports: - 2283:2283 depends_on: - redis - database restart: always immich-machine-learning: container_name: immich_machine_learning # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag. # Example tag: ${IMMICH_VERSION:-release}-cuda image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration # file: hwaccel.ml.yml # service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable volumes: - model-cache:/cache - ${LIBRARY_LOCATION}:/usr/src/app/upload/library - ${THUMBS_LOCATION}:/usr/src/app/upload/thumbs - ${PROFILE_LOCATION}:/usr/src/app/upload/profile - ${VIDEO_LOCATION}:/usr/src/app/upload/encoded-video - ${UPLOAD_LOCATION}:/usr/src/app/upload env_file: - immich-server.env restart: always redis: container_name: immich_redis image: docker.io/redis:6.2-alpine@sha256:328fe6a5822256d065debb36617a8169dbfbd77b797c525288e465f56c1d392b healthcheck: test: redis-cli ping || exit 1 restart: always database: container_name: immich_postgres image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0 environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: '--data-checksums' volumes: - ${DB_DATA_LOCATION}:/var/lib/postgresql/data healthcheck: test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1 interval: 5m start_interval: 30s start_period: 5m command: ["postgres", "-c" ,"shared_preload_libraries=vectors.so", "-c", 'search_path="$$user", public, vectors', "-c", "logging_collector=on", "-c", "max_wal_size=2GB", "-c", "shared_buffers=512MB", "-c", "wal_compression=on"] restart: always volumes: model-cache: networks: default: name: npmnet external: true ``` ### Your .env content ```Shell # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables # The location where your uploaded files are stored LIBRARY_LOCATION=/srv/mergerfs/storage/camera/immich-library THUMBS_LOCATION=/docker-data/Immich-Cache/thumbs/ UPLOAD_LOCATION=/docker-data/Immich-Cache/upload/ PROFILE_LOCATION=/docker-data/Immich-Cache/profile/ VIDEO_LOCATION=/docker-data/Immich-Cache/encoded-video/ # The location where your database files are stored DB_DATA_LOCATION=/immich-server # To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List # TZ=Etc/UTC # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release # Connection secret for postgres. You should change it to a random password DB_PASSWORD=HIDDEN # The values below this line do not need to be changed ################################################################################### DB_USERNAME=postgres DB_DATABASE_NAME=immich ``` ### Reproduction steps 1. Create a shared link for an album, set expiry time 2. Wait for expiry time to pass 3. Go to Shared links 4. Click on Edit button for expired link 5. Check Expire after and try to set it to a future value (not possible) ... ### Relevant log output ```shell ``` ### Additional information _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#7952