[Mono-bugs] [Bug 604100] New: mvc model binder feature not implemented mvc 2

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun May 9 20:47:57 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=604100

http://bugzilla.novell.com/show_bug.cgi?id=604100#c0


           Summary: mvc model binder feature not implemented mvc 2
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: shaun at golfsigma.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=360720)
 --> (http://bugzilla.novell.com/attachment.cgi?id=360720)
Full MVC 2 Web Application to test bug

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
Media Center PC 6.0; .NET4.0C; .NET4.0E)

The requested feature is not implemented.
Description: HTTP 500. Error processing request.

Stack Trace: 

System.NotImplementedException: The requested feature is not implemented.
  at System.ComponentModel.DataAnnotations.RequiredAttribute.IsValid
(System.Object value) [0x00000] in <filename unknown>:0 
  at
System.Web.Mvc.DataAnnotationsModelValidator+<Validate>c__Iterator3.MoveNext ()
[0x00000] in <filename unknown>:0 
  at
System.Web.Mvc.ModelValidator+CompositeModelValidator+<Validate>c__Iterator2.MoveNext
() [0x00000] in <filename unknown>:0 
  at System.Web.Mvc.DefaultModelBinder.OnModelUpdated
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ModelBindingContext bindingContext) [0x00000] in <filename
unknown>:0 
  at System.Web.Mvc.DefaultModelBinder.BindComplexElementalModel
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ModelBindingContext bindingContext, System.Object model)
[0x00000] in <filename unknown>:0 
  at System.Web.Mvc.DefaultModelBinder.BindComplexModel
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ModelBindingContext bindingContext) [0x00000] in <filename
unknown>:0 
  at System.Web.Mvc.DefaultModelBinder.BindModel
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ModelBindingContext bindingContext) [0x00000] in <filename
unknown>:0 
  at System.Web.Mvc.ControllerActionInvoker.GetParameterValue
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ParameterDescriptor parameterDescriptor) [0x00000] in <filename
unknown>:0 
  at System.Web.Mvc.ControllerActionInvoker.GetParameterValues
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ActionDescriptor actionDescriptor) [0x00000] in <filename
unknown>:0 
  at System.Web.Mvc.ControllerActionInvoker.InvokeAction
(System.Web.Mvc.ControllerContext controllerContext, System.String actionName)
[0x00000] in <filename unknown>:0  

--------------------------------------------------------------------------------
Version information: Mono Runtime Version: 2.7 (/trunk/mono r156975 Sun May 9
23:02:35 UTC 2010); ASP.NET Version: 2.0.50727.1433 

Mono JIT compiler version 2.7 (/trunk/mono r156975 Sun May  9 23:02:35 UTC
2010)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
        TLS:           normal
        GC:            Included Boehm (with typed GC and Parallel Mark)
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          debugger softdebug
        LLVM supported


Reproducible: Always

Steps to Reproduce:
1. Create MVC 2 Web Application
2. Add action where parameter is a model that includes a datetime (int and
float do not work as well)
3. Attempt to query the action
Actual Results:  
System.NotImplementedException: The requested feature is not implemented.
  at System.ComponentModel.DataAnnotations.RequiredAttribute.IsValid
(System.Object value) [0x00000] in <filename unknown>:0 
  at
System.Web.Mvc.DataAnnotationsModelValidator+<Validate>c__Iterator3.MoveNext ()
[0x00000] in <filename unknown>:0 
  at
System.Web.Mvc.ModelValidator+CompositeModelValidator+<Validate>c__Iterator2.MoveNext
() [0x00000] in <filename unknown>:0 
  at System.Web.Mvc.DefaultModelBinder.OnModelUpdated
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ModelBindingContext bindingContext) [0x00000] in <filename
unknown>:0 
  at System.Web.Mvc.DefaultModelBinder.BindComplexElementalModel
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ModelBindingContext bindingContext, System.Object model)
[0x00000] in <filename unknown>:0 
  at System.Web.Mvc.DefaultModelBinder.BindComplexModel
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ModelBindingContext bindingContext) [0x00000] in <filename
unknown>:0 
  at System.Web.Mvc.DefaultModelBinder.BindModel
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ModelBindingContext bindingContext) [0x00000] in <filename
unknown>:0 
  at System.Web.Mvc.ControllerActionInvoker.GetParameterValue
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ParameterDescriptor parameterDescriptor) [0x00000] in <filename
unknown>:0 
  at System.Web.Mvc.ControllerActionInvoker.GetParameterValues
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ActionDescriptor actionDescriptor) [0x00000] in <filename
unknown>:0 
  at System.Web.Mvc.ControllerActionInvoker.InvokeAction
(System.Web.Mvc.ControllerContext controllerContext, System.String actionName)
[0x00000] in <filename unknown>:0 

Expected Results:  
Model bound correctly

Tested on Amazon EC2 using ami-fd4aa494 (Ubuntu 10.04 Lucid 64 bit)

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list