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

Smart-Doc pushes to Torna, and parsing two-dimensional arrays or nested Lists results in StackOverflow. #380

Closed
zuiyicanxue opened this issue Nov 3, 2022 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@zuiyicanxue
Copy link

zuiyicanxue commented Nov 3, 2022

Your Environment(您的使用环境)

  • smart-doc version: 2.6.1
  • plugin version (e.g. smart-doc-maven-plugin or smart-doc-gradle-plugin): 2.6.1
  • build tool version(maven or gradle): 3.2

Expected Behavior(您期望的结果)

Successfully pushed to Torna.

Current Behavior(当前结果)

Possible Solution(bug解决建议)

Steps to Reproduce (Bug产生步骤,请尽量提供用例代码)

  1. The request or response parameters include the following fields:
    private Integer[][] position;
    or
    private List<Integer[]> position;

  2. Run the smart-doc:torna-rest plugin.

  3. The error message is as follows:


Exception in thread "main" java.lang.StackOverflowError
at java.util.regex.Pattern.error(Pattern.java:1969)
at java.util.regex.Pattern.(Pattern.java:1354)
at java.util.regex.Pattern.compile(Pattern.java:1028)
at java.lang.String.replaceAll(String.java:2223)
at com.power.doc.utils.DocUtil.replaceNewLineToHtmlBr(DocUtil.java:534)
at com.power.doc.utils.TornaUtil.buildParams(TornaUtil.java:240)
at com.power.doc.utils.TornaUtil.buildParams(TornaUtil.java:244)
at com.power.doc.utils.TornaUtil.buildParams(TornaUtil.java:244)
at com.power.doc.utils.TornaUtil.buildParams(TornaUtil.java:244)
at com.power.doc.utils.TornaUtil.buildParams(TornaUtil.java:244)
at com.power.doc.utils.TornaUtil.buildParams(TornaUtil.java:244)
at com.power.doc.utils.TornaUtil.buildParams(TornaUtil.java:244)
at com.power.doc.utils.TornaUtil.buildParams(TornaUtil.java:244)
at com.power.doc.utils.TornaUtil.buildParams(TornaUtil.java:244)
at com.power.doc.utils.TornaUtil.buildParams(TornaUtil.java:244)
at com.power.doc.utils.TornaUtil.buildParams(TornaUtil.java:244)

Context(Bug影响描述)

  1. Pushing to Torna fails, but HTML can be generated.
  2. The preliminary issue is identified in the ParamsBuildHelper.buildParams method, which has problems parsing ApiParam.
@zuiyicanxue zuiyicanxue added the bug Something isn't working label Nov 3, 2022
@shalousun shalousun added this to the 2.6.3 milestone Nov 3, 2022
@shalousun shalousun changed the title mart-doc推送到torna,二维数组或嵌套List解析StackOverflow smart-doc推送到torna,二维数组或嵌套List解析StackOverflow Nov 3, 2022
@shalousun shalousun reopened this Dec 13, 2022
@shalousun shalousun modified the milestones: 2.6.3, 2.6.4 Dec 13, 2022
shalousun added a commit that referenced this issue Jan 28, 2023
@shalousun shalousun changed the title smart-doc推送到torna,二维数组或嵌套List解析StackOverflow Smart-Doc pushes to Torna, and parsing two-dimensional arrays or nested Lists results in StackOverflow. Jun 29, 2024
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

3 participants