uDIG
  1. uDIG
  2. UDIG-1458

WMS Title is very aggressively

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: UDIG 1.1.0
    • Fix Version/s: UDIG 1.2.M3
    • Component/s: webservices
    • Labels:
      None

      Description

      The wms caps seem to be cached... forever. Try the following:

      • connect uDig to Geoserver WMS
      • look at the layer titles showing up in the catalog
      • change a title in the GeoServer administration
      • right click in the catalog, reset the WMS... nothing
      • restart uDig... nothing, the title is still the old one
      • kill the WMS and reconnect... still nothing, the title is still the same!!!
      • stop uDig, wipe out the freaking uDig workspace, restart, reconnect
      • aah, finally the new title show sup

        Issue Links

          Activity

          Hide
          Andrea Aime added a comment -
          The same seems to go for WFS capabilities... this makes it very hard to use uDig to double check metadata associated with layers (and reading the XML from the caps is not my idea of fun...)
          Show
          Andrea Aime added a comment - The same seems to go for WFS capabilities... this makes it very hard to use uDig to double check metadata associated with layers (and reading the XML from the caps is not my idea of fun...)
          Hide
          Jody Garnett added a comment -
          You can right click and "reset" the capabilities will be re-fetches; I think that should kick the titles as well :-( I may need to ask Jesse about titles.

          For WMS-C we are now caching capabilities between runs; and checking the WMS sequence number to tell when to refresh. Can you tell me if geoserver respects WMS sequence number Andrea? A similar trick can be applied to WMS.
          Show
          Jody Garnett added a comment - You can right click and "reset" the capabilities will be re-fetches; I think that should kick the titles as well :-( I may need to ask Jesse about titles. For WMS-C we are now caching capabilities between runs; and checking the WMS sequence number to tell when to refresh. Can you tell me if geoserver respects WMS sequence number Andrea? A similar trick can be applied to WMS.
          Hide
          Andrea Aime added a comment -
          Jody, sometimes I really wonder if you read what I type. I said "right click in the catalog, reset the WMS... nothing". Reset is useless, it does not force the titles to be updated.
          Show
          Andrea Aime added a comment - Jody, sometimes I really wonder if you read what I type. I said "right click in the catalog, reset the WMS... nothing". Reset is useless, it does not force the titles to be updated.
          Hide
          Jody Garnett added a comment -
          Bleck - you are correct Andrea apparently did not read very well. Scheduling this for the 10 min udig code sprint in an effort to make sure Reset does its job.
          Show
          Jody Garnett added a comment - Bleck - you are correct Andrea apparently did not read very well. Scheduling this for the 10 min udig code sprint in an effort to make sure Reset does its job.
          Jody Garnett made changes -
          Field Original Value New Value
          Fix Version/s UDIG 1.2.M3 [ 14979 ]
          Jody Garnett made changes -
          Link This issue relates to UDIG-1029 [ UDIG-1029 ]
          Hide
          Emily Gouge added a comment -
          I looked into this issue and udig is updating the georesource info. If you get the resource info you see the new title. So the issue here is that the catalog tree viewer isn't being updated. I was unsuccessful at trying to figure out how to update the catalog view. I think the events aren't getting hooked up correctly but I am not sure.
          Show
          Emily Gouge added a comment - I looked into this issue and udig is updating the georesource info. If you get the resource info you see the new title. So the issue here is that the catalog tree viewer isn't being updated. I was unsuccessful at trying to figure out how to update the catalog view. I think the events aren't getting hooked up correctly but I am not sure.
          Mark Leslie made changes -
          Assignee Mark Leslie [ mleslie ]
          Mark Leslie made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Mark Leslie made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          Hide
          Jody Garnett added a comment -
          Mark has arranged a good patch for this; I have reviewed; it involves adding a getTitle() method to IResolve; and implementing the IService and IGeoResource getTitle() methods to take advantage of the IService persistent properties.

          With the title now stored in a cache that the user can "reset" we advise users to "reset" a service in order to obtain a new title. I would like to see if we can automatically do something in the WMS case where....

          but wait - we can grab the title from the info if known; and thus always have the latest (while still allowing the ui to display the last known title without connecting).
          Show
          Jody Garnett added a comment - Mark has arranged a good patch for this; I have reviewed; it involves adding a getTitle() method to IResolve; and implementing the IService and IGeoResource getTitle() methods to take advantage of the IService persistent properties. With the title now stored in a cache that the user can "reset" we advise users to "reset" a service in order to obtain a new title. I would like to see if we can automatically do something in the WMS case where.... but wait - we can grab the title from the info if known; and thus always have the latest (while still allowing the ui to display the last known title without connecting).
          Jody Garnett made changes -
          Summary WMS capabilities are cached very aggressively WMS Title is very aggressively
          Hide
          Jody Garnett added a comment -
          I have verified from my source code build; looks good. The title will update when udig is restarted; or if the user selects "Reset" on the service.
          Show
          Jody Garnett added a comment - I have verified from my source code build; looks good. The title will update when udig is restarted; or if the user selects "Reset" on the service.
          Jody Garnett made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ben Walding made changes -
          Workflow jira [ 98171 ] udig [ 107797 ]
          John Hudson made changes -
          Assignee Mark Leslie [ mleslie ] John Hudson [ jhudson ]
          Hide
          John Hudson added a comment -
          verified in Revision 31311.
          Show
          John Hudson added a comment - verified in Revision 31311.
          John Hudson made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              John Hudson
              Reporter:
              Andrea Aime
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: