[rt-devel] "No value" sent error message

Ruslan Zakirov ruz at bestpractical.com
Wed Mar 27 13:26:06 EDT 2013


On Tue, Mar 26, 2013 at 11:10 PM, Raymond Corbett <
Raymond.Corbett at arcproductions.com> wrote:

>  Using the following is generating the noted error message.****
>
> ** **
>
> Reasons?****
>
> ** **
>
> <%ARGS>****
>
> $TicketObj****
>
> </%ARGS>
>

It says that the component takes TicketObj named argument and as it has no
default value then caller must provide value or it will be runtime error.
See mason's documentation on setting default values for arguments.


> ****
>
> ** **
>
> ** **
>
> ** **
>
> no value sent for required parameter 'TicketObj'****
>
> *context:* ****
>
> *...* ****
>
> *91:* ****
>
> my $type = $entry->{type};****
>
> *92:* ****
>
> my $name = $entry->{'name'};****
>
> *93:* ****
>
> if ( $type eq 'component' ) {****
>
> *94:* ****
>
> # XXX: security check etc.****
>
> *95:* ****
>
> $m->comp( $name, %{ $entry->{arguments} || {} } );****
>
> *96:* ****
>
> } elsif ( $type eq 'system' ) {****
>
> *97:* ****
>
> $m->comp( '/Elements/ShowSearch', Name => $name, Override => { Rows =>
> $Rows } );****
>
> *98:* ****
>
> } elsif ( $type eq 'saved' ) {****
>
> *99:* ****
>
> $m->comp( '/Elements/ShowSearch', SavedSearch => $name, Override => { Rows
> => $Rows }, IgnoreMissing => 1 );****
>
> *...* ****
>
> *code stack:* ****
>
> /n/software/linux/servers/rt4/share/html/Elements/MyRT:95
> /n/software/linux/servers/rt4/share/html/index.html:78
> /opt/rt4/sbin/../lib/RT/Interface/Web.pm:634
> /opt/rt4/sbin/../lib/RT/Interface/Web.pm:335
> /n/software/linux/servers/rt4/share/html/autohandler:53****
>
> raw error <http://rt.dkp.com:8080/#raw>****
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
>  ****
>
> ** **
>
> ** **
>
> ** **
>



-- 
Best regards, Ruslan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-devel/attachments/20130327/94688139/attachment.html>


More information about the rt-devel mailing list