Ticket #973 (closed defect: fixed)

Opened 11 years ago

Last modified 11 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:

Description

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 11 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 11 years ago by lawrence

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