Actions
Bug #12281
openAPIForNG. Ошибка в методе 4 -/getattributes при наличии только символа закрывающейся скобки
Start date:
03/27/2023
Due date:
% Done:
100%
Estimated time:
Detected in build:
git
Platform:
Published in build:
1.4.779
Description
При создании отчета, в наименовании которого имеется только закрывающаяся скобка ")", возникает ошибка в в Методе 4 -/getattributes.
Пример наименования отчета:
test2023-02-09_15-04-56)
Ответ метода 4 -/getattributes
{
"success": false,
"error": {
"code": "Unmatched closing ')' near index 160\r\nfile:/C:/Users/MRadek/RequalityPlugin/System/requality-gosniias-1.4.766-bundle-win64/requality-1.4/workspace/example_project/root/Reports/test2023-02-09_15-04-56)_resources/_id\r\n ^",
"message": "java.util.regex.PatternSyntaxException: Unmatched closing ')' near index 160\r\nfile:/C:/Users/MRadek/RequalityPlugin/System/requality-gosniias-1.4.766-bundle-win64/requality-1.4/workspace/example_project/root/Reports/test2023-02-09_15-04-56)_resources/_id\r\n ^\r\n\tat java.base/java.util.regex.Pattern.error(Pattern.java:2028)\r\n\tat java.base/java.util.regex.Pattern.compile(Pattern.java:1787)\r\n\tat java.base/java.util.regex.Pattern.<init>(Pattern.java:1430)\r\n\tat java.base/java.util.regex.Pattern.compile(Pattern.java:1069)\r\n\tat java.base/java.lang.String.replaceAll(String.java:2940)\r\n\tat com.unitesk.requality.api.Utils.replacePaths(Utils.java:67)\r\n\tat com.unitesk.requality.api.services.nodes.output.AttributeResponse.<init>(AttributeResponse.java:36)\r\n\tat com.unitesk.requality.api.services.nodes.output.AttributeSingleResponse.<init>(AttributeSingleResponse.java:14)\r\n\tat com.unitesk.requality.api.services.nodes.output.AttributesResponse.aMapFromNode(AttributesResponse.java:34)\r\n\tat com.unitesk.requality.api.services.nodes.output.AttributesResponse.<init>(AttributesResponse.java:23)\r\n\tat com.unitesk.requality.api.services.project.ProjectService.getAttributesForNodes(ProjectService.java:410)\r\n\tat jdk.internal.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)\r\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\r\n\tat org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52)\r\n\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:134)\r\n\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:177)\r\n\tat org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:219)\r\n\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:81)\r\n\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:478)\r\n\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:400)\r\n\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:81)\r\n\tat org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:256)\r\n\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)\r\n\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)\r\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:292)\r\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:274)\r\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:244)\r\n\tat org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265)\r\n\tat org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:235)\r\n\tat org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:684)\r\n\tat org.glassfish.jersey.jetty.JettyHttpContainer.handle(JettyHttpContainer.java:175)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:516)\r\n\tat org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)\r\n\tat org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)\r\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)\r\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)\r\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)\r\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)\r\n\tat org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)\r\n\tat java.base/java.lang.Thread.run(Thread.java:833)\r\n",
"extra": {}
}
}
Files
Updated by Denis Kildishev over 1 year ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset req-ws|63954731131f4a222cf79283fc6869929c3b7c63.
Updated by Радек Мария over 1 year ago
- Status changed from Resolved to Verified
При проверке в версии 1.4.789 ошибка не воспроизводится.
Actions