Git Product home page Git Product logo

Comments (5)

JorgeRobins avatar JorgeRobins commented on August 29, 2024 1

By removing the tabs in my ViolationsToBitbucketServer([]) commentTemplate: block, the comments POST successfully to Bitbucket server. Thank you so much for your help and quick response time.

from violation-comments-to-stash-plugin.

tomasbjerre avatar tomasbjerre commented on August 29, 2024

What version of Bitbucket Server?

Are you sure there is no more logging? There is usually a reason just after that 400:
https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-lib/blob/master/src/main/java/se/bjurr/violations/comments/bitbucketserver/lib/client/BitbucketServerInvoker.java#L117

from violation-comments-to-stash-plugin.

JorgeRobins avatar JorgeRobins commented on August 29, 2024

Many thanks for the swift response.

Bitbucket Server 6.4.0

Yes. The reason phrase must be empty because there is nothing after the "400 " for each attempt.

from violation-comments-to-stash-plugin.

tomasbjerre avatar tomasbjerre commented on August 29, 2024

I'm releasing 1.115 now with more logging.

from violation-comments-to-stash-plugin.

JorgeRobins avatar JorgeRobins commented on August 29, 2024

That's really great, thanks!

Here's an example of a send and response. The errors reported in the response all appear to be the same reason.

Sent:

{ "text": "**Reporter**: Sonar\n					**Rule**: external_roslyn:CS1591\n					**Severity**: WARN\n					**File**: ... Choice.cs:36\n					**Source**: ... Choice.cs\n\n					Missing XML comment for publicly visible type or member 'ChoiceListDTO.SubsetName'\n\n*<this is a auto generated comment from violation-comments-lib F7F8ASD8123FSDF>* *<a305226089>*", "anchor": { "line": 36, "lineType": "ADDED", "fileType": "TO", "path": " ... Choice.cs" }}

INFO Response:

{"errors":[{"context":null,"message":"Illegal unquoted character ((CTRL-CHAR, code 9)): has to be escaped using backslash to be included in string value\n at [Source: com.atlassian.stash.internal.web.util.web.CountingServletInputStream@431fcfef; line: 1, column: 34]","exceptionName":"org.codehaus.jackson.JsonParseException"}]}

ASCII control character 9 appears to be horizontal tab. I'll investigate the jq builder script.

from violation-comments-to-stash-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.