[ww-bugs] Bug 3449: Possible issue with PGML

bugzilla-daemon at webwork.maa.org bugzilla-daemon at webwork.maa.org
Fri Sep 18 11:45:17 EDT 2015


http://bugs.webwork.maa.org/show_bug.cgi?id=3449





--- Comment #2 from Davide P. Cervone <dpvc at union.edu>  2015-09-18 11:45:16 ---
OK, I tracked it down to a recent change that causes AnswerHashes to have their
properties stringified (in order to avoid attempts to access MathObjects from
outside the safe compartment).  It turns out that the stringify() method for
the Currency class requires access to the Currency context, but the context in
which the AnswerHash asks its part to be stringified is the last content set in
the problem.  So when the context is changed to Numeric, the Currecy object
causes an error condition.

I have submitted a patch that resolves the issue at

    https://github.com/openwebwork/pg/pull/238

It makes sure the current context is priorly set before stringifying the
AnswerHash components.

-- 
Configure bugmail: http://bugs.webwork.maa.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the webwork-bugs mailing list