i do have the <%def .is_valid_sshkey> defined, but where is the code
embedded?
I also executed a recursive/case insensitive search in all the application
code files for "is_valid_sshkey" and nothing was returned outside of what
I've already seen.
is the logic for is_valid_sshkey built on the fly, if so, where is it
getting the sub-component set of rules?
basically this application was written awhile ago and i'm trying to figure
out how it validates the ssh keys provided in the text field by the user.
It works on the old server, yet not the new one. I migrated the app to the
new one from the old one by taring up the entire directory and deploying it
on the new server.
I'm searching, using grep and find, for "is_valid_sshkey" on both the old
and new servers and can not seem to find any mention of "is_valid_sshkey
other than whats defined for the sub-component and %def.
Magic?
On Mon, Jan 9, 2017 at 3:14 PM, William Cox <mydimens...@gmail.com> wrote:
> Hiram,
>
> you likely are dealing with a call to an embedded component:
> https://metacpan.org/pod/distribution/HTML-Mason/lib/
> HTML/Mason/Devel.pod#EMBEDDED-COMPONENTS
>
> the ".is_valid_sshkey" should be found as <%def
> .is_valid_subkey>...<%/def> within the same file
>
> On Mon, Jan 9, 2017 at 4:10 PM Seb <s...@h-k.fr> wrote:
>
>>
>> Hi,
>>
>>
>> > thanks for that Seb, but what if I'm not finding a file called
>> > .is_valid_sshkey?
>> >
>> > using:
>> > sudo find / -type f -iname ".is_valid_sshkey" -ls
>>
>> There could be a suffix, such as .mas, which would not be found with your
>> syntax. Example:
>>
>> >mkdir toto
>> >touch toto/.hidden
>> >find . -type f -iname ".hidden" -ls
>> 217773 0 -rw-r--r-- 1 seb seb 0 Jan 9 22:04 ./toto/.hidden
>> >find . -type f -iname ".hid" -ls
>> >find . -type f -iname ".hid*" -ls
>> 217773 0 -rw-r--r-- 1 seb seb 0 Jan 9 22:04 ./toto/.hidden
>>
>> So I suggest you try this:
>>
>> sudo find / -type f -iname ".is_valid_sshkey*" -ls
>>
>>
>> Seb.
>>
>>
>>
>> >
>> > On Mon, Jan 9, 2017 at 2:47 PM, Seb <s...@h-k.fr> wrote:
>> >
>> >>
>> >> Hi Hiram,
>> >>
>> >>
>> >> my $is_valid = $m->comp(".is_valid_sshkey", sshkey => $ssh2, uidnumber
>> =>
>> >>> $employeeNumber, );
>> >>>
>> >>> As I understand it, this is a mason subcomponent, but what isn't
>> clear to
>> >>> me is the ".is_valid_sshkey"
>> >>>
>> >>
>> >> The line means to use a Mason component whose code resides in the file
>> >> named ".is_valid_sshkey", which could also be written
>> ./.is_valid_sshkey .
>> >> You will find this (hidden) file in the same directory as the one from
>> >> which the code is extracted.
>> >>
>> >>
>> >> Seb.
>> >>
>> >
>> >
>> >
>> >
>>
>> ------------------------------------------------------------
>> ------------------
>> Developer Access Program for Intel Xeon Phi Processors
>> Access to Intel Xeon Phi processor-based developer platforms.
>> With one year of Intel Parallel Studio XE.
>> Training and support from Colfax.
>> Order your platform today. http://sdm.link/xeonphi
>> _______________________________________________
>> Mason-users mailing list
>> Mason-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mason-users
>>
> --
> William Cox
>
> e: mydimens...@gmail.com
>
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.1
> GCS d- s+:+() a C++(++++)$ UBLC(++)$
> P+++(++++)$ L++(+++)$ !E--- W++(+++)$
> !N !o? K--? !w--- !O M++ !V- PS-(--)@ PE+()
> Y+ !PGP t++ !5 X+++ !R tv(+) b+>++
> DI+(++) D+() G e h--- r+++ y+++>++++
> ------END GEEK CODE BLOCK------
>
--
Hiram Gibbard
hgibb...@gmail.com
http://hiramgibbard.com
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users