Commits

Sean Flanigan committed 3a02d2a Merge

rhbz#691963 merged

  • Participants
  • Parent commits 6677f2f, 3085858
  • Branches flies-1.2-branch

Comments (0)

Files changed (1)

server/flies-war/src/main/java/net/openl10n/flies/security/FixedClientUidSelector.java

    @Create
    public void onCreate()
    {
-      setCookiePath(FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath());
+      String requestContextPath = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();
+      // workaround for https://issues.jboss.org/browse/JBSEAM-4701
+      if (requestContextPath.isEmpty()) {
+         requestContextPath = "/";
+      }
+      setCookiePath(requestContextPath);
       setCookieMaxAge(-1);
       setCookieEnabled(true);
       clientUid = getCookieValue();
    {
       if (!isSet())
       {
+         // workaround for https://issues.jboss.org/browse/JBSEAM-4503
          clientUid = RandomStringUtils.random(50, true, true); // Fixed
          setCookieValueIfEnabled(clientUid);
       }