5 Replies Latest reply on Sep 6, 2006 3:58 PM by sandeeppujar

    Preview link on Management portlet broken

    sandeeppujar

      Greetings,

      I am running Jbossportal 2.4-GA, and here is the issue.

      Login as admin and go to management portlet.

      Steps to repro:
      1. Create a new Page.
      2. Hit "Preview" link or the new Page link on the nav bar.
      3. The new page shows up with no portlets on it , so far so good.
      4. Go back to management portlet and add a portlet on this new page.
      5. Hit "Preview" link or the new Page link on the nav bar, the newly added portlet does not show up on the new page.

      More info: if you copy the link to this new page and paste it in another instance of the browser then the new page shows up with the new portlet on it.

      If you are thinking about browser cache, yes I did clean up my browser cache and hit refresh and still it did not work.

      Something funky going on here with sessions and cache.

      Any pointers on what might be going wrong ?

      Thanks,
      Sandeep

        • 1. Re: Preview link on Management portlet broken
          peterj

          If you log out and then go to that page, does the portlet window show up? That is what I have noticed, that changes to pages don't happen until you log out, effectively changing users/roles.

          • 2. Re: Preview link on Management portlet broken
            sandeeppujar

            Yes you are right I see that behaviour, once I logout and go back to that page I see the page with new windows.
            Seems like there is some page caching being done per user.
            How do we disable this ?

            Thanks !

            • 3. Re: Preview link on Management portlet broken
              sandeeppujar

              Is there any information I am missing, Is there some setting I can use to disable this cache.

              Can somebody on the developers group comment on this.

              Thanks !

              • 4. Re: Preview link on Management portlet broken
                antoine_h

                It is normal that the cache is done (at least) by user, no ?

                and reversely, it is normal that if you call another browser window from a first browser window, that this new one is in the same session and keeps the same user login.
                I would not like to have to login each time I open en link with "open in a new window" menu item of my browser.

                well... the problem is that when logged has an admin to create a page, then, the "easy feature" to directly open it as an admin will not be as well as using it idependently as a regular user (the admin may not have access to this view etc...).

                I would suggest to open it once with the easy feature, copy the link... and then open another new browser (from scratch), to view it as another user.


                • 5. Re: Preview link on Management portlet broken
                  sandeeppujar

                  I agree, caching per user is normal and would greatly enchance performance.

                  But when a page has been modified, I think it should invalidate the cache and
                  show the modified view of the page.

                  I guess this is a bug, if there is no feature to invalidate this cache.

                  I don't think the user should logout and login to see his changes on the new page.

                  Please comment, should we register this as a bug ?

                  Thanks,
                  Sandeep