Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: AlistGo/alist
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.50.0
Choose a base ref
...
head repository: AlistGo/alist
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.51.0
Choose a head ref
  • 4 commits
  • 16 files changed
  • 2 contributors

Commits on Aug 16, 2025

  1. fix: resolve webdav decode issue (#9268)

    * fix: resolve webdav handshake error in permission checks
    
    - Updated role permission logic to handle bidirectional subpaths,
      fixing handshake termination by remote host due to path mismatch.
    - Refactored function naming for consistency and clarity.
    - Enhanced filtering of objects based on user permissions.
    - Modified `makePropstatResponse` to preserve encoded href paths.
    - Added test for `makePropstatResponse` to ensure href encoding.
    
    * Delete server/webdav/makepropstatresponse_test.go
    
    * ci(workflow): set GOPROXY for Go builds on GitHub Actions
    
    - Use `GOPROXY=https://proxy.golang.org,direct` to speed up module downloads
    - Mitigates network flakiness (e.g., checksum DB timeouts/rate limits)
    - `,direct` provides fallback for private/unproxyable modules
    - No build logic changes; only affects dependency resolution across all matrix targets
    
    ---------
    
    Co-authored-by: AlistGo <[email protected]>
    okatu-loli and alist666 authored Aug 16, 2025
    Configuration menu
    Copy the full SHA
    97d4f79 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2025

  1. feat: add user registration endpoint and role-based default settings (#…

    …9277)
    
    * feat(setting): add role-based default and registration settings (closed #feat/register-and-statistics)
    
    - Added `AllowRegister` and `DefaultRole` settings to site configuration.
    - Integrated dynamic role options for `DefaultRole` using `op.GetRoles`.
    - Updated `setting.go` handlers to manage `DefaultRole` options dynamically.
    - Modified `const.go` to include new site settings constants.
    - Updated dependencies in `go.mod` and `go.sum` to support new functionality.
    
    * feat(register-and-statistics): add user registration endpoint
    
    - Added `POST /auth/register` endpoint to support user registration.
    - Implemented registration logic in `auth.go` with dynamic role assignment.
    - Integrated settings `AllowRegister` and `DefaultRole` for registration flow.
    - Updated imports to include new modules: `conf`, `setting`.
    - Adjusted user creation logic to use `DefaultRole` setting dynamically.
    
    * feat(register-and-statistics): add user registration endpoint (#register-and-statistics)
    
    - Added `POST /auth/register` endpoint to support user registration.
    - Implemented registration logic in `auth.go` with dynamic role assignment.
    - Integrated `AllowRegister` and `DefaultRole` settings for registration flow.
    - Updated imports to include new modules: `conf`, `setting`.
    - Adjusted user creation logic to use `DefaultRole` dynamically.
    
    * feat(register-and-statistics): enhance role management logic (#register-and-statistics)
    
    - Refactored CreateRole and UpdateRole functions to handle default role.
    - Added dynamic role assignment logic in 'role.go' using conf settings.
    - Improved request handling in 'handles/role.go' with structured data.
    - Implemented default role logic in 'db/role.go' to update non-default roles.
    - Modified 'model/role.go' to include a 'Default' field for role management.
    
    * feat(register-and-statistics): enhance role management logic
    
    - Refactor CreateRole and UpdateRole to handle default roles.
    - Add dynamic role assignment using conf settings in 'role.go'.
    - Improve request handling with structured data in 'handles/role.go'.
    - Implement default role logic in 'db/role.go' for non-default roles.
    - Modify 'model/role.go' to include 'Default' field for role management.
    
    * feat(register-and-statistics): improve role handling logic
    
    - Switch from role names to role IDs for better consistency.
    - Update logic to prioritize "guest" for default role ID.
    - Adjust `DefaultRole` setting to use role IDs.
    - Refactor `getRoleOptions` to return role IDs as a comma-separated string.
    
    * feat(register-and-statistics): improve role handling logic
    okatu-loli authored Aug 18, 2025
    Configuration menu
    Copy the full SHA
    eca5008 View commit details
    Browse the repository at this point in the history
  2. fix(lanzou): correct comment parsing logic in lanzou driver (#9278)

    - Adjusted logic to skip incrementing index when exiting comments.
    - Added checks to continue loop if inside a single-line or block comment.
    - Prevents erroneous parsing and retains intended comment exclusion.
    okatu-loli authored Aug 18, 2025
    Configuration menu
    Copy the full SHA
    74e3841 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2025

  1. fix: ensure DefaultRole stores role ID while exposing role name in AP…

    …Is (#9279)
    
    * fix(setting): ensure DefaultRole stores role ID while exposing role name in APIs
    
    - Simplified initial settings to use `model.GUEST` as the default role ID instead of querying roles at startup.
    - Updated `GetSetting`, `ListSettings` handlers to:
      - Convert stored role ID into the corresponding role name when returning data.
      - Preserve dynamic role options for selection.
    - Removed unused `strings` import and role preloading logic from `InitialSettings`.
    - This change avoids DB dependency during initialization while keeping consistent role display for frontend clients.
    
    * fix(setting): ensure DefaultRole stores role ID while exposing role
    name in APIs (fix/settings-get-role)
    
    - Simplify initial settings to use `model.GUEST` as the default role ID
      instead of querying roles at startup.
    - Update `GetSetting`, `ListSettings` handlers to:
      - Convert stored role ID into the corresponding role name when
        returning data.
      - Preserve dynamic role options for selection.
    - Remove unused `strings` import and role preloading logic from
      `InitialSettings`.
    - Avoid DB dependency during initialization while keeping consistent
      role display for frontend clients.
    okatu-loli authored Aug 19, 2025
    Configuration menu
    Copy the full SHA
    a9fcd51 View commit details
    Browse the repository at this point in the history
Loading