ASP.NET Core + Angular v6.5.0
We need some insight. We recently added two fields to an existing database and entity. The database does not have any spaces for these fields stored in their columns however when we perform the GetXXXForEdit function the field immediately has been max filled with the length. The MinLength is set to 0 and Max is 15. Here are the code snippets:
[AbpAuthorize(AppPermissions.Pages_ProductLocations_Edit)]
public async Task<GetProductLocationForEditOutput> GetProductLocationForEdit(EntityDto<long> input)
{
var productLocation = await _productLocationRepository.FirstOrDefaultAsync(input.Id); <-- Field Filled with spaces here
var output = new GetProductLocationForEditOutput {ProductLocation = ObjectMapper.Map<CreateOrEditProductLocationDto>(productLocation)};
[Table("ProductLocations")]
public class ProductLocation : FullAuditedEntity<long> , IMustHaveTenant
...
... Other Entity Fields...
...
[StringLength(ProductLocationConsts.MaxIMEILength, MinimumLength = ProductLocationConsts.MinIMEILength)]
public string IMEI { get; set; }
public const int MinIMEILength = 0;
public const int MaxIMEILength = 15;
What are we missing or done incorrectly in this situation?
Thx
Is it possible to turn off the login page language flags? Maybe a host admin switch?
Thx
Ever since we upgraded to v6.5 I get a debugging stop in the following function at the hi-lighted line. I have cleared cached and done other things but it still persists. What needs to be cleared to stop this from happening?
/* This method is needed to authorize SignalR javascript client.
* SignalR can not send authorization header. So, we are getting it from query string as an encrypted text. */
private static Task QueryStringTokenResolver(MessageReceivedContext context)
{
if (!context.HttpContext.Request.Path.HasValue)
{
return Task.CompletedTask;
}
if (context.HttpContext.Request.Path.Value.StartsWith("/signalr"))
{
var env = context.HttpContext.RequestServices.GetService<IHostingEnvironment>();
var config = env.GetAppConfiguration();
**Debug Breaks Here ---> ** var allowAnonymousSignalRConnection = bool.Parse(config["App:AllowAnonymousSignalRConnection"]);
return SetToken(context, allowAnonymousSignalRConnection);
}
if (context.HttpContext.Request.Path.Value.Contains("/Chat/GetUploadedObject"))
{
return SetToken(context, false);
}
return Task.CompletedTask;
}
System.ArgumentNullException HResult=0x80004003 Message=Value cannot be null. Parameter name: value Source=System.Private.CoreLib StackTrace: at System.Boolean.Parse(String value) at F2TEK.SKUHive.Web.Startup.AuthConfigurer.QueryStringTokenResolver(MessageReceivedContext context) in D:\Projects\C-Sharp\SKUHive\aspnet-core\src\F2TEK.SKUHive.Web.Host\Startup\AuthConfigurer.cs:line 86 at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.<HandleAuthenticateAsync>d__6.MoveNext()
This occurs for each call back into the web services and is very painful to step over every time you refresh the screen or change menu options in development. We don't seem to see it occur in our QA environment however that is a release version so we assume it is something to do with a record in the database or some token left over prior to the release.
Thx
I thought I saw an article or post regarding how to set a WebAPI only user to prevent them from having front end access. Would someone point me back to the article or provide feedback on how this can be done? I have a client that wants to support their eBay inventory with a backend connection and we need to provide them the ability to set actions on a web service only account.
Thx
I am using ASP.NET Zero 6.3.1 with Angular and Core. I need to generate a screen to utilize two existing entities. Does someone have a procedure to do this since the RAD tool does not allow generation on existing entities? Any sample script or commands would be very beneficial.
Thx in advance.
Does anyone have an example of calling a web service that is using the Primefaces pTable with row grouping they would share? I am having an issue wrapping my head around the documentation and what needs to be accomplished to get this to work without hardcoded data. Do I need to move away from the PrimengTableHelper to get this to work?
Thx in advance.
We recently demoed the product we are developing with ASP.NET Zero and found that any of the Pick Modal's generated by the RAD tool cached all information and the subsequent usage of the Pick were not refreshed. This was a global issue with any of the foreign tables. How do I clear the modal so it will refresh each time the Pick is clicked and shouldn't this be the default in the RAD tool?
Thanks.
I am using the latest version of ANZ and trying to locate documentation for alerting users, everything I found is for MVC. I need to validate a serial number entered is not a duplicate before dialog submission. What is the recommended process for alerting requiring a web api call? A sample would be great as I am still very new to the framework.
Thx
Did I miss something regarding the latest RAD tool updates regarding the standard added fields:
`CreationTime = table.Column<DateTime>(nullable: false),
CreatorUserId = table.Column<long>(nullable: true),
LastModificationTime = table.Column<DateTime>(nullable: true),
LastModifierUserId = table.Column<long>(nullable: true),
IsDeleted = table.Column<bool>(nullable: false),
DeleterUserId = table.Column<long>(nullable: true),
DeletionTime = table.Column<DateTime>(nullable: true)`
Up until this release these fields were always added to my Migrations Create Table entry however the latest release is not adding these to the create table. Did I miss something in the latest RAD updates?
Thanks.
Hi,
I thought I saw a document regarding information and details about how an external client could call the ANZ web services however I am having trouble locating it again. Does anyone have a direct link or recommendation on how they perform authorization then consume only the services they have authorization for? All of our services have permissions.
Thanks.