oss.sdk.net's People
Forkers
remicartieros singhlo1 piotrrudnik-one rafalolszewskios wangyifan1985 bizhichen mrmontreal martin-tk kalpeshonespan ckeyrouz peiyu-onespan cpiehl kojomensah mateuszgruszkaonespan steelcrusher houjianyu yinghuonespan joepro sohanal1 aleksandar-manukov devirte1 kehang-xu jsingh-97oss.sdk.net's Issues
Add support for profile query parameter for designer
The designer URL supports profile parameter in order to hide some of the links on the designer screen.
sdk logging is broken
In v11.35.1, OneSpanSign.Sdk.Internal.ApplicationLogger no longer seems to work because the trace compiler constant is missing.
I suspect, but did not validate, this setting went missing during the upgrade to netstandard. The visual studio project type for netstandard doesn't have an obvious way to set this, and it seems to be set by default back in the full .net framework days.
According to Microsoft, there are 2 ways to fix the issue:
- Adding
#define TRACE
to OSS SDK code. - specifying the option
/d:TRACE
when compiling OSS SDK code.
I didn't check the code on versions newer than v11.35.1, because those tags aren't available.
In case you're curious what's going on behind the scenes, here is what ApplicationLogger looks like when decompiled, and TRACE is not defined. Notice all the empty methods.
Here is what ApplicationLogger looks like when decompiled, and TRACE is defined. Notice methods arent empty.
Here is the quick and dirty fix I used so I could move forward.
Cannot open designer
The designer redirect path is wrong in UrlTemplate
.
Cannot download separate attachment files
When there are more than one attachment, we cannot download separate attachment files using:
because the path template used in the
DownloadAttachmentFile(string packageId, string attachmentId, Int32 fileId)
method in the AttachmentRequirementApiClient
is wrong:Fix: UrlTemplate.ATTACHMENT_REQUIREMENT_PATH
-> UrlTemplate.ATTACHMENT_FILE_PATH
EventNotificationService.Register - The 'User-Agent' header must be modified using the appropriate property or method
In 11.38, commit c9b3a53, calling EventNotificationService.Register(builder)
throws an exception in HttpMethods.WithUserAgent
due to setting the 'User-Agent' string as a name/value pair. 11.36 works correctly.
https://docs.microsoft.com/en-us/dotnet/api/system.net.httpwebrequest.headers#System_Net_HttpWebRequest_Headers contains the list of restricted headers.
OneSpanSign.Sdk.OssException: Unable to configure event notification. Error communicating with oss server. The 'User-Agent' header must be modified using the appropriate property or method.
Parameter name: name ---> OneSpanSign.Sdk.OssException: Error communicating with oss server. The 'User-Agent' header must be modified using the appropriate property or method.
Parameter name: name ---> System.ArgumentException: The 'User-Agent' header must be modified using the appropriate property or method.
Parameter name: name
at System.Net.WebHeaderCollection.ThrowOnRestrictedHeader(String headerName)
at System.Net.WebHeaderCollection.Add(String name, String value)
at OneSpanSign.Sdk.Internal.HttpMethods.WithUserAgent(WebRequest request)
at OneSpanSign.Sdk.Internal.HttpMethods.PostHttp(String apiKey, String path, Byte[] content, IDictionary`2 headers)
--- End of inner exception stack trace ---
at OneSpanSign.Sdk.Internal.HttpMethods.PostHttp(String apiKey, String path, Byte[] content, IDictionary`2 headers)
at OneSpanSign.Sdk.RestClient.Post(String path, String jsonPayload)
at OneSpanSign.Sdk.EventNotificationApiClient.Register(Callback callback)
--- End of inner exception stack trace ---
at OneSpanSign.Sdk.EventNotificationApiClient.Register(Callback callback)
at OneSpanSign.Sdk.Services.EventNotificationService.Register(EventNotificationConfig config)
at OneSpanSign.Sdk.Services.EventNotificationService.Register(EventNotificationConfigBuilder builder)
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.