This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 236737 - Too cryptic links to TSs
Summary: Too cryptic links to TSs
Status: RESOLVED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Synergy (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: Vladimir Riha
URL:
Keywords:
Depends on: 236736
Blocks:
  Show dependency tree
 
Reported: 2013-10-04 06:15 UTC by Marian Mirilovic
Modified: 2013-10-09 13:39 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2013-10-04 06:15:11 UTC
http://services.netbeans.org/synergy/client/app/#/specification/184/v/2

would be really nice to have something human readable e.g. :

http://services.netbeans.org/synergy/window_system/74
Comment 1 Vladimir Riha 2013-10-04 07:53:28 UTC
This is not entirely possible, because this part of URL 

   http://services.netbeans.org/synergy/client/app/#/

must be used, following some unique string identifying you want specification (so the application can route), let's say "title" to make it different

   http://services.netbeans.org/synergy/client/app/#/title

and then 

   http://services.netbeans.org/synergy/client/app/#/title/window_system/74


I could try some server side redirect from

 (1)   http://services.netbeans.org/synergy/[any string but client]/[version]

to

 (2)  http://services.netbeans.org/synergy/client/app/#/title/window_system/74 

But the URL in browser will change to the (2) after redirect (which in case of Chrome also means that (2) is being offered instead of (1) when typing URL address), just like it changes now:

services.netbeans.org/synergy  => services.netbeans.org/synergy/client/app/#/
Comment 2 Vladimir Riha 2013-10-07 12:29:27 UTC
Please, have a look at

http://services.netbeans.org/synergy/client/app/#/title/html_editor/

and

http://services.netbeans.org/synergy/client/app/#/title/html_editor/7.3

is it better this way? I'm not sure if I can easily replace all links in synergy to use this new format so personally I'd leave both link types enabled.
Comment 3 Jiri Kovalsky 2013-10-07 13:13:33 UTC
Hm, looks good to me.
Comment 4 Vladimir Riha 2013-10-07 17:11:48 UTC
I'll try to improve it a bit as described in comment #1 case (1). The reason for using the ID format as well is no one can change ID of specification, but everyone can change the simple name and I'm not sure what it could cause (maybe nothing)... I need to investigate it more.
Comment 5 Vladimir Riha 2013-10-09 13:23:59 UTC
Done, for instance try

http://services.netbeans.org/synergy/html5_editor

or

http://services.netbeans.org/synergy/html5_editor/7.3


The "html5_editor" is so called simple name and it is constructed from specification title this way:

specification title -> trim() -> replace whitespaces with _ -> remove single and double quotes -> to lower case -> simple name

This won't work if simple name starts with "server" or "client", these need to be reserved for Synergy
Comment 6 Vladimir Riha 2013-10-09 13:39:46 UTC
FYI for some reason it broke redirection from services.netbeans.org/synergy , I've just pushed workaround for that as well.