Comments (4)
Partial fix currently exists in OAT repo branch: da/component-update, but set
functionality hasn't been updated yet.
Modified FlagsInput.razor to still create checkboxes in cases where the flag enum member is null
from oat.
Modified FlagsInput.razor to still create checkboxes in cases where the flag enum member is null
This is probably the wrong approach. This should be covered by the set to null
checkbox already.
from oat.
According to official documentation the way to check if a type is nullable is
Nullable.GetUnderlyingType(type) != null
https://docs.microsoft.com/en-us/dotnet/api/system.nullable.getunderlyingtype?view=net-5.0
However, this does not appear to work for Enums, and this method will instead return null
. I've verified this behavior directly in OAT so it is not an ASA issue. Unfortunately, it doesn't seem viable to de-nullable the Enums in Attack Surface Analyzer as null is a valid value for them (some of the enums are only valid on windows systems and the flags are passed through.)
from oat.
I've narrowed this problem down to only Enums that start as null. Enums that are nullable but don't start as null now work.
from oat.
Related Issues (20)
- Assembly Version is Incorrect
- Blazor Component Tests
- Update OAT Blazor to Net 7.0 HOT 2
- Unable to identify which Clause Data element resulted in the match HOT 10
- Fix CodeQL Scan
- Collapsible warning window on Sandbox
- CodeQL fails to run
- Switch to System.Text.Json HOT 1
- Sandbox: Constructor parameters with enum types are displayed as text input HOT 2
- ListStringInput does not properly set new value for nullable underlying type HOT 1
- DictionaryStringStringInput does not properly set when underlying type is nullable
- Display (but not allow editing of) Non-writable properties that are readable HOT 1
- Show set to null for nullable reference types HOT 1
- CodeQL pipeline shows errors that are contained in the .NET stuff needed for the blazor interface HOT 1
- Add Blazor Component for any string keyed dictionary HOT 1
- Add Blazor Components for Other Keyed Dictionaries of arbitrary objects
- Add Blazor Component for Tuples HOT 1
- The fields of a value type cannot be set by the Set helper
- Projects which import OAT Components don't have an int field when constructing a byte[] with a scaffold
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oat.