Skip to content

merge: v4.10.4-lts - #1411

Merged
baijiangjie merged 39 commits into
masterfrom
dev
Jul 17, 2025
Merged

merge: v4.10.4-lts#1411
baijiangjie merged 39 commits into
masterfrom
dev

Conversation

@fit2bot

@fit2bot fit2bot commented Jul 17, 2025

Copy link
Copy Markdown
Contributor

merge: v4.10.4-lts

ibuler and others added 30 commits June 20, 2025 14:29
Co-authored-by: wangruidong <940853815@qq.com>
Co-authored-by: wangruidong <940853815@qq.com>
Co-authored-by: wangruidong <940853815@qq.com>
this.currentView.iframeElement.postMessage({ name: 'OPEN' }, '*');
break;
}
this.currentView.iframeElement.postMessage({ name: 'OPEN' }, '*');

Check failure

Code scanning / SonarCloud

Origins should be verified during cross-origin communications

<!--SONAR_ISSUE_KEY:AZdoyDRrKIfjLKnit0R9-->Specify a target origin for this message. <p>See more on <a href="https://sonarcloud.io/project/issues?id=jumpserver_luna&issues=AZdoyDRrKIfjLKnit0R9&open=AZdoyDRrKIfjLKnit0R9">SonarQube Cloud</a></p>
{ name: 'PING', id: this.id, protocol: this.view.protocol },
'*'
);
this.iframeWindow.postMessage({ name: 'PING', id: this.id, disbaleFileManager }, '*');

Check failure

Code scanning / SonarCloud

Origins should be verified during cross-origin communications

<!--SONAR_ISSUE_KEY:AZgSicGh_aVBZh5wXczf-->Specify a target origin for this message. <p>See more on <a href="https://sonarcloud.io/project/issues?id=jumpserver_luna&issues=AZgSicGh_aVBZh5wXczf&open=AZgSicGh_aVBZh5wXczf">SonarQube Cloud</a></p>
Comment on lines +48 to +50
} catch (error) {
this.asset = new Asset();
}

Check notice

Code scanning / SonarCloud

Exceptions should not be ignored

<!--SONAR_ISSUE_KEY:AZfjjpfZ0DsrBC_WNGil-->Handle this exception or don't catch it at all. <p>See more on <a href="https://sonarcloud.io/project/issues?id=jumpserver_luna&issues=AZfjjpfZ0DsrBC_WNGil&open=AZfjjpfZ0DsrBC_WNGil">SonarQube Cloud</a></p>
handleK8sIframeEvent() {
this.ping = setInterval(() => {
this.iframeRef.nativeElement.contentWindow.postMessage({name: 'PING', id: this.id}, '*');
this.iframeRef.nativeElement.contentWindow.postMessage({ name: 'PING', id: this.id }, '*');

Check failure

Code scanning / SonarCloud

Origins should be verified during cross-origin communications

<!--SONAR_ISSUE_KEY:AZdnDI8E2j2TUYkDkBqJ-->Specify a target origin for this message. <p>See more on <a href="https://sonarcloud.io/project/issues?id=jumpserver_luna&issues=AZdnDI8E2j2TUYkDkBqJ&open=AZdnDI8E2j2TUYkDkBqJ">SonarQube Cloud</a></p>
}, 1000);

window.addEventListener('message', (event) => {
window.addEventListener('message', event => {

Check failure

Code scanning / SonarCloud

Origins should be verified during cross-origin communications

<!--SONAR_ISSUE_KEY:AZfVIBbCkITuZbtN2B7m-->Verify the origin of the received message. <p>See more on <a href="https://sonarcloud.io/project/issues?id=jumpserver_luna&issues=AZfVIBbCkITuZbtN2B7m&open=AZfVIBbCkITuZbtN2B7m">SonarQube Cloud</a></p>
break;
case 'PING':
this.iframeRef.nativeElement.contentWindow.postMessage({name: 'PING', id: this.id}, '*');
this.iframeRef.nativeElement.contentWindow.postMessage(

Check failure

Code scanning / SonarCloud

Origins should be verified during cross-origin communications

<!--SONAR_ISSUE_KEY:AZfVIBbCkITuZbtN2B7n-->Specify a target origin for this message. <p>See more on <a href="https://sonarcloud.io/project/issues?id=jumpserver_luna&issues=AZfVIBbCkITuZbtN2B7n&open=AZfVIBbCkITuZbtN2B7n">SonarQube Cloud</a></p>
@fit2bot
fit2bot requested a review from a team July 17, 2025 07:01
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
7.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@baijiangjie
baijiangjie merged commit d68a8da into master Jul 17, 2025
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants