1186 Commits
Author SHA1 Message Date
Konstantin Safonov 08bb8da2cc [System.Web] Reference source import (#5909)
* [System.Web] Reference source import: DataSourceControlBuilder, DefaultAuthenticationEventHandler, EventEntry, Pair, ServerValidateEventArgs, TreeNodeTypes, WizardStep

* Bump API snapshot submodule
2017-10-31 20:48:41 +01:00
Konstantin Safonov a043b26831 [System.Web] EmptyControlCollection from reference source (#5884)
* [System.Web] EmptyControlCollection from reference source

* Bump API snapshot submodule
2017-10-28 01:10:33 +02:00
Konstantin Safonov adbf98b977 [System.Web] CompilationMode from reference source (#5878) 2017-10-27 12:23:28 +02:00
Konstantin Safonov aa39bf69f2 [System.Web] IndexedString from reference source (#5872)
* [System.Web] IndexedString from reference source

* Bump API snapshot submodule
2017-10-27 12:14:16 +02:00
Konstantin Safonov c17cc609da [System.Web] ImageClickEventArgs from reference source (#5871)
* [System.Web] ImageClickEventArgs from reference source

* Bump API snapshot submodule
2017-10-27 12:09:07 +02:00
Alexander Köplinger a22bb15e6b [System.Web] Rename method parameters to match .NET contract 2017-03-16 13:02:09 +01:00
Pablo Ruiz d750c58ae9 Replaced System.Web.Routing with referencesources own implementation. 2016-03-02 01:45:29 +01:00
kasthack 36e026d6c1 [System.Web.*] Reference source import: System.Web.Profile.(ProfileInfoCollection, ProfileInfo, ProfileAuthenticationOption, DefaultProfile), missing System.Web.ModelBinding and System.Web.UI types, System.Web.ApplicationServices.(...) 2016-02-19 18:04:06 +03:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
kasthack 18b1d72354 [System.Web] 20 attributes from reference source 2015-09-29 02:09:35 +03:00
kasthack 5b8a2d206c [System.Web] Public interfaces from reference source 2015-09-24 05:29:04 +03:00
kasthack 272033f2e2 [System.Web] Public event handlers from reference source 2015-09-22 22:56:26 +03:00
kasthack 31682e6b04 [System.Web] Public enums from reference source 2015-09-22 18:46:35 +03:00
kasthack 22ca5de1b0 System.Web.UI.IThemeResolutionService from referencesource 2015-09-20 07:40:54 +03:00
Jo Shields eb53f82111 Move files which were split out from System.Web into System.Web.ApplicationServices into the latter's directory. They no longer need to be in the former, since we no longer build the 2.0 profile they were originally part of. This fixes "no rule to make target" errors on tarball builds, caused by those files no longer being shipped in tarballs (make dist does not traverse a ../ boundary, so it wasn't enough for them to be listed in System.Web.ApplicationServices' manifest by System.Web's folder) 2015-02-06 10:17:54 -05:00
Zoltan Varga 032f313d5f [bcl] Remove NET_4_0 defines from class libs. 2015-01-13 16:06:31 -05:00
Etienne CHAMPETIER 227b0d1b55 [cleanup] System.Web*: remove TARGET_J2EE
done using unifdef
git grep -l TARGET_J2EE | grep -v ChangeLog | xargs -n1 unifdef -m -UTARGET_J2EE

Signed-off-by: Etienne CHAMPETIER <[email protected]>
2014-12-01 23:57:18 +01:00
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Alexander Köplinger a8b2f07578 [Cleanup] Removed .jvm.cs files that are no longer used
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:51 +02:00
Marek Safar b0c1e99f75 Fix attribute arguments 2012-07-26 12:48:27 +01:00
Marek Habersack c3e088bf2f Update to fix for Novell bug #739119 2012-07-25 08:42:09 -04:00
crazyjncsu 3e4e318507 Fixed execution of parallel async task to not be broken (made consistent with serial execution) 2012-06-13 10:42:38 -04:00
Marek Safar df0eff5b03 Fix few obvious NREs 2011-10-24 10:11:41 +01:00
Gonzalo Paniagua Javier a05c8bebb2 Remove duplicate 'using' statement 2011-09-15 11:34:41 -04:00
Marek Habersack 012ec44556 [asp.net] MinimizableAttributeTypeConverter only converts from strings.
It returns a boolean 'false' when the passed string matches (case-insensitively) 'false' or
is empty, returns 'true' otherwise.
All the other types (and a null value) cause it to throw the NotSupportedException.
2011-04-16 02:12:29 +02:00
Marek Habersack 879970ea20 [asp.net] Fix for bug #685267. ClientScriptManager generates correct post-back event reference for cross-page post-backs. 2011-04-14 22:40:06 +02:00
Marek Habersack d7ae726e35 [asp.net] HtmlForum.Name rendering updates + test updates 2011-03-25 22:48:22 +01:00
Marek Habersack adc3314eff [asp.net] Fix for bug #681553. Look for direct child controls before calling up on the NamingContainer 2011-03-25 14:19:21 +01:00
Marek Habersack 8470cb3d7d [asp.net] Fix for bug #681164. Page.InitOutputCache ignores calls with duration <= 0
It is ok to ignore such calls for two reasons - the cache with duration <= 0 will not
be effective anyway and the @OutputCache directive throws an exception for duration <= 0
2011-03-24 23:31:46 +01:00
Marek Habersack 885455cc37 [asp.net] Fix for bug #681421. Use VirtualPathProvider.CombineVirtualPaths
The method is used by the parsers to look up dependencies, sources, controls
and master pages.
2011-03-22 21:24:59 +01:00
Marek Habersack 5f5d73fbdb [asp.net] Use List <string> instead of ArrayList to keep assembly locations in TemplateParser 2011-03-22 21:24:59 +01:00
Marek Habersack bc0cb19ea9 [asp.net] Use List <string> instead of ArrayList to keep file dependencies 2011-03-22 21:24:58 +01:00
Marek Habersack 11161ffcfb [asp.net] Implemented the 4.0 type, FileLevelMasterPageControlBuilder 2011-01-13 20:11:15 +01:00
Jérémie Laval 09185b9e81 Add support for storing elements with the same hashcode in ConcurrentDictionary. Add corresponding unit test. 2010-12-16 13:39:32 +00:00
Jérémie Laval 8e89861961 Plug SplitOrderedList inside TemplateControl. 2010-11-22 18:05:20 +00:00
Marek Habersack 90248a3bd1 [asp.net] Part of fix for bug #653013. StateManagedCollection must perform a full clear in LoadViewState
If all the items in the collections were saved to the view state, the collection must call the Clear ()
method in order for the OnClear and OnClearComplete methods to be invoked. Telerik RadComboBox depends
on it to remove dynamically added entries before they are recreated when the view state is loaded by
the control.
2010-11-17 14:11:11 +01:00
Daniel J Sell d53c11003d [asp.net] Fix for bug #653192. making MasterPageFile handle relative paths
MasterPageFile should be relative to the file being parsed, not the
request path
2010-11-12 11:21:40 +01:00
Marek Habersack 218262b92a [asp.net] A micro-optimization to not call String.Format too much in a loop. 2010-11-09 01:39:49 +01:00
Gonzalo Paniagua Javier fc51c16274 Avoid locking in WireupAutomaticEvents
Replace a big lock with a ReaderWriterLockSlim.
2010-11-03 16:29:05 -04:00
Marek Habersack 19e5207189 [asp.net] Fix for bug #649551. The LosFormatter (bool, string) constructor does not expect a base64-encoded string.
Telerik controls pass the string "string" as the macKeyModifier parameter to the constructor. Tests show that .NET
accepts such input without throwing an error. The passed string is now converted into a byte array and passed to
the LosFormatter (bool, byte[]) constructor.
2010-10-29 15:53:19 +02:00
Marek Habersack 67ad55bc49 [asp.net] Fix for bug #649034. Control.FindControl continues to search for controls above itself if it's a naming container.
When a control is a naming container and an attempt to find a control with non-segmented id (e.g. 'myControl') is made,
the search continues to the control's naming container if pathOffset is 0, that is we're at the start of the search.
2010-10-29 14:44:56 +02:00
Marek Habersack 244ae1ff20 [asp.net] Fix for bug #646479. Do not call control's OnLoad twice when it is dynamically added.
Control.AddedControl will call the new control's LoadRecursive which would trigger its OnLoad
handler. OnLoad must be called only if control hasn't already been loaded.
2010-10-28 15:59:18 +02:00
Marek Habersack 30bbf985d2 [asp.net] Fix for bug #646984. Theme stylesheets must be output in correct order.
This patch changes the way we output theme stylesheets to match .NET behavior. Theme
.css files are sorted using an ordinal and case-insensitive comparer and are output
to the page at the top of the <head> element's contents instead of at the end.
2010-10-27 14:23:21 +02:00
Marek Habersack 8af1840778 [asp.net] Added encryption notes to ObjectStateFormatter.{Serialize,Deserialize} 2010-10-27 01:09:13 +02:00
Marek Habersack 94d7d01269 [asp.net] Fix for bug #649198. Implement MasterPage.InstantiateInContentPlaceHolder
Code based on patch from Rikard Johansson <[email protected]>, thanks!
2010-10-26 12:00:29 +02:00
Marek Habersack 8aa83da53e [asp.net] ObjectStateFormatter.{De}serialize methods taking stream use a magic value to mark the stream. 2010-10-21 01:21:53 +02:00
Marek Safar aad016fd87 Clean up few more warnings 2010-10-15 15:20:25 +01:00
Sebastien Pouliot 21d2c6aedb A few moves/changes following previous patch review
* Makefile: Compile tests with TEST defined (to include System.Web.Util.
MachineKeySectionUtils unit tests)
* System.Web.dll.sources: Move MachineKeySectionUtils.cs from System.
Web.Configuration_2.0 to System.Web.Util
* System.Web_test.dll.sources: Move MachineKeySectionUtilsTest.cs from
System.Web.Configuration_2.0 to System.Web.Util

* System.Web.Configuration_2.0/MachineKeySection.cs: Adjust using
clauses. Uncomment some code. Fix TripleDES versus 3DES for Validation
under NET_4_0. Remove 'private' on fields/methods.
* System.Web.Handlers/AssemblyResourceLoader.cs: Adjust using clauses
* System.Web.Security/MembershipHelper.cs: Adjust using clauses
* System.Web.Security/RolePrincipal.cs: Adjust using clauses
* System.Web.SessionState_2.0/SessionId.cs: Adjust using clauses
* System.Web.UI/LosFormatter.cs: Adjust using clauses.
* System.Web.Util/MachineKeySectionUtils.cs: Moved from System.Web.
Configuration_2.0. Rename namespace and remove 'internal' on type
declaration

* Test/System.Web.Util/MachineKeySectionUtilsTest.cs: Moved from Test/
System.Web.Configuration/MachineKeySectionTest.cs. Add test case for
TripleDES versus 3DES
2010-10-12 11:38:48 -04:00
Sebastien Pouliot a22389fde2 Normalization of cryptographic uses in asp.net
* System.Web.Configuration_2.0/MachineKeyRegistryStorage.cs:
Remove key length check and generic key generation.

* System.Web.Configuration_2.0/MachineKeySection.cs: Add support for 4.0
ValidationAlgorithm and the use of custom algorithms (validation and
decryption). Allow the use of any, valid, key length (based on the
algorithm). Let each algorithm creates its own key (e.g. special needs,
default length...)

* System.Web.Configuration_2.0/MachineKeySectionUtils.cs: Remove key
generation (from random) code and 192bits key length hack (won't work
with custom algorithms). Add support for new (4.0) algorithms, including
custom ones. Provide uniform/shared code to Encrypt/Decrypt, Sign/Verify
and EncryptSign/VerifyDecrypt using MachineKeySection data.

* System.Web.Configuration_2.0/MachineKeyValidation.cs: Add new (4.0)
values.

* System.Web.Configuration_2.0/MachineKeyValidationConverter.cs: Add
support for new (4.0) algorithms.

* System.Web.Handlers/AssemblyResourceLoader.cs: Use the new common
cryptographic code and base64 the encrypted data.

* System.Web.Security/FormsAuthentication.cs: Use the new common
cryptographic code and base64 the signed and/or encrypted data.

* System.Web.Security/MembershipHelper.cs: Use the new common
cryptographic code - this should be 100% compatible with existing data.

* System.Web.Security/RolePrincipal.cs: Use the new common cryptographic
code.

* System.Web.Security/SqliteMembershipProvider.cs: Adapt code for
internal API change.

* System.Web.UI/LosFormatter.cs: Adapt code for internal API change.
Fix some small behaviro changes wrt NET_4_0

* System.Web.UI/ObjectStateFormatter.cs: Use the new common cryptographic
code.

* System.Web.UI/Page.cs: Remove code that is now unneeded (with the new
common cryptogrraphic code).

* System.Web.Configuration_2.0/MachineKeyCompatibilityMode.cs: New.

* Test/System.Web.Configuration/MachineKeyValidationConverterTest.cs:
Add more, mostly 4.0, test cases.

* Test/System.Web.Security/FormsAuthenticationTest.cs: Add test case to
ensure HashPasswordForStoringInConfigFile is not case sensitive.

* Test/System.Web.UI/LosFormatterTest.cs: Add some rountrip test cases
with the different ctors
2010-10-12 11:38:47 -04:00
Marek Habersack 6a5b23824c [asp.net] HiddenFieldPageStatePersister must not attempt to deserialize an empty/null string 2010-10-12 15:33:19 +02:00