[GH-ISSUE #5306] Panel Issues & Improvements Report #3716

Closed
opened 2026-10-31 20:34:26 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @monhacer on GitHub (Jun 14, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5306

Describe the bug

This issue summarizes multiple problems and regressions observed in the new panel version compared to previous releases.

  1. Export Inbound Data Regression
    In the new version, the Inbound export feature has regressed compared to previous versions.

Previous Behavior
The export provided a full structured JSON output including:
User information
Usage statistics
Expiration / end date
Additional metadata
This was useful for database maintenance and periodic cleanup operations.

Current Behavior
Only two export formats are available:
Combined configuration output (e.g. vless://...)
Subscription links concatenated as plain text

Issue
The structured JSON export is missing.

  1. Outbound Server Domain Resolution Issue
    When adding an outbound server, domain-based addresses are not handled correctly.

Current Behavior
If the Address field contains a domain instead of an IP, the system does not resolve it properly.

Expected Behavior
If the address is a domain:
Perform DNS resolution (lookup/ping)
Convert it to the corresponding IP
Store/render the resolved IP in the backend

Additional Notes
This issue also exists in outbound subscription entries.

  1. UI Bug — Date Picker Language Mismatch
    In English UI mode, the Date Picker still displays Persian text.
    Current Behavior
    Displays:
    “تاریخ را وارد کنید” (Enter the date)

Expected Behavior
The Date Picker should fully respect the selected UI language.

Possible Cause
Likely related to forced Persian (Jalali) calendar localization.

  1. Unexpected Client State Change on Reset Flow
    Reset Flow causes unintended changes in client status.
    Current Behavior
    If a client has:
    Ended
    Disabled
    And Reset Flow is triggered from the client list (without editing the client), the client is automatically set to:
    Enabled

Issue
State change occurs without explicit user action or confirmation.

Expected Behavior
Reset Flow should not modify client status unless explicitly intended.

Summary
The above issues include regressions, UI inconsistencies, and unexpected backend behavior that should be reviewed and fixed to restore previous stability and expected functionality.

How to reproduce the problem

  1. Export Inbound Data Regression

  2. Go to the Inbound section in the panel

2.Click on more icon

  1. Click on the Export option

  2. Observe available export formats

Expected: Structured JSON export including user data, usage, and expiration info

Actual: Only config string (vless://...) and subscription link output are available


  1. Outbound Server Domain Resolution Issue

  2. Go to Outbound configuration page

  3. Add a new outbound server

  4. Set the Address field to a domain (e.g. example.com) instead of an IP

  5. Save the configuration

  6. Use or inspect the outbound entry

Expected: Domain is resolved to IP and stored/used correctly

Actual: Domain is not properly resolved and may cause incorrect behavior


  1. UI Bug — Date Picker Language Mismatch

  2. Set UI language to English

  3. Navigate to any form containing a Date Picker

  4. Open the Date Picker component

Expected: English text in UI
Actual: Persian text is displayed (“تاریخ را وارد کنید”)


  1. Unexpected Client State Change on Reset Flow

  2. Create or locate a client with status:

Ended

Disabled

  1. Go to client list view

  2. Click Reset Flow from the action icon (without editing the client)

  3. Observe client status after action

Expected: Only flow reset is applied, status remains unchanged
Actual: Client status changes to Enabled automatically

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.3.1

Xray-core version

No response

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24.04

Which parts of the panel are affected?

No response

Browser (only if it is a UI bug)

Chrome

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @monhacer on GitHub (Jun 14, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5306 ### Describe the bug This issue summarizes multiple problems and regressions observed in the new panel version compared to previous releases. 1. Export Inbound Data Regression In the new version, the Inbound export feature has regressed compared to previous versions. Previous Behavior The export provided a full structured JSON output including: User information Usage statistics Expiration / end date Additional metadata This was useful for database maintenance and periodic cleanup operations. Current Behavior Only two export formats are available: Combined configuration output (e.g. vless://...) Subscription links concatenated as plain text Issue The structured JSON export is missing. 2. Outbound Server Domain Resolution Issue When adding an outbound server, domain-based addresses are not handled correctly. Current Behavior If the Address field contains a domain instead of an IP, the system does not resolve it properly. Expected Behavior If the address is a domain: Perform DNS resolution (lookup/ping) Convert it to the corresponding IP Store/render the resolved IP in the backend Additional Notes This issue also exists in outbound subscription entries. 3. UI Bug — Date Picker Language Mismatch In English UI mode, the Date Picker still displays Persian text. Current Behavior Displays: “تاریخ را وارد کنید” (Enter the date) Expected Behavior The Date Picker should fully respect the selected UI language. Possible Cause Likely related to forced Persian (Jalali) calendar localization. 4. Unexpected Client State Change on Reset Flow Reset Flow causes unintended changes in client status. Current Behavior If a client has: Ended Disabled And Reset Flow is triggered from the client list (without editing the client), the client is automatically set to: Enabled Issue State change occurs without explicit user action or confirmation. Expected Behavior Reset Flow should not modify client status unless explicitly intended. Summary The above issues include regressions, UI inconsistencies, and unexpected backend behavior that should be reviewed and fixed to restore previous stability and expected functionality. ### How to reproduce the problem 1. Export Inbound Data Regression 1. Go to the Inbound section in the panel 2.Click on more icon 3. Click on the Export option 4. Observe available export formats Expected: Structured JSON export including user data, usage, and expiration info Actual: Only config string (vless://...) and subscription link output are available --- 2. Outbound Server Domain Resolution Issue 1. Go to Outbound configuration page 2. Add a new outbound server 3. Set the Address field to a domain (e.g. example.com) instead of an IP 4. Save the configuration 5. Use or inspect the outbound entry Expected: Domain is resolved to IP and stored/used correctly Actual: Domain is not properly resolved and may cause incorrect behavior --- 3. UI Bug — Date Picker Language Mismatch 1. Set UI language to English 2. Navigate to any form containing a Date Picker 3. Open the Date Picker component Expected: English text in UI Actual: Persian text is displayed (“تاریخ را وارد کنید”) --- 4. Unexpected Client State Change on Reset Flow 1. Create or locate a client with status: Ended Disabled 2. Go to client list view 3. Click Reset Flow from the action icon (without editing the client) 4. Observe client status after action Expected: Only flow reset is applied, status remains unchanged Actual: Client status changes to Enabled automatically ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.3.1 ### Xray-core version _No response_ ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24.04 ### Which parts of the panel are affected? _No response_ ### Browser (only if it is a UI bug) Chrome ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:34:27 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 14, 2026):

Each of the four points has been checked against the source code at v3.3.1.


1. Export Inbound Data — not a regression; the JSON export is under a different menu item

The structured JSON export was not removed. In frontend/src/pages/inbounds/list/RowActions.tsx (line 49) there is a separate menu entry with the key 'clipboard', rendered with the i18n key pages.inbounds.exportInbound. Clicking it calls exportInboundClipboard() in InboundsPage.tsx, which opens a JSON editor showing the complete inbound record — including all client settings, traffic counters, and expiry values — formatted as JSON.stringify(dbInbound, null, 2).

The separate "Export" entry (line 38, key 'export') is the one that generates config-link strings (vless://, etc.) and is only shown for multi-user inbounds.

Action needed from you: please confirm whether the "Export Inbound" item is missing from your three-dot menu, or whether you were using the "Export" item expecting it to produce JSON. If "Export Inbound" is genuinely absent from your menu, a screenshot would help.


2. Outbound domain address — enhancement, not a bug

The outbound address field is stored exactly as entered. When the connectivity test runs (probeTCPEndpoint in internal/web/service/outbound/outbound.go, line 199), it passes the address string directly to Go's net.DialTimeout, which performs DNS resolution internally. The connection itself works with a domain; what does not exist is an explicit step that resolves the domain, displays the resolved IP, or writes it back to the stored address. That would be a new feature — there is no prior code path that did this, so there is no regression to restore.

If you want to request that behavior, a focused feature request describing exactly what should be stored or displayed would be the right way to track it.


3. Date picker Persian placeholder — confirmed bug

The placeholder text is a bug in frontend/src/components/form/DateTimePicker.tsx. When the datepicker setting is 'jalalian', the component renders PersianDateTimePicker from the persian-calendar-suite library (lines 64–84) but does not forward the placeholder prop to it. The library therefore falls back to its own hardcoded Persian default ("تاریخ را وارد کنید"). The Ant Design DatePicker path (lines 87–97) correctly forwards placeholder.

Note that the calendar type (Gregorian vs. Jalalian) is an independent setting from the UI display language; both are configurable separately in the panel settings. The bug here is the missing prop pass-through, not the calendar selection itself.


4. Reset traffic unconditionally re-enables clients — confirmed bug

This is reproducible from the source. Every code path that resets a client's traffic counters also sets the enable flag to true, regardless of why the client was disabled:

  • internal/web/service/client_traffic.go lines 30–40 (ResetTrafficByEmail): if \!rec.Enable, it calls s.Update(...) with Enable = true before resetting counters.
  • internal/web/service/client_traffic.go lines 82–88 and 96–98 (BulkResetTraffic): re-enables in a client-loop and again hard-codes "enable": true in the batch SQL update.
  • internal/web/service/inbound_traffic.go line 476 (ResetClientTrafficByEmail): SQL update always includes "enable": true.
  • internal/web/service/inbound_traffic.go line 560 (resetClientTrafficLocked): unconditionally sets traffic.Enable = true before saving.

The intended design appears to be: a client disabled by an automatic traffic or expiry limit should be re-enabled when traffic is reset. The problem is that clients disabled explicitly by the administrator are also re-enabled. The two cases are not distinguished anywhere in the reset path.


This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:4700411525 --> @github-actions[bot] commented on GitHub (Jun 14, 2026): Each of the four points has been checked against the source code at v3.3.1. --- **1. Export Inbound Data — not a regression; the JSON export is under a different menu item** The structured JSON export was not removed. In `frontend/src/pages/inbounds/list/RowActions.tsx` (line 49) there is a separate menu entry with the key `'clipboard'`, rendered with the i18n key `pages.inbounds.exportInbound`. Clicking it calls `exportInboundClipboard()` in `InboundsPage.tsx`, which opens a JSON editor showing the complete inbound record — including all client settings, traffic counters, and expiry values — formatted as `JSON.stringify(dbInbound, null, 2)`. The separate "Export" entry (line 38, key `'export'`) is the one that generates config-link strings (vless://, etc.) and is only shown for multi-user inbounds. **Action needed from you:** please confirm whether the "Export Inbound" item is missing from your three-dot menu, or whether you were using the "Export" item expecting it to produce JSON. If "Export Inbound" is genuinely absent from your menu, a screenshot would help. --- **2. Outbound domain address — enhancement, not a bug** The outbound address field is stored exactly as entered. When the connectivity test runs (`probeTCPEndpoint` in `internal/web/service/outbound/outbound.go`, line 199), it passes the address string directly to Go's `net.DialTimeout`, which performs DNS resolution internally. The connection itself works with a domain; what does not exist is an explicit step that resolves the domain, displays the resolved IP, or writes it back to the stored address. That would be a new feature — there is no prior code path that did this, so there is no regression to restore. If you want to request that behavior, a focused feature request describing exactly what should be stored or displayed would be the right way to track it. --- **3. Date picker Persian placeholder — confirmed bug** The placeholder text is a bug in `frontend/src/components/form/DateTimePicker.tsx`. When the datepicker setting is `'jalalian'`, the component renders `PersianDateTimePicker` from the `persian-calendar-suite` library (lines 64–84) but does not forward the `placeholder` prop to it. The library therefore falls back to its own hardcoded Persian default ("تاریخ را وارد کنید"). The Ant Design `DatePicker` path (lines 87–97) correctly forwards `placeholder`. Note that the calendar type (Gregorian vs. Jalalian) is an independent setting from the UI display language; both are configurable separately in the panel settings. The bug here is the missing prop pass-through, not the calendar selection itself. --- **4. Reset traffic unconditionally re-enables clients — confirmed bug** This is reproducible from the source. Every code path that resets a client's traffic counters also sets the `enable` flag to `true`, regardless of why the client was disabled: - `internal/web/service/client_traffic.go` lines 30–40 (`ResetTrafficByEmail`): if `\!rec.Enable`, it calls `s.Update(...)` with `Enable = true` before resetting counters. - `internal/web/service/client_traffic.go` lines 82–88 and 96–98 (`BulkResetTraffic`): re-enables in a client-loop and again hard-codes `"enable": true` in the batch SQL update. - `internal/web/service/inbound_traffic.go` line 476 (`ResetClientTrafficByEmail`): SQL update always includes `"enable": true`. - `internal/web/service/inbound_traffic.go` line 560 (`resetClientTrafficLocked`): unconditionally sets `traffic.Enable = true` before saving. The intended design appears to be: a client disabled by an automatic traffic or expiry limit should be re-enabled when traffic is reset. The problem is that clients disabled explicitly by the administrator are also re-enabled. The two cases are not distinguished anywhere in the reset path. --- _This reply was generated automatically; a maintainer may follow up._
Author
Owner

@monhacer commented on GitHub (Jun 14, 2026):

Each of the four points has been checked against the source code at v3.3.1.

1. Export Inbound Data — not a regression; the JSON export is under a different menu item

The structured JSON export was not removed. In frontend/src/pages/inbounds/list/RowActions.tsx (line 49) there is a separate menu entry with the key 'clipboard', rendered with the i18n key pages.inbounds.exportInbound. Clicking it calls exportInboundClipboard() in InboundsPage.tsx, which opens a JSON editor showing the complete inbound record — including all client settings, traffic counters, and expiry values — formatted as JSON.stringify(dbInbound, null, 2).

The separate "Export" entry (line 38, key 'export') is the one that generates config-link strings (vless://, etc.) and is only shown for multi-user inbounds.

Action needed from you: please confirm whether the "Export Inbound" item is missing from your three-dot menu, or whether you were using the "Export" item expecting it to produce JSON. If "Export Inbound" is genuinely absent from your menu, a screenshot would help.

2. Outbound domain address — enhancement, not a bug

The outbound address field is stored exactly as entered. When the connectivity test runs (probeTCPEndpoint in internal/web/service/outbound/outbound.go, line 199), it passes the address string directly to Go's net.DialTimeout, which performs DNS resolution internally. The connection itself works with a domain; what does not exist is an explicit step that resolves the domain, displays the resolved IP, or writes it back to the stored address. That would be a new feature — there is no prior code path that did this, so there is no regression to restore.

If you want to request that behavior, a focused feature request describing exactly what should be stored or displayed would be the right way to track it.

3. Date picker Persian placeholder — confirmed bug

The placeholder text is a bug in frontend/src/components/form/DateTimePicker.tsx. When the datepicker setting is 'jalalian', the component renders PersianDateTimePicker from the persian-calendar-suite library (lines 64–84) but does not forward the placeholder prop to it. The library therefore falls back to its own hardcoded Persian default ("تاریخ را وارد کنید"). The Ant Design DatePicker path (lines 87–97) correctly forwards placeholder.

Note that the calendar type (Gregorian vs. Jalalian) is an independent setting from the UI display language; both are configurable separately in the panel settings. The bug here is the missing prop pass-through, not the calendar selection itself.

4. Reset traffic unconditionally re-enables clients — confirmed bug

This is reproducible from the source. Every code path that resets a client's traffic counters also sets the enable flag to true, regardless of why the client was disabled:

  • internal/web/service/client_traffic.go lines 30–40 (ResetTrafficByEmail): if \!rec.Enable, it calls s.Update(...) with Enable = true before resetting counters.
  • internal/web/service/client_traffic.go lines 82–88 and 96–98 (BulkResetTraffic): re-enables in a client-loop and again hard-codes "enable": true in the batch SQL update.
  • internal/web/service/inbound_traffic.go line 476 (ResetClientTrafficByEmail): SQL update always includes "enable": true.
  • internal/web/service/inbound_traffic.go line 560 (resetClientTrafficLocked): unconditionally sets traffic.Enable = true before saving.

The intended design appears to be: a client disabled by an automatic traffic or expiry limit should be re-enabled when traffic is reset. The problem is that clients disabled explicitly by the administrator are also re-enabled. The two cases are not distinguished anywhere in the reset path.

This reply was generated automatically; a maintainer may follow up.

You're right. The Export Inbound button was elsewhere, and the domain issue in Outbound has been fixed in the new update. Glad it's resolved.

<!-- gh-comment-id:4700617956 --> @monhacer commented on GitHub (Jun 14, 2026): > Each of the four points has been checked against the source code at v3.3.1. > > **1. Export Inbound Data — not a regression; the JSON export is under a different menu item** > > The structured JSON export was not removed. In `frontend/src/pages/inbounds/list/RowActions.tsx` (line 49) there is a separate menu entry with the key `'clipboard'`, rendered with the i18n key `pages.inbounds.exportInbound`. Clicking it calls `exportInboundClipboard()` in `InboundsPage.tsx`, which opens a JSON editor showing the complete inbound record — including all client settings, traffic counters, and expiry values — formatted as `JSON.stringify(dbInbound, null, 2)`. > > The separate "Export" entry (line 38, key `'export'`) is the one that generates config-link strings (vless://, etc.) and is only shown for multi-user inbounds. > > **Action needed from you:** please confirm whether the "Export Inbound" item is missing from your three-dot menu, or whether you were using the "Export" item expecting it to produce JSON. If "Export Inbound" is genuinely absent from your menu, a screenshot would help. > > **2. Outbound domain address — enhancement, not a bug** > > The outbound address field is stored exactly as entered. When the connectivity test runs (`probeTCPEndpoint` in `internal/web/service/outbound/outbound.go`, line 199), it passes the address string directly to Go's `net.DialTimeout`, which performs DNS resolution internally. The connection itself works with a domain; what does not exist is an explicit step that resolves the domain, displays the resolved IP, or writes it back to the stored address. That would be a new feature — there is no prior code path that did this, so there is no regression to restore. > > If you want to request that behavior, a focused feature request describing exactly what should be stored or displayed would be the right way to track it. > > **3. Date picker Persian placeholder — confirmed bug** > > The placeholder text is a bug in `frontend/src/components/form/DateTimePicker.tsx`. When the datepicker setting is `'jalalian'`, the component renders `PersianDateTimePicker` from the `persian-calendar-suite` library (lines 64–84) but does not forward the `placeholder` prop to it. The library therefore falls back to its own hardcoded Persian default ("تاریخ را وارد کنید"). The Ant Design `DatePicker` path (lines 87–97) correctly forwards `placeholder`. > > Note that the calendar type (Gregorian vs. Jalalian) is an independent setting from the UI display language; both are configurable separately in the panel settings. The bug here is the missing prop pass-through, not the calendar selection itself. > > **4. Reset traffic unconditionally re-enables clients — confirmed bug** > > This is reproducible from the source. Every code path that resets a client's traffic counters also sets the `enable` flag to `true`, regardless of why the client was disabled: > > * `internal/web/service/client_traffic.go` lines 30–40 (`ResetTrafficByEmail`): if `\!rec.Enable`, it calls `s.Update(...)` with `Enable = true` before resetting counters. > * `internal/web/service/client_traffic.go` lines 82–88 and 96–98 (`BulkResetTraffic`): re-enables in a client-loop and again hard-codes `"enable": true` in the batch SQL update. > * `internal/web/service/inbound_traffic.go` line 476 (`ResetClientTrafficByEmail`): SQL update always includes `"enable": true`. > * `internal/web/service/inbound_traffic.go` line 560 (`resetClientTrafficLocked`): unconditionally sets `traffic.Enable = true` before saving. > > The intended design appears to be: a client disabled by an automatic traffic or expiry limit should be re-enabled when traffic is reset. The problem is that clients disabled explicitly by the administrator are also re-enabled. The two cases are not distinguished anywhere in the reset path. > > _This reply was generated automatically; a maintainer may follow up._ You're right. The Export Inbound button was elsewhere, and the domain issue in Outbound has been fixed in the new update. Glad it's resolved.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3716
No description provided.