1

我们使用 Crucible/FishEye 进行代码审查,在 Firefox 中,源文件的内容视图上方有一个 Eclipse 图标。如果我单击它,源文件将在 Eclipse 中打开。

Crucible/FishEye 不会在 Opera 中显示该图标。我试图将它破解到 Opera 中,看看它是否有效。但是,它甚至不显示图标:

<img src="http://localhost:51235/icon">

netstat显示 Eclipse 侦听该端口,其他同事也能够通过端口 51235 在 Firefox 中使用该扩展功能,因此该端口似乎是 Eclipse 中的预定义端口。

  1. 有谁知道如何使这项工作或 Eclipse 在这里检查什么?
  2. 有谁知道通过端口 51235 可以做什么?

编辑:我把所有发现都放在我的回答中

4

2 回答 2

2

该端口似乎是Eclipse中Atlassian连接器的一部分。他们为他们的连接器编写了源代码和一个测试类

以下是可能的 URL 的简要列表:

  • 图标:http://localhost:51235/icon

  • 打开一个问题:http://localhost:51235/issue?issue_key=PL-31&server_url=https://studio.atlassian.com/&id=

  • 打开构建:http://localhost:51235/build?build_key=ECL-COM&build_number=1118&server_url=https://gdansk.bamboo2.atlassian.com&id=

  • 打开一个文件:

    • http://localhost:51235/file?file=plugin.xml&id=
    • http://localhost:51235/file?file=org.eclipse.mylyn.discovery.core/plugin.xml&id=
    • http://localhost:51235/file?file=CompletionActionStates.java&path=src/org/dubik/codecompletionlive/completions&line=10&id=
    • http://localhost:51235/file?file=Test.java&path=src/main/java/com/atlassian/connector&line=10&vcs_root=https://studio.atlassian.com/svn/PL/trunk/atlassian-intellij-connector/&id=
  • 打开评论

    • 文件和版本化注释定义:http://localhost:51235/review?review_key=CR-PL-66&server_url=https://svn.atlassian.com/atlaseye&file_path=src/main/java/com/atlassian/theplugin/util/CodeNavigationUtil.java&comment_id=CMT:9831&id=

    • 文件定义:http://localhost:51235/review?review_key=CR-PL-66&server_url=https://svn.atlassian.com/atlaseye&file_path=src/main/java/com/atlassian/theplugin/util/CodeNavigationUtil.java&id=

    • 一般性评论定义:http://localhost:51235/review?review_key=CR-PL-66&server_url=https://svn.atlassian.com/atlaseye&comment_id=CMT:9899&id=

笔记:

  • id总是用 填充Math.floor(Math.random()*1000),即 0 到 999 之间的随机数
  • 所有链接都返回图标
于 2012-06-01T11:33:22.177 回答
0

如果您添加一个加载该 URL 的 IFRAME,您可能会看到一个跨网络错误页面。如果这样做,请选择始终允许该服务器的流量,并查看它是否有效。

于 2012-05-10T11:24:00.767 回答