Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Can't edit or delete ip list from web admin #1909

Open
2 tasks done
beparmentier opened this issue Feb 25, 2025 · 1 comment
Open
2 tasks done

[Bug]: Can't edit or delete ip list from web admin #1909

beparmentier opened this issue Feb 25, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@beparmentier
Copy link

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration issue.
  • This issue is not already reported on Github (I've searched it).

Bug description

Hello,

I created an ip list using the web admin

Image

But when I try to edit or delete it, I get an error

Image

Regards,

Steps to reproduce

  1. Create an ip list with a CIDR
  2. Edit the ip entry

Expected behavior

should edit or delete the ip list

SFTPGo version

2.6.5

Data provider

postgresql

Installation method

Community Docker image

Configuration

SFTPGO_GRACE_TIME 60
SFTPGO_COMMON__MAX_TOTAL_CONNECTIONS 300
SFTPGO_DATA_PROVIDER__PASSWORD xxx
SFTPGO_DATA_PROVIDER__SSLMODE 1
SFTPGO_HTTPD__BINDINGS__0__PORT 8080
SFTPGO_HTTPD__BINDINGS__0__ENABLE_WEB_ADMIN true
SFTPGO_HTTPD__BINDINGS__0__ENABLE_WEB_CLIENT true
SFTPGO_HTTPD__BINDINGS__0__ENABLE_REST_API true
SFTPGO_HTTPD__BINDINGS__0__SECURITY__ENABLED true
SFTPGO_TELEMETRY__BIND_PORT 3000
SFTPGO_TELEMETRY__BIND_ADDRESS 0.0.0.0
SFTPGO_COMMON__DEFENDER__ENABLED true
SFTPGO_SFTPD__BINDINGS__0__PORT 2222
SFTPGO_SFTPD__MAX_AUTH_TRIES 3
SFTPGO_DATA_PROVIDER__DRIVER postgresql
SFTPGO_DATA_PROVIDER__NAME sftpgo
SFTPGO_DATA_PROVIDER__HOST xxxx
SFTPGO_DATA_PROVIDER__PORT 5432
SFTPGO_DATA_PROVIDER__USERNAME sftpgo

Relevant log output

2025-02-25T14:58:51.0293786Z stdout F {"level":"warn","time":"2025-02-25T14:58:51.029","sender":"httpd","local_addr":"100.100.194.44:8080","method":"GET","proto":"HTTP/1.1","remote_addr":"100.100.0.28:50302","request_id":"684024ca-3855-4b83-b731-a04e79aa18bb","uri":"http://xxxx.xxx.xxx/web/admin/ip-list/2/163.116.174.0/24","user_agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36","resp_status":404,"resp_size":51023,"elapsed_ms":1}

What are you using SFTPGo for?

Medium business

Additional info

No response

@beparmentier beparmentier added the bug Something isn't working label Feb 25, 2025
@drakkan
Copy link
Owner

drakkan commented Feb 25, 2025

works for me using the same browser

{"level":"debug","time":"2025-02-25T16:17:43.756","sender":"httpd","cipher_suite":"","local_addr":"[::1]:8080","method":"DELETE","proto":"HTTP/1.1","remote_addr":"[::1]:52304","request_id":"p16s/Naj9brm1ZW-000019","uri":"http://localhost:8080/web/admin/ip-list/2/163.116.174.0%2F24","user_agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36","resp_status":200,"resp_size":28,"elapsed_ms":19}

not sure why in your case the URI is not properly encoded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants