Ticket #152 (closed defect: fixed)

Opened 2 months ago

Last modified 1 month ago

Protect pysynphot server against malformed input strings

Reported by: laidler Assigned to: somebody
Priority: normal Milestone:
Component: pysynphot Version: Pysynphot v0.6
Severity: normal Keywords:
Cc:

Description

Some protection should be built in to the string parsing so that harmless malformations (such as a terminal ampersand) don't raise a pysynphot error.

Presenting case was:

'SpecSourcerateSpec?&spectrum="spec(earthshine.fits)*0.5+rn(spec(Zodi.fits),band(johnson,v),22.7,vegamag)+(spec(el1215a.fits)+spec(el1302a.fits)+spec(el1356a.fits)+spec(el2471a.fits))"&instrument="cos,fuv,g130m,c1309"&output=/Users/dmclean/IdeaProjects/etcDev/JUNIT/testFiles/specResults/2008/001/specAV5.fits&area="45238.93416"&mode="a"&grtbl="mtab$*_tmg.fits"&cmptbl="mtab$*_tmc.fits"&'

Change History

10/07/08 10:11:33 changed by laidler

  • status changed from new to closed.
  • resolution set to fixed.

r663 closes this ticket