rcaputo / snerp-vortex

A subversion repository exporter.
15 stars 3 forks source link

Attribute (content) does not pass the type constraint because: Validation failed for 'Str' failed with value undef #15

Closed avar closed 14 years ago

avar commented 14 years ago

MediaWiki's r3671 only includes Property changes, no content changes.

I'm testing a fix for this.

2164 r3671 by gabrielwicke at 2004-05-23T15:36:55.000000Z
Attribute (content) does not pass the type constraint because: Validation failed for 'Str' failed with value undef at /usr/local/lib/perl/5.10.1/Moose/Meta/Attribute.pm line 746
        Moose::Meta::Attribute::_coerce_and_verify('Moose::Meta::Attribute=HASH(0x11f1ca0)', undef, 'SVN::Dump::Change::Mkfile=HASH(0x158ecfc0)') called at /usr/local/lib/perl/5.10.1/Moose/Meta/Attribute.pm line 398
        Moose::Meta::Attribute::initialize_instance_slot('Moose::Meta::Attribute=HASH(0x11f1ca0)', 'Moose::Meta::Instance=HASH(0x1203fa0)', 'SVN::Dump::Change::Mkfile=HASH(0x158ecfc0)', 'HASH(0x158efbf8)') called at /usr/local/lib/perl/5.10.1/Class/MOP/Class.pm line 364
        Class::MOP::Class::_construct_instance('Moose::Meta::Class=HASH(0x1198050)', 'HASH(0x158efbf8)') called at /usr/local/lib/perl/5.10.1/Class/MOP/Class.pm line 351
        Class::MOP::Class::new_object('Moose::Meta::Class=HASH(0x1198050)', 'HASH(0x158efbf8)') called at /usr/local/lib/perl/5.10.1/Moose/Meta/Class.pm line 255
        Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x1198050)', 'HASH(0x158efbf8)') called at /usr/local/lib/perl/5.10.1/Moose/Object.pm line 25
        Moose::Object::new('SVN::Dump::Change::Mkfile', 'path', 'trunk/phase3/stylesheets/monobook/null', 'content', undef, 'analysis', 'SVN::Analysis::Change::Add=HASH(0x1e5c2948)', 'entity', 'SVN::Analysis::Change::Add=HASH(0x1deb1028)') called at lib/SVN/Dump/Arborist.pm line 102
        SVN::Dump::Arborist::add_new_node('SVN::Dump::Arborist=HASH(0x10e9960)', 3671, 'trunk/phase3/stylesheets/monobook/null', 'file', undef) called at lib/SVN/Dump/Replayer.pm line 133
        SVN::Dump::Replayer::on_node_add('SVN::Dump::Replayer::Git=HASH(0x10fe720)', 3671, 'trunk/phase3/stylesheets/monobook/null', 'file', undef) called at lib/SVN/Dump/Walker.pm line 161
        SVN::Dump::Walker::walk('SVN::Dump::Replayer::Git=HASH(0x10fe720)') called at ./snerp line 150
avar commented 14 years ago

Solved in 5420a428ff92bc5587dc3920d4f8efed96407cb6 in my fork by changing the content type to Maybe[Str]. It'll be Undef in cases like these.

The subsequent conversion looks good.

rcaputo commented 14 years ago

Applied 5420a42, thanks!