SonarQube API - No method to get duplicate file name and line number details

Template for a good bug report, formatted with Markdown:

  • versions used (SonarQube, Scanner, Plugin, and any relevant extension) - Enterprise Edition
    Version 8.2 (build 32929)
  • error observed (wrap logs/code around triple quote ``` for proper formatting) - Not able to find any api method which provides duplicate file names and details of line number of duplicate code
  • steps to reproduce - SonarQube api provides metrics which just code code duplication numbers without extended details of those numbers
  • potential workaround - Go to the SSonarQube UI and click on metrices and browse through duplication details but this will not work for automation scenarios.

P.S.: use the #bug:fault sub-category if you’re hitting a specific crash/error , or the #bug:fp sub-category for rules-related behavior

Hi,

calling this a bug without previous thorough examination seems a bit harsh !?

Straightaway i don’t know, never had a use case for that.
Right now we just use the duplication ratio of a project as quality gate condition with severity warning.
Did you already dig into details using your browser developer tools ?
Use the Sonarqube web ui and see the calls behind the curtain.
Choose measures with duplication / duplicated lines filter, e.g.
https://next.sonarqube.com/sonarqube/component_measures?id=org.sonarsource.python%3Apython&metric=duplicated_lines … then go deeper, e.g.
https://next.sonarqube.com/sonarqube/component_measures?id=org.sonarsource.python%3Apython&metric=duplicated_lines&selected=org.sonarsource.python%3Apython%3Apython-checks-testkit%2Fsrc%2Fmain%2Fjava%2Forg%2Fsonar%2Fpython%2Fchecks%2Futils%2FPythonCheckVerifier.java

This is the way to go if you want to get into Sonarqube web api.

Gilbert

Thanks @Rebse

i did’t wanted to report this as a bug as long as there is capability exists. I have updated this to Get Help instead report a bug I tried to search a lot for this particular use case but did’t find anything specific the reason could be i am trying to do a very specific implementation. Anyhow i will check on above recommendation . Thanks

Thanks @Rebse

When i hit the api endpoints generated by web UI for code duplications I ma getting html response as below. I want more of a json output instead of html and even this will give me a folder structure and then as a user i need to navigate to particulat folder by clicking which will in turn send another api call but with different parameter e.g. folder path in project structure. Is this is the only way of doing this i find it not that strigthforward.

PS C:\userid\SonarQubeAPI> $url

https://sonar.myinstance.com/component_measures?id=myprojectkey&metric=duplicated_lines

PS C:\userid\SonarQubeAPI> $response
<!doctype html>SonarQube<style

,:after,:before{margin:0;padding:0}body,html{background-color:#f3f3f3}body{overflow-y:scroll}fieldset,img{border:0}address,caption,cite,code,dfn,th,va
r{font-style:normal;font-weight:400}caption,th{text-align:left}q:after,q:before{content:""}abbr,acronym{border:0;font-variant:normal}input,select,textar
ea{font-weight:inherit}button,input,select,textarea{font-family:inherit;font-size:inherit}textarea{min-height:40px}button::-moz-focus-inner,input::-moz-
focus-inner,select::-moz-focus-inner{border:0;padding:0}legend{color:#000}code,kbd,pre,samp,tt{font-family:Consolas,Liberation Mono,Menlo,Courier,monosp
ace;font-size:12px;line-height:18px}img,svg{vertical-align:top;overflow:visible}hr{margin:4px 0;padding:0;height:1px;border:none;background-color:#e6e6e
6}body,html{color:#444}body{font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px;line-height:1.23076923}.h1,h1{line-height:24px;color:#4
44;font-size:16px;font-weight:400}.h1 img,.h1 svg,h1 img,h1 svg{vertical-align:middle;transform:translateY(-1px)}.h2,h2{line-height:24px;color:#444;font
-size:15px;font-weight:400}.h2 img,.h2 svg,h2 img,h2 svg{vertical-align:middle;transform:translateY(-1px)}.h3,h3{line-height:24px;color:#444;font-size:1
4px;font-weight:600}.h3 img,.h3 svg,h3 img,h3 svg{vertical-align:middle;transform:translateY(-1px)}.h4,h4{line-height:24px;color:#444;font-size:13px;fon
t-weight:600}.h4 img,.h4 svg,h4 img,h4 svg{vertical-align:middle;transform:translateY(-1px)}.h5,h5{line-height:24px;color:#444;font-size:13px;font-weigh
t:600}.h5 img,.h5 svg,h5 img,h5 svg{vertical-align:middle;transform:translateY(-1px)}.h6,h6{line-height:24px;color:#444;font-size:13px;font-weight:600}.
h6 img,.h6 svg,h6 img,h6 svg{vertical-align:middle;transform:translateY(-1px)}sup{vertical-align:text-top}sub{vertical-align:text-bottom}em{font-style:i
talic}strong{font-weight:600}mark{background:0 0;color:#444;font-weight:700}blockquote{border-left:3px solid #e6e6e6;padding:0 8px;line-height:1.5}block
quote cite{line-height:1.5;color:#777;font-size:12px}.small,small{font-size:12px}.medium{font-size:14px}.big{font-size:16px}.huge{font-size:24px}.zero-f
ont-size{font-size:0!important}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.
text-top{vertical-align:top!important}.text-middle{vertical-align:middle!important}.text-bottom{vertical-align:bottom!important}.text-text-top{vertical-
align:text-top!important}.text-text-bottom{vertical-align:text-bottom!important}.text-baseline{vertical-align:baseline!important}.text-ellipsis{overflow
:hidden;text-overflow:ellipsis;white-space:nowrap}.text-limited-small{max-width:8vw}.text-limited,.text-limited-small{display:inline-block;overflow:hidd
en;text-overflow:ellipsis;white-space:nowrap}.text-limited{max-width:16vw}.text-uppercase{text-transform:uppercase}.text-lowercase{text-transform:lowerc
ase}.text-no-transform{text-transform:none}.text-light{font-weight:300!important}.text-normal{font-weight:400!important}.text-bold{font-weight:700!impor
tant}.text-muted{color:#777}.text-muted-2{color:#b4b4b4}.text-danger{color:#d4333f!important}.text-warning{color:#ed7d20!important}.text-info{color:#4b9
fd5!important}.text-success{color:#0a0!important}.monospaced{line-height:18px;font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:12p
x}a{border-bottom:1px solid #cae3f2;color:#236a97;cursor:pointer;outline:0;text-decoration:none;transition:all .2s ease}a:active,a:focus,a:hover{color:#
4b9fd5}.link-base-color{border-bottom:1px solid #d0d0d0;color:#444}.link-base-color:active,.link-base-color:focus,.link-base-color:hover{color:#4b9fd5}.
link-base-color:active,.link-base-color:focus,.link-base-color:hover{border-bottom-color:#cae3f2}.link-no-underline{border-bottom:none!important}.link-u
nderline{border-bottom:1px solid #cae3f2!important}.link-with-icon{border-bottom:none}.link-with-icon>span:last-child{border-bottom:1px solid #cae3f2}.l
ink-checkbox{color:inherit;border-bottom:none}.link-checkbox.disabled,.link-checkbox.disabled label,.link-checkbox.disabled:hover{color:#777;cursor:not-
allowed}.link-checkbox:active,.link-checkbox:focus,.link-checkbox:hover{color:inherit}.link-checkbox-control{display:inline-block;padding:4px 0 5px;line
-height:16px}.link-active,a.active-link{border-bottom:none;cursor:default}a.text-muted{border-bottom:1px solid #ddd;color:#777}a.text-muted:active,a.tex
t-muted:focus,a.text-muted:hover{color:#5e5e5e}a.favorite-link:focus,a.set-homepage-link:focus,a.text-muted:focus{outline:1px dotted #4b9fd5}table{borde
r-collapse:collapse;border-spacing:0}table.form td{padding:2px 5px;vertical-align:top}table.form th{padding:2px 5px;font-weight:600}table.form td.keyCel
l{width:1%;white-space:nowrap;text-align:right;font-weight:700;vertical-align:top}table.form td img{vertical-align:bottom}table.spaced th{font-weight:70
0;color:#333;padding:4px 5px}table.spaced td{padding:3px 5px;line-height:18px}table.spaced td img{vertical-align:text-bottom}table.spacedicon th{font-we
ight:700;color:#333;padding:4px 5px}table.spacedicon td{padding:0 5px;height:24px}.thin{width:1%}.spacer{width:5px}.formError,.spacer{display:inline-blo
ck}.formError{background-color:#ed7d20;color:#000;padding:0 5px}.table>thead>tr>th{border-top:0;font-weight:700;line-height:16px;padding:4px 5px;vertica
l-align:bottom}.table>tbody>tr>td{line-height:16px;padding:4px 5px;vertical-align:top}.table>tfoot>tr>td{font-size:93%;color:#777;padding:4px 5px}.table
tfoot>tr>td a{color:#777}.hoverable:hover{background-color:#cae3f2}.hoverable:hover a{color:#111}.odd{background-color:#fff}.even{background-color:#f5f
5f5}.even.selected,.even.selected a,.even.selected span:not(.rating),.odd.selected,.odd.selected a,.odd.selected span:not(.rating){background-color:#d9e
df7;color:#444}.table-cell-doc{position:absolute;z-index:3;right:-8px}th>.table-cell-doc{top:50%;margin-top:-6px}td.sep{width:10px}table.matrix tfoot td
{padding:3px 5px;line-height:18px}table.data,table.spaced{width:100%}table.data td.small,table.data th.small{padding:0;white-space:nowrap}table.data>the
ad>tr>th{position:relative;vertical-align:top;line-height:18px;padding:8px 10px;border-bottom:1px solid #e6e6e6;font-weight:600}table.data>thead>tr>th>.
small{display:block;line-height:1.4;font-weight:400}table.data>tfoot>tr>td{font-size:93%;color:#777;padding:5px}table.data>tbody>tr>td{position:relative
;padding:8px 10px;vertical-align:text-top;line-height:16px}table.data>tbody>tr>td.text-middle{vertical-align:middle}.data thead tr.total{background-colo
r:#efefef;font-weight:400;border:1px solid #ddd}.data thead tr.total th{font-weight:400}.data td.blank,.data tr.blank,.data tr.blank>td{background-color
:#fff!important;line-height:15px}.data tr.highlight{background-color:#cae3f2}.data button,.data input,.data select{vertical-align:middle}table.data.cond
ensed>tbody>tr>td{padding-top:5px;padding-bottom:5px}table.data tr.subheader th{font-size:12px;border-bottom:none}table.data:not(.boxed-padding)>thead:a
fter{display:block;line-height:5px;content:"\200C"}table.data.boxed-padding>thead>tr>th{padding-top:24px}table.data.boxed-padding>tbody>tr>td:first-chil
d,table.data.boxed-padding>tbody>tr>td:last-child,table.data.boxed-padding>thead>tr>th:first-child,table.data.boxed-padding>thead>tr>th:last-child{width
:20px;padding:8px 0}table.data.no-outer-padding>tbody>tr>td:first-child,table.data.no-outer-padding>thead>tr>th:first-child{padding-left:0}table.data.no
-outer-padding>tbody>tr>td:last-child,table.data.no-outer-padding>thead>tr>th:last-child{padding-right:0}table.data.boxed-padding>thead+tbody>tr:first-c
hild>td{padding-top:16px}table.data.zebra-hover>tbody>tr:hover{background-color:#ecf6fe!important}table.data.zebra>tbody>tr.selected{background-color:#d
9edf7!important}table.data.zebra.zebra-inversed>tbody>tr:nth-child(odd),table.data.zebra:not(.zebra-inversed)>tbody>tr:nth-child(2n){background-color:#f
5f5f5}table#project-history tr>td{vertical-align:top}table.fixed{table-layout:fixed}table.fixed th.action-small{width:30px}table.fixed th.action{width:5
0px}ol,ul{padding-left:0;list-style:none}.list-styled{margin-bottom:10px;padding-left:40px}.list-styled.no-padding{padding-left:16px}ul.list-styled{list
-style:disc}ol.list-styled{list-style:decimal}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;vertical
-align:top;padding-right:5px;padding-left:5px}.list-spaced{margin-bottom:10px;list-style:none}.list-spaced>li{margin-top:10px}.list-item-checkable-link{
cursor:pointer}.list-item-checkable-link:focus{outline:0}.list-item-checkable-link.disabled{opacity:.7}.list-item-checkable-link.disabled a:before{backg
round-color:#cdcdcd;border-color:#cdcdcd}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}input[type=
date],input[type=email],input[type=number],input[type=password],input[type=search],input[type=text],select,textarea{border:1px solid #cdcdcd;box-sizing:
border-box;border-radius:2px;background:#fff;color:#444;transition:border-color .2s ease}input[type=date]:active,input[type=date]:focus,input[type=email
]:active,input[type=email]:focus,input[type=number]:active,input[type=number]:focus,input[type=password]:active,input[type=password]:focus,input[type=se
arch]:active,input[type=search]:focus,input[type=text]:active,input[type=text]:focus,select:active,select:focus,textarea:active,textarea:focus{border-co
lor:#4b9fd5;box-shadow:none;outline:0}input[type=date]:invalid,input[type=email]:invalid,input[type=number]:invalid,input[type=password]:invalid,input[t
ype=search]:invalid,input[type=text]:invalid,select:invalid,textarea:invalid{box-shadow:none;outline:0}input:-ms-input-placeholder,textarea:-ms-input-pl
aceholder{color:#777}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#777}input::placeholder,textarea::placeholder{color:#777}.is-val
id>.Select-control,input[type=date].is-valid,input[type=email].is-valid,input[type=number].is-valid,input[type=password].is-valid,input[type=search].is-
valid,input[type=text].is-valid,select.is-valid,textarea.is-valid{border-color:#0a0}.is-invalid>.Select-control,input[type=date].is-invalid,input[type=e
mail].is-invalid,input[type=number].is-invalid,input[type=password].is-invalid,input[type=search].is-invalid,input[type=text].is-invalid,select.is-inval
id,textarea.is-invalid{border-color:#d4333f}input.disabled,input:disabled,select.disabled,select:disabled,textarea.disabled,textarea:disabled{color:#bbb
!important;border-color:#ddd!important;background:#ebebeb!important;cursor:not-allowed!important;pointer-events:none!important;box-shadow:none!important
}input[type=date],input[type=email],input[type=number],input[type=password],input[type=search],input[type=text]{height:24px;padding:0 6px}input[type=sea
rch]{-webkit-appearance:textfield}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}textarea{padding:3px}textarea.width-100{max-widt
h:100%}textarea.fixed-width{resize:vertical}select{height:24px;line-height:24px}.input-tiny{width:60px!important}.input-small{width:100px!important}.inp
ut-medium{width:150px!important}.input-large{width:200px!important}.input-super-large{width:100%!important;max-width:300px;min-width:200px}.input-ghost{
padding:0!important;border:none!important}.input-clear,.input-ghost{background-color:transparent!important}.input-code{font-family:Consolas,Liberation M
ono,Menlo,Courier,monospace;font-size:12px}em.mandatory{color:#a4030f;font-style:italic}.form-field{clear:both;display:block;padding-bottom:16px}.form-f
ield label{display:block;font-weight:700;padding-bottom:4px}.form-field-description{line-height:1.4;color:#777;font-size:12px;overflow:hidden;text-overf
low:ellipsis;margin-top:2px}.form-field .Select,.form-field input[type=email],.form-field input[type=password],.form-field input[type=text],.form-field
select,.form-field textarea{width:250px}[class
=" icon-"],[class^=icon-]{line-height:1;vertical-align:middle}a[class*=" icon-"],a[class^=icon-]{border-b
ottom:none}.icon-half-transparent{opacity:.5}.icon-gray{color:#999}.icon-gray path{fill:#999}.icon-color-link{color:#236a97}.icon-radio{position:relativ
e;display:inline-block;vertical-align:top;width:14px;height:14px;margin:1px;border:1px solid #cdcdcd;border-radius:12px;box-sizing:border-box;transition
:border-color .3s ease}.icon-radio:after{position:absolute;top:2px;left:2px;display:block;width:8px;height:8px;border-radius:8px;background-color:#236a9
7;content:"";opacity:0;transition:opacity .3s ease}a:not(.disabled):hover>.icon-radio{border-color:#4b9fd5}.icon-radio.is-checked:after{opacity:1}.icon-
outline{transition:all .2s ease!important}.icon-outline path{stroke:#777;stroke-width:1.41421356;stroke-opacity:1;fill-opacity:0;vector-effect:non-scali
ng-stroke;transition:all .2s ease}.icon-outline.is-filled path{fill:currentColor;stroke:currentColor;fill-opacity:1}.nowrap,table.nowrap td,td.nowrap,th
.nowrap{white-space:nowrap!important}table.hide-overflow td,td.hide-overflow,th.hide-overflow{text-overflow:ellipsis;overflow:hidden}.hidden{display:non
e!important;visibility:hidden!important}.note{color:#777;font-size:12px}.nudged-up{margin-top:-1px}.nudged-down{margin-top:1px}.spacer{margin:8px!import
ant}.spacer-left{margin-left:8px!important}.spacer-right{margin-right:8px!important}.spacer-bottom{margin-bottom:8px!important}.spacer-top{margin-top:8p
x!important}.big-spacer{margin:16px!important}.big-spacer-left{margin-left:16px!important}.big-spacer-right{margin-right:16px!important}.big-spacer-bott
om{margin-bottom:16px!important}.big-spacer-top{margin-top:16px!important}.huge-spacer{margin:40px!important}.huge-spacer-bottom{margin-bottom:40px!impo
rtant}.huge-spacer-top{margin-top:40px!important}.huge-spacer-left{margin-left:40px!important}.huge-spacer-right{margin-right:40px!important}.little-spa
cer{margin:4px!important}.little-spacer-left{margin-left:4px!important}.little-spacer-right{margin-right:4px!important}.little-spacer-bottom{margin-bott
om:4px!important}.little-spacer-top{margin-top:4px!important}.padded{padding:8px}.big-padded{padding:16px!important}.padded-top{padding-top:8px!importan
t}.padded-bottom{padding-bottom:8px!important}.little-padded-top{padding-top:4px!important}.little-padded-right{padding-right:4px!important}.little-padd
ed-bottom{padding-bottom:4px!important}.little-padded-left{padding-left:4px!important}.big-padded-top{padding-top:16px}.huge-padded-top{padding-top:40px
}td.little-spacer-left{padding-left:4px!important}td.little-spacer-right{padding-right:4px!important}td.spacer-left{padding-left:8px!important}td.spacer
-right{padding-right:8px!important}td.spacer-bottom{padding-bottom:8px!important}td.spacer-top{padding-top:8px!important}td.big-spacer-left,th.big-space
r-left{padding-left:16px!important}td.big-spacer-right{padding-right:16px!important}td.big-spacer-bottom{padding-bottom:16px!important}td.big-spacer-top
{padding-top:16px!important}td.huge-spacer-right,th.huge-spacer-right{padding-right:40px!important}.pull-left{float:left!important}.pull-right{float:rig
ht!important}.borderless{border:none!important}.bordered{border:1px solid #e6e6e6}.bordered-left{border-left:1px solid #e6e6e6}.bordered-right{border-ri
ght:1px solid #e6e6e6}.bordered-bottom{border-bottom:1px solid #e6e6e6}.bordered-top{border-top:1px solid #e6e6e6}.overflow-hidden{overflow:hidden!impor
tant}.overflow-y-auto{overflow-y:auto!important}.max-width-100{max-width:100%!important}.width-100{width:100%!important}.width-80{width:80%!important}.w
idth-60{width:60%!important}.width-55{width:55%!important}.width-50{width:50%!important}.width-40{width:40%!important}.width-30{width:30%!important}.wid
th-25{width:25%!important}.width-20{width:20%!important}.width-15{width:15%!important}.width-10{width:10%!important}.abs-width-150{width:150px!important
}.abs-width-240{width:240px!important}.abs-width-300{width:300px!important}.abs-width-400{width:400px!important}.abs-width-600{width:600px!important}.ab
s-height-100{height:100%!important}.max-height-100{max-height:100%!important}.justify{margin-bottom:-1em;text-align:justify}.justify:after,.justify>.ib{
display:inline-block}.justify:after{width:100%;content:" “}.first-letter-uppercase:first-letter{text-transform:uppercase}.disabled-pointer-events{pointe
r-events:none!important}.display-block{display:block!important}.display-inline-block{display:inline-block!important}.display-flex-row{display:flex!impor
tant;flex-direction:row}.display-flex-column{display:flex!important;flex-direction:column}.display-flex-center{display:flex!important;align-items:center
}.display-flex-justify-center{display:flex!important;justify-content:center}.display-flex-justify-end{display:flex!important;justify-content:flex-end}.d
isplay-flex-space-around{display:flex!important;justify-content:space-around}.display-flex-space-between{display:flex!important;justify-content:space-be
tween}.display-flex-stretch{display:flex!important;align-items:stretch}.display-flex-start{display:flex!important;align-items:flex-start}.display-flex-w
rap{display:flex!important;flex-wrap:wrap}.display-inline-flex-baseline{display:inline-flex!important;align-items:baseline}.display-inline-flex-center{d
isplay:inline-flex!important;align-items:center}.position-absolute{position:absolute!important}.position-relative{position:relative!important}.rounded{b
order-radius:2px}.flex-1{flex:1}.flex-1-0-auto{flex:1 0 auto}.flex-0{flex:0 0 auto}.flex-grow{flex-grow:1}.flex-shrink{flex-shrink:1;min-width:0}.space-
between{justify-content:space-between!important}.new-loading{opacity:.5;transition:opacity .5s ease}.slash-separator{margin-left:5px;margin-right:5px}.s
lash-separator:after{content:”/";color:rgba(68,68,68,.3)}.horizontal-pipe-separator{display:flex;align-items:center;margin-top:32px;margin-bottom:32px}.
horizontal-pipe-separator>.horizontal-separator{margin:0 4px}.horizontal-separator{min-width:16px;height:1px;flex-grow:1;background-color:#e6e6e6}.verti
cal-separator{width:1px;min-height:16px;flex-grow:1;background-color:#e6e6e6}.vertical-pipe-separator{display:flex;flex-direction:column;margin-left:60p
x;margin-right:60px}.vertical-pipe-separator>.vertical-separator{margin:4px auto}.capitalize{text-transform:capitalize!important}.cursor-not-allowed{cur
sor:not-allowed!important}.no-outline,.no-outline:focus{outline:0!important}.bg-danger{background-color:#d4333f;color:#fff}.bg-warning{background-color:
#ed7d20;color:#fff}.bg-info{background-color:#4b9fd5;color:#fff}.bg-success{background-color:#0a0;color:#fff}.bg-muted{background-color:#f3f3f3;color:in
herit}.leak-box{background-color:#fbf3d5;border:1px solid #f1e8cb;padding:4px 6px}.shortcut-button{display:inline-block;min-width:24px;height:24px;line-
height:21px;padding:0 4px;box-sizing:border-box;border:1px solid #ccc;border-radius:3px;background-image:linear-gradient(180deg,#f5f5f5,#eee);box-shadow
:inset 0 1px 0 #fff,0 1px 0 #ccc;color:#777;font-size:11px;text-align:center}.shortcut-button-small{min-width:16px;height:16px;line-height:14px;margin-l
eft:4px;margin-right:4px}.identity-provider{line-height:14px;padding:2px 5px;border:1px solid rgba(0,0,0,.15);border-radius:3px;box-sizing:border-box;ba
ckground-color:#236a97}.analysis-version,.identity-provider{display:inline-block;font-size:12px;color:#fff}.analysis-version{vertical-align:middle;heigh
t:20px;padding:0 8px;background-color:#4b9fd5;border-radius:2px;line-height:20px;white-space:nowrap;text-align:center;font-weight:700;letter-spacing:0}.
spinner{position:relative;vertical-align:middle;width:16px;height:16px;border:2px solid #4b9fd5;border-radius:50%;animation:spin .75s linear infinite}.s
pinner:after,.spinner:before{left:-2px;top:-2px;display:none;position:absolute;content:"";width:inherit;height:inherit;border:inherit;border-radius:inhe
rit}.spinner,.spinner:after,.spinner:before{display:inline-block;box-sizing:border-box;border-color:#4b9fd5 transparent transparent;animation-duration:1
.2s}.spinner:before{transform:rotate(120deg)}.spinner:after{transform:rotate(240deg)}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}
.global-loading{width:300px;margin:200px auto 0;white-space:nowrap}.global-loading-spinner{vertical-align:middle;width:80px;height:80px}.global-loading-
text{display:inline-block;vertical-align:middle;margin-left:30px;font-size:36px;font-weight:300}.issue-list{margin:10px 0}.issue,.issue-list{max-width:9
80px}.dropdown{position:relative;display:inline-block;vertical-align:middle}.dropdown-bottom-hint{line-height:16px;margin-bottom:-5px;padding:5px 10px;b
order-top:1px solid #e6e6e6;background-color:#f3f3f3;color:#777;font-size:11px}.menu{min-width:160px;padding:5px 0;list-style:none;font-size:12px;text-a
lign:left;background-color:#fff;background-clip:padding-box}.menu:focus{outline:0}.menu.is-container{padding:5px}.menu-item,.menu>li>a,.menu>li>span{dis
play:block;padding:4px 16px;line-height:14px;clear:both;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu>li>a{color:#444;
border-bottom:none;transition:none}.menu>li>a.rich-item{display:flex;align-items:center;border:1px solid #cdcdcd;border-radius:4px;margin:4px 10px;paddi
ng:2px 8px;white-space:normal}.menu .divider{height:1px;margin:6px 0;overflow:hidden;background-color:#e6e6e6}.menu>li>a.disabled{color:#bbb!important;c
ursor:not-allowed!important;pointer-events:none!important}.menu>li>a.text-muted{color:#777}.menu>li>a:focus,.menu>li>a:hover{text-decoration:none;color:
#444;background-color:#f3f3f3}.menu>.active>a,.menu>.active>a:focus,.menu>.active>a:hover,.menu>li>.active,.menu>li>.active:focus,.menu>li>.active:hover
{color:#444;text-decoration:none;outline:0;background-color:#f3f3f3}.menu .menu-vertically-limited,.menu.menu-vertically-limited{max-height:300px;overfl
ow-y:auto}.menu-vertically-limited.with-top-separator{border-top:1px solid #e6e6e6}.menu-vertically-limited.with-bottom-separator{border-bottom:1px soli
d #e6e6e6}.menu .menu-footer>a>span{border-bottom:1px solid #cdcdcd;color:#777}.menu .menu-footer-note{opacity:0;transition:opacity .3s ease}.menu .menu
-footer.active .menu-footer-note{opacity:1}.menu-search{position:relative;padding:8px 16px 0}.menu-search .search-box,.menu-search .search-box-input{max
-width:none;min-width:240px}.menu-search~.menu>li>a:focus,.menu-search~.menu>li>a:hover{background-color:transparent}.menu-search~.menu>.active>a,.menu-
search~.menu>.active>a:focus,.menu-search~.menu>.active>a:hover,.menu-search~.menu>li>.active,.menu-search~.menu>li>.active:focus,.menu-search~.menu>li>
ocus,.page-footer a:hover{border-bottom-color:#cae3f2;color:#4b9fd5}.sidebar-page #footer{padding-left:calc(50vw - 360px)!important}.sidebar-page #foote
r .page-footer-menu,.sidebar-page #footer div{max-width:980px}.no-footer-page #footer{display:none}.page-footer-menu-item{display:inline-block}.page-foo
ter-menu-item+.page-footer-menu-item:before{content:"-";padding:0 4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:no
ne}.page-with-sidebar{display:flex}.page-main{flex-grow:1}.page-sidebar{width:30%}.page-sidebar,.page-sidebar-fixed{min-width:300px;flex-shrink:0;paddin
g-left:40px;box-sizing:border-box}.page-sidebar-fixed{width:300px}.page-sidebar-sticky{width:320px!important;padding-right:0}.page-limited .page-sidebar
-sticky{margin:-20px 0 -20px -20px;padding-right:0!important}.page-limited .page-sidebar-sticky .page-sidebar-sticky-inner{padding:20px 0}.page-sidebar-
sticky .page-sidebar-sticky-inner{position:fixed;z-index:10;top:30px;bottom:0;left:0;overflow:auto;width:calc(50vw - 357px);border-right:1px solid #e6e6
e6;box-sizing:border-box;background:#f3f3f3}@media (max-width:1335px){.page-sidebar-sticky .page-sidebar-sticky-inner{width:310px}}.layout-page{display:
flex;align-items:stretch;width:100%;flex-grow:1}.layout-page-filters{width:260px;padding:20px}.layout-page-main{flex-grow:1;min-width:740px;padding:20px
;z-index:50}.layout-page-main-inner{position:relative;z-index:2;min-width:740px;max-width:980px}.layout-page-side-outer{flex-grow:0;flex-shrink:0}.layou
t-page-side,.layout-page-side-outer{width:calc(50vw - 370px);background-color:#f3f3f3}.layout-page-side{position:fixed;z-index:51;top:30px;bottom:0;left
:0;border-right:1px solid #e6e6e6;overflow-y:auto;overflow-x:hidden}.layout-page-side-inner{width:300px;margin-left:calc(50vw - 670px);background-color:
#f3f3f3}.layout-page-header-panel,.layout-page-header-panel-inner{height:56px;box-sizing:border-box}.layout-page-header-panel{margin-top:-20px}.layout-p
age-header-panel-inner{position:fixed;z-index:30;line-height:24px;padding-top:16px;padding-bottom:16px;border-bottom:1px solid #e6e6e6;background-color:
#f3f3f3}.layout-page-main-header{position:relative;z-index:3;margin-bottom:20px}.layout-page-main-header .component-name{line-height:24px}.layout-page-m
ain-header-inner{left:calc(50vw - 369px);right:0;padding-left:20px;padding-right:20px}@media (max-width:1320px){.layout-page-side,.layout-page-side-oute
r{width:300px}.layout-page-side-inner{margin-left:0}.layout-page-main-header-inner{left:301px}.sidebar-page #footer{padding-left:310px!important}}.compo
nent-name{line-height:16px;font-size:12px}.component-name:after,.component-name:before{display:table;content:"";line-height:0}.component-name:after{clea
r:both}.component-name-parent{float:left;margin-right:20px}.component-name-parent:last-child{margin-right:0}.component-name-path{float:left;clear:left}.
component-name-parent+.component-name-path{margin-top:4px}.component-name-favorite{margin-left:4px;padding:0}.list-group{margin-bottom:20px;padding-left
:0}.list-group-item,button.list-group-item{position:relative;z-index:2;display:block;margin-bottom:-1px;padding:5px 10px;border:1px solid transparent;wi
dth:100%;box-sizing:border-box;text-align:left}.list-group-item.depth-1{padding-left:31px}.list-group-item.depth-2{padding-left:51px}.list-group-item.de
pth-3{padding-left:71px}.list-group-item:last-child{margin-bottom:0}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{
z-index:3;border-color:#4b9fd5!important;background-color:#cae3f2}.list-group-item:hover{z-index:3;border-color:#4b9fd5!important}.list-group-item+.list
-group-item{border-top-color:#e6e6e6}a.list-group-item{color:#444;transition:none}.list-group-item-heading{margin-top:5px;margin-bottom:5px}.list-group-
item-heading:after{content:"";display:table;clear:both}.panel{padding:10px}.panel:not(:last-child){border-bottom:1px solid #e6e6e6}.panel-vertical{paddi
ng-left:0;padding-right:0}.panel-white{border:1px solid #e6e6e6;background-color:#fff}.panel-warning{border:1px solid #faebcc;background-color:#fcf8e3;c
olor:#8a6d3b}.badge{display:inline-block;padding:4px;background-color:#e6e6e6;border-radius:3px;font-size:12px;font-weight:600;color:#444;text-transform
:uppercase;white-space:nowrap;line-height:8px}.badge:empty{display:none}a.badge:active,a.badge:focus,a.badge:hover{color:#fff}a.badge{border-bottom:none
}.list-group-item-heading>.badge{float:right;margin:3px}.list-group-item-heading>.badge+.badge{margin-right:5px}.badge-info{background-color:#d9edf7;col
or:#0e516f}.badge-success{background-color:#dff0d8;color:#215821}.badge-warning{background-color:#fcf8e3;color:#6f4f17}.badge-error{background-color:#f2
dede;color:#862422}.counter-badge{color:#fff;background-color:#2e7cb5;font-size:12px;padding:.3em order-radius:3px;white-space:nowrap}.markdown pre>code,.rule-desc pre>code{padding:0;background-color:transparent;white-space:pre}.markdown blockquote,.
rule-desc blockquote{line-height:1.5;padding-left:15px;padding-right:15px}.markdown ul,.rule-desc ul{padding-left:40px;list-style:disc}.markdown li>ul,.
rule-desc li>ul{margin:.3em 0}.markdown ol,.rule-desc ol{padding-left:40px;list-style:decimal}.markdown table,.rule-desc table{min-width:50%;border-coll
apse:collapse;border:1px solid #e6e6e6}.markdown th,.rule-desc th{background-color:#f3f3f3;font-weight:600;text-align:center}.markdown td,.markdown th,.
rule-desc td,.rule-desc th{padding:5px 10px;border:1px solid #e6e6e6}.property p{margin-textarea{vertical-align:text-top}.property .note{margin-top:5px
}@media print{.noprint{display:none!important}a{color:#444;border-bottom:none}.page-</bo
dy></html

The URL you are trying is not part of the web API. Web API URLs are prefixed by <sonarqube-instance>/api/. I suggest you check the web api documentation at <sonarqube-instance>/web_api or as @Rebse explained, check with your browser what API calls the SonarQube’s front end is doing when you navigate around pages showing duplication.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.