forked from andrea-magni/MARS
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resync #1
Merged
Merged
Resync #1
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…XMLDocument and IXMLNode)
Upgraded Demos/JsonDataObjects (no significant changes)
…TDataSetWriterXML classes
Affinity now comes with higher priority than QualityFactor. In other words, this means server side type matching comes before client side accept statement. Improved TMediaTypeList.Intersect (now properly considering WILDCARD also). Improved TMediaTypeList.GetQualityFactor (now properly considering WILDCARD also). TFDDataSetWriter is now decorated with Produces attributes only for APPLICATION_JSON_FIREDAC, APPLICATION_XML_FIREDAC and APPLICATION_OCTET_STREAM (removed APPLICATION_XML). This will let TDataSetWriterXML to jump in if registered. Added WriteDataSet shortcut method to TArrayFDDataSetWriter class. Refactoring.
… is already available before defining it. This means you can have a connection definition on your development machine (configured through FireDAC standard mechanisms such as FireDAC Explorer or ini files) and at the same time include a definition for deployment or for development machines where design time experience is not required. BEWARE: no exception is thrown so keep in mind a local definition (FireDAC Explorer / ini files) actually overrides what's defined in MARS Engine parameters/ini files.
…ACommand always assigned (but for example a TFDMemTable has Command = nil). Thanks Stuart Clennet for pointing this out.
…eBodyWriter class (utility functions container for MBW)
…atusCode and ResponseText raised an exception if the FLastResponse object was not assigned. This can happen when connection troubles occur (thanks Stuart Clennet for pointing this out in this thread https://en.delphipraxis.net/topic/436-error-when-accessing-tmarsnetclient-responsestatuscode-when-endpoint-is-blacklisted/ )
… MBR and refactoring.
Wrappers for TWebRequest and TWebResponse
* Added x-www-form-urlencoded for MARS Client Resources
Register new resource component Packages 10.3 Rio for URLEncoded form support MARS.Core.RequestAndResponse.Interfaces now added to MARS Utils package
* updated packages for 10.3
…onyms added with RegisterBeforeExecute to fire when using regular component based calls, it was working for non-component based approach). Thanks @Davide675 for spotting this bug.
…onyms added with RegisterBeforeExecute to fire when using regular component based calls, it was working for non-component based approach). Thanks @Davide675 for spotting this bug. # Conflicts: # Source/MARS.Client.Client.pas
…ache module. Fixes #67, thanks @acarlomagno
Great thanks!
BugFix: changes about RequiredAttribute in commit a0bcbce broke handling of multipart/form-data files (Demos/MultipartFormData), thanks @stuartclennett for pointing this out (https://en.delphipraxis.net/topic/243-handling-multipartformdata/) Refactoring
Thanks @tino-t :-)
…CORS and added StatusCode for swagger endpoint. (#70)
Correction for Range check error on POST request on Linux #81 Co-authored-by: Andrea Magni <andrea.magni@gmail.com>
* TXMLReader and TXMLWriter implementation (MBR and MBW mechanism for IXMLDocument and IXMLNode) * DataSetToXML now has a <dataset> root node * Added shortcut class methods WriteDataSet for TDataSetWriterJSON and TDataSetWriterXML classes * IMPORTANT: Changes in the MessageBodyWriter selection mechanism. Affinity now comes with higher priority than QualityFactor. In other words, this means server side type matching comes before client side accept statement. Improved TMediaTypeList.Intersect (now properly considering WILDCARD also). Improved TMediaTypeList.GetQualityFactor (now properly considering WILDCARD also). TFDDataSetWriter is now decorated with Produces attributes only for APPLICATION_JSON_FIREDAC, APPLICATION_XML_FIREDAC and APPLICATION_OCTET_STREAM (removed APPLICATION_XML). This will let TDataSetWriterXML to jump in if registered. Added WriteDataSet shortcut method to TArrayFDDataSetWriter class. Refactoring. * TMARSFireDAC.LoadConnectionDefs now checks if a Connection Definition is already available before defining it. This means you can have a connection definition on your development machine (configured through FireDAC standard mechanisms such as FireDAC Explorer or ini files) and at the same time include a definition for deployment or for development machines where design time experience is not required. BEWARE: no exception is thrown so keep in mind a local definition (FireDAC Explorer / ini files) actually overrides what's defined in MARS Engine parameters/ini files. * Bugfix: TMARSFireDAC.InjectMacroValues and InjectParamValues assumed ACommand always assigned (but for example a TFDMemTable has Command = nil). Thanks Stuart Clennet for pointing this out. * Added FindWriter overload for specific Accept lookup, new TMARSMessageBodyWriter class (utility functions container for MBW) * Bugfix: TMARSNetClient implementations for LastCmdSuccess, ResponseStatusCode and ResponseText raised an exception if the FLastResponse object was not assigned. This can happen when connection troubles occur (thanks Stuart Clennet for pointing this out in this thread https://en.delphipraxis.net/topic/436-error-when-accessing-tmarsnetclient-responsestatuscode-when-endpoint-is-blacklisted/ ) * Bugifx #53: packages for 10.3 Rio are now correct * Bugfix #54: fixed TStringReader, added Encoding support (initial) for MBR and refactoring. * Bugfix #57: TJSONObjectHelper.ReadDateTimeValue ignores ADefault argument * Introduction of IMARSRequest and IMARSResponse Wrappers for TWebRequest and TWebResponse * * resolving conflicts to merge Brov84-develop * Added x-www-form-urlencoded support for MARS Resources (#56) * Added x-www-form-urlencoded for MARS Client Resources * Refactoring MARS URLEncoded form support Register new resource component Packages 10.3 Rio for URLEncoded form support MARS.Core.RequestAndResponse.Interfaces now added to MARS Utils package * + Delphi-Cross-Socket https://github.com/winddriver/Delphi-Cross-Socket * TMARSWebRequest and TMARSWebResponse wrap for Server.WebModule.pas * Removed hint for missing inline expansion * + MARS.DCS package * updated packages for 10.3 * BugFix: missing FireBeforeExecute in TMARSCustomClient (preventing anonyms added with RegisterBeforeExecute to fire when using regular component based calls, it was working for non-component based approach). Thanks @Davide675 for spotting this bug. * BugFix: missing FireBeforeExecute in TMARSCustomClient (preventing anonyms added with RegisterBeforeExecute to fire when using regular component based calls, it was working for non-component based approach). Thanks @Davide675 for spotting this bug. # Conflicts: # Source/MARS.Client.Client.pas * BugFix: wrong default for configuration file name when deployed as Apache module. Fixes #67, thanks @acarlomagno * Add Linux Server Delphi 10.2, 10.3 (#68) Great thanks! * Further refactoring to abstract from Web.HttpApp and Indy http layer BugFix: changes about RequiredAttribute in commit a0bcbce broke handling of multipart/form-data files (Demos/MultipartFormData), thanks @stuartclennett for pointing this out (https://en.delphipraxis.net/topic/243-handling-multipartformdata/) Refactoring * Add {$IFDEF TESTINSIGHT} (#69) Thanks @tino-t :-) * MARS.mORMot Its not suported for Linux64 (#71) MARS.FireDAC suported for Linux64 MARS.JOSE suported for Linux64 * Updated Mustache demo to use IMARSResponse and IMARSRequest. Enabled CORS and added StatusCode for swagger endpoint. (#70) * JOSE JWT upgrade to latest version * Upgrade Delphi-Cross-Socket to the latest version * Fix JOSE packages Compilation issue with JOSEJWT JWT tests are now using a 32 char length dummy secret * Upgrade mORMot-JWT to the latest version * Authorization demo fixes: * dproj upgrade * compilation issues with BeforeHandleRequest handler * Set FDManager.SilentMode to True to avoid including Wait providers for FireDAC everywhere. * Added GetQueryParamCount and GetCookieParamCount to IMARSRequest * GitHub Social template for MARS * TFDDataSetWriter now defaults to JSON serializer when the match is with the Wildcard media type (before the first entry in TFDDataSetWriter.WriteTo method would apply, that was the XML serializer). * Develop (#75) * Updated Mustache demo to use IMARSResponse and IMARSRequest. Enabled CORS and added StatusCode for swagger endpoint. * Added last file needed to be independent of a separate DMustache library. * UniDAC support (initial commit): many thanks to ErtanK for the implementation. Added MARS.UniDAC package Added "UniDAC Basic" demo * WIP UniDAC support * UniDAC: connection definition handling (WIP) * UniDAC support: better handling of connection definitions (caching at startup), optimized by-name access; Added SQLite example in UniDAC Basic demo UniDAC dataset serialization up to TMemDataSet (and TVirtualTable) Fixed macro injection * UniDAC support: a SQLite connection has been added to UniDAC Basic/bin/UniDACBasicServerApplication.ini and some equivalent code using FireDAC has been added in Server.Resources.pas * + Missing MARSClient.CoreResource.rc for 103Rio package * Added the ability to setup Windows Service Name and DisplayName using MARS parameters. Just add: ServiceName=YourServiceName ServiceDisplayName=Your Service Display Name to the ini file (or whatever parameter's storage system you are using). * dproj upgrade Delphi 10.3.3 Rio * Fix ApplyCustomHeaders restored after rebase of develop onto master branch * Fix visiblity (caused warning) * Removed MARS.UniDAC package from MARS.groupproj * Develop (#78) * Updated Mustache demo to use IMARSResponse and IMARSRequest. Enabled CORS and added StatusCode for swagger endpoint. * Added last file needed to be independent of a separate DMustache library. * Implemented support for gzip compression * Reverted modifications to MARS.Core.Activation. * Revert "Implemented support for gzip compression" This reverts commit 57d5264. * Implementation for gzip compression. * Implementation for gzip compression. Co-authored-by: Bjørn Larsen <bjorn.larsen1@km.kongsberg.com> * Changed GZip compression default to False in MARSTemplate * + MARSTemplateDCS demo * MARSTemplateDCS compilation * WIP MARSTemplateDCS * Issue #80: thanks to @grzegorzdeyk for pointing this out: Default encoding should be last call in GetEncodingName * + RemoteMic demo * Upgrade dproj 10.3.3 * Upgrade 10.4 Sydney Added packages for Delphi 10.4 Sydney Removed hints and warnings compiling with 10.4 Sydney * Upgrade Delphi 10.4 Sydney: Demos/MARSTemplate dprojs * Upgrade Delphi 10.4 Sydney: Demos/MARSTemplateDCS dprojs * Include definitions updated for Delphi 10.4 Sydney * Output directory updated for Delphi 10.4 Sydney (270) * Correction SetArrayLength (#83) Correction for Range check error on POST request on Linux #81 Co-authored-by: Andrea Magni <andrea.magni@gmail.com> * Merge error after PR#83 Co-authored-by: Paolo Brovelli <brov84@gmail.com> Co-authored-by: luiguik2 <luiguik2@gmail.com> Co-authored-by: Tino-T <tteuber@gmail.com> Co-authored-by: Bjørn Larsen <bjorn@labit.no> Co-authored-by: Bjørn Larsen <bjorn.larsen1@km.kongsberg.com> Co-authored-by: Emmanuel Nocentini <64004621+meg02in@users.noreply.github.com>
…SRequest, thanks @gmurt for pointing this out
…Set when using Async calls
….dproj and MARSClient.CoreDesign.dproj (#86) It made impossible to install MARS packages using command-line Co-authored-by: LamdanDY <LamdanDY@yanos.slavneft.ru>
…or pointing this out)
…esources) Fix #91: missing authentication endorsement when AuthEndorsement = Cookie and TMARSClientToken is loaded from file/stream Refactoring TMARSClientToken (SetData) Added TMARSClientToken.SaveToBytes and LoadFromBytes TMARSClientResourceJSON now properly assigns back data after Async calls
…ARSTemplate). Thanks Stuart Clennet for pointing this out.
* added Demos/MultipartFormData/upload.html as web page upload demo * Added missing GetQueryParamName(const AIndex: integer): string to MARS.Core.RequestAndResponse.Interfaces and implemented at MARS.http.Server.Indy * Added GetDate: TDateTime to the IMARSRequest interface in MARS.Core.RequestAndResponse.Interfaces.pas Implemented GetDate in TMARSWebRequest in MARS.http.Server.Indy.pas
…t interface method implementations for DCS)
… ways as Apache Module and IIS ISAPI (Experimental, Issue #95)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.