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 236810 - No way to edit Test Specification
Summary: No way to edit Test Specification
Status: RESOLVED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Synergy (show other bugs)
Version: 7.4
Hardware: PC Linux
: P1 normal (vote)
Assignee: Vladimir Riha
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-06 16:39 UTC by Marian Mirilovic
Modified: 2013-10-07 06:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
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-06 16:39:22 UTC
See e.g. http://services.netbeans.org/synergy/client/app/#/specification/78/v/2 .. there is not Edit button ;(
Comment 1 Vladimir Riha 2013-10-06 18:06:20 UTC
It is there for me but it could happen if Synergy failed to authenticate you, in such case control buttons are not displayed. I'll check it to make sure I'm not caching cookie in case authentication fails but I think I'm not.
Comment 2 Vladimir Riha 2013-10-06 18:07:41 UTC
Do you (did you) see your username in top right corner in the blue button? If there is sign in text instead, it couldn't authenticate you
Comment 3 Vladimir Riha 2013-10-06 19:19:35 UTC
Hm, I saw it now but after logout/login, it was OK

The authentication works like this:
 - you open Synergy when your SSO login is valid 
      => server saves session on server
      => Synergy saves cookie in your browser so it doesn't have to make request to server for login information every you display something in Synergy
          - cookie is valid for 12 hours
          - cookie is used to get e.g. current user's username
          - next time you display something in Synergy, there is first cookie check. If cookie is valid, server is requested for session information
 - when you open the url from comment #0, if server session exists, server adds these control button for specification and returns JSON data with these buttons
 - synergy displays them regardless the browser cookie


The case you describing can happen when
 - browser cookie is valid => Synergy displays username in blue button in top right corner
 - server session does not exist => no buttons are added to specification

I think this is rare case introduced on Friday when I started to play with session in hope it will fix the random hangs. I increased server session timeout to 24 hours (so the issue as at least now less common) and tomorrow I will revert one check that used to force Synergy (client) to always check server at least once on first page load.
Comment 4 Vladimir Riha 2013-10-06 19:20:54 UTC
(In reply to Vladimir Riha from comment #3)
>           - next time you display something in Synergy, there is first
> cookie check. If cookie is valid, server is requested for session information

* server is not request for session information :)
Comment 5 Vladimir Riha 2013-10-07 06:43:40 UTC
fixed in #261