diff --git a/platform/platform-impl/src/com/intellij/diagnostic/ITNProxy.kt b/platform/platform-impl/src/com/intellij/diagnostic/ITNProxy.kt index 624092deb115..a0833011a973 100644 --- a/platform/platform-impl/src/com/intellij/diagnostic/ITNProxy.kt +++ b/platform/platform-impl/src/com/intellij/diagnostic/ITNProxy.kt @@ -57,7 +57,7 @@ internal object ITNProxy { private const val DEFAULT_USER = "idea_anonymous" private const val DEFAULT_PASS = "guest" private const val DEVELOPERS_LIST_URL = "https://ea-report.jetbrains.com/developer/list" - private const val OLD_THREAD_VIEW_URL = "https://ea.jetbrains.com/browser/ea_reports/" + // private const val OLD_THREAD_VIEW_URL = "https://ea.jetbrains.com/browser/ea_reports/" private const val NEW_THREAD_VIEW_URL = "https://jb-web.exa.aws.intellij.net/report/" private val TEMPLATE: Map by lazy { @@ -123,9 +123,9 @@ internal object ITNProxy { return postNewThread(loginAdjusted, passwordAdjusted, error, newThreadPostUrl) } - fun getBrowseUrl(threadId: Int): String { + fun getBrowseUrl(threadId: Int): String? { val isEAPluginInstalled = PluginManagerCore.isPluginInstalled(PluginId.getId(EA_PLUGIN_ID)) - return (if (isEAPluginInstalled) NEW_THREAD_VIEW_URL else OLD_THREAD_VIEW_URL) + threadId + return if (isEAPluginInstalled) NEW_THREAD_VIEW_URL + threadId else null } private val ourSslContext: SSLContext by lazy { initContext() } diff --git a/platform/platform-impl/src/com/intellij/diagnostic/ITNReporter.kt b/platform/platform-impl/src/com/intellij/diagnostic/ITNReporter.kt index d8e1e3efca4b..1bac7685f6f4 100644 --- a/platform/platform-impl/src/com/intellij/diagnostic/ITNReporter.kt +++ b/platform/platform-impl/src/com/intellij/diagnostic/ITNReporter.kt @@ -148,10 +148,11 @@ open class ITNReporter(private val postUrl: String = "https://ea-report.jetbrain callback(SubmittedReportInfo(reportUrl, reportId.toString(), SubmittedReportInfo.SubmissionStatus.NEW_ISSUE)) val content = DiagnosticBundle.message("error.report.gratitude") val title = DiagnosticBundle.message("error.report.submitted") - Notification("Error Report", title, content, NotificationType.INFORMATION) - .setImportant(false) - .addAction(NotificationAction.createSimpleExpiring(DiagnosticBundle.message("error.report.view.action")) { BrowserUtil.browse(reportUrl) }) - .notify(project) + val notification = Notification("Error Report", title, content, NotificationType.INFORMATION).setImportant(false) + if (reportUrl != null) { + notification.addAction(NotificationAction.createSimpleExpiring(DiagnosticBundle.message("error.report.view.action")) { BrowserUtil.browse(reportUrl) }) + } + notification.notify(project) } private suspend fun onError(