Ticket #973 (closed defect: fixed)

Opened 14 years ago

Last modified 13 years ago

ows_server stubB handling of missing/dubious vocab metadata

Reported by: mggr Owned by: lawrence
Priority: blocker Milestone: PROD Final
Component: COWS Version:
Keywords: Cc:


Some (all?) of our MOLES cause server errors in the current 3167 ows_server release. The server error boils down to an uninitialised variable in models/stubB.py:

Module ows_server.models.stubB:160 in parseParameters
<<          dif=collapse2(ptypes[gcmd],split='/')
            del ptypes[gcmd]
        return dif,ptypes
    class DataEntity:>>  return dif,ptypes
UnboundLocalError: local variable 'dif' referenced before assignment

Fixed by adding "dif = {}" at TI05-delivery/ows_framework/trunk/ows_server/ows_server/models/stubB.py#L151

Not sure who should apply the fix, so handing this to Bryan - anyone wishing to feel free to grab it. Should only take about 30secs to apply, though rolling a new release will probably be a hassle ;/

Change History

comment:1 Changed 14 years ago by mggr

  • Status changed from new to closed
  • Resolution set to fixed

Discovered I still have svn access, so took the liberty of fixing this as it's a one line obvious correction. Hope that's ok :)

comment:2 Changed 13 years ago by lawrence

  • Component changed from OWS to COWS
Note: See TracTickets for help on using tickets.