sjngm
sjngm

Reputation: 12861

Services available on Eclipse port 51235

We use Crucible/FishEye for code reviews and in Firefox there is an Eclipse-icon above the content-view of a source file. If I click it that source file is opened in Eclipse.

Crucible/FishEye doesn't show that icon in Opera. I tried to hack it into Opera just see if it works. However, it doesn't even show the icon:

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

netstat shows that Eclipse listens on that port and other colleagues are also able to use that extended functionality in Firefox through port 51235, so the port seems to be a predefined port in Eclipse.

  1. Does anyone know how to make that work or what Eclipse checks here?
  2. Does anyone know what's possible through port 51235?

EDIT: I put all findings in my answer

Upvotes: 1

Views: 543

Answers (2)

sjngm
sjngm

Reputation: 12861

That port seems to be part of the Atlassian-connector in Eclipse. They wrote the source and a test class for their connector.

Here's a brief list of possible URLs:

  • Icon: http://localhost:51235/icon

  • Open an issue: http://localhost:51235/issue?issue_key=PL-31&server_url=https://studio.atlassian.com/&id=

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

  • Open a file:

    • 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=
  • Open a review

    • file and versioned comment defined: 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=

    • file defined: 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=

    • general comment defined: http://localhost:51235/review?review_key=CR-PL-66&server_url=https://svn.atlassian.com/atlaseye&comment_id=CMT:9899&id=

Note:

  • id is always filled with Math.floor(Math.random()*1000), i.e. a random number between 0 and 999
  • all links return the icon

Upvotes: 2

hallvors
hallvors

Reputation: 6229

If you add an IFRAME loading that URL, you may see a cross-network error page. If you do, opt in to always allow the traffic for that server, and see if it works.

Upvotes: 0

Related Questions