Missing app quota check in app import API #12444

Closed
opened 2026-02-21 19:07:26 -05:00 by yindo · 1 comment
Owner

Originally created by @1Ckpwee on GitHub (Apr 1, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.1.3

Cloud or Self Hosted

Cloud

Steps to reproduce

  1. Log in to Dify with a Sandbox plan account (which has a limit of 5 apps)
  2. Create 5 apps through the normal app creation interface
  3. Try to import an additional app using the /console/api/apps/import endpoint
  4. The import will succeed, allowing you to exceed the plan's app limit

✔️ Expected Behavior

  • When attempting to import an app after reaching the plan's app limit:
    • The API should return a 403 Forbidden response
    • The error message should be: "The number of apps has reached the limit of your subscription."
    • The import operation should fail
    • The user should be prompted to upgrade their plan

Actual Behavior

  • When attempting to import an app after reaching the plan's app limit:
    • The API allows the import to proceed
    • No quota check is performed
    • The user can successfully import apps beyond their plan's limit
    • The app quota limit is effectively bypassed
Originally created by @1Ckpwee on GitHub (Apr 1, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.1.3 ### Cloud or Self Hosted Cloud ### Steps to reproduce 1. Log in to Dify with a Sandbox plan account (which has a limit of 5 apps) 2. Create 5 apps through the normal app creation interface 3. Try to import an additional app using the `/console/api/apps/import` endpoint 4. The import will succeed, allowing you to exceed the plan's app limit ### ✔️ Expected Behavior - When attempting to import an app after reaching the plan's app limit: - The API should return a 403 Forbidden response - The error message should be: "The number of apps has reached the limit of your subscription." - The import operation should fail - The user should be prompted to upgrade their plan ### ❌ Actual Behavior - When attempting to import an app after reaching the plan's app limit: - The API allows the import to proceed - No quota check is performed - The user can successfully import apps beyond their plan's limit - The app quota limit is effectively bypassed
yindo added the 🐞 bugcloud labels 2026-02-21 19:07:26 -05:00
yindo closed this issue 2026-02-21 19:07:26 -05:00
Author
Owner

@1Ckpwee commented on GitHub (Apr 1, 2025):

The PR link: https://github.com/langgenius/dify/pull/17295

@1Ckpwee commented on GitHub (Apr 1, 2025): The PR link: https://github.com/langgenius/dify/pull/17295
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12444