URL:
  <http://savannah.gnu.org/bugs/?28910>

                 Summary: Actions can be invoked for GSWHTMLBareString by
using GSWComponentContent
                 Project: GNUstep
            Submitted by: svg
            Submitted on: Втр 16 Фев 2010 14:27:46
                Category: gsweb
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

GSWHTMLBareString raises an exception in the method 

<-----------------------------------------------------------

-(GSWElement*)invokeActionForRequest:(GSWRequest*)request
                           inContext:(GSWContext*)context;

----------------------------------------------------------->

This is ok because actions make no sense for HTML strings. As a general rule
GSWeb prevents from calling that method except from GSWComponentContent. Here
is where the bug sits:

<-----------------------------------------------------------

  component=GSWContext_component(aContext);
  childTemplate=[component _childTemplate];
  parent=[component parent];
  [aContext _setCurrentComponent:parent];
  element=[childTemplate invokeActionForRequest:request
                           inContext:aContext];

----------------------------------------------------------->

GSWComponentContent calls the method without any checking for the child
template which can be GSWHTMLBareString.

There could be some checking on child template's class to avoid invoking and
raising an exception when the class is GSWHTMLBareString. See the proposed
patch.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Втр 16 Фев 2010 14:27:46  Name: GSWComponentContent.patch  Size:
2kB   By: svg
The patch
<http://savannah.gnu.org/bugs/download.php?file_id=19716>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?28910>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to