@ismcagdas,
Sorry about that, here is the column information:
[IMEI] [nvarchar](15) NOT NULL,
Hi @ismcagdas,
The db is SQL Server and the only connection for this repository is ProductLocation table.
Thx
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
Thank you.
Is it possible to turn off the login page language flags? Maybe a host admin switch?
Thx
Aaron,
Thanks so much! We definitely missed that in the last release.
Thanks again,
Matt
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
Aaron,
The project is ASP.NET Core & Angular.
Thanks,
Matt
If we extended the user class to use a boolean type for OnlyWebAPI access where would we inject the check in the front-end to prevent a login?
I have a client that will need to authorize and control access directly to the web services in ANZ. How do we create and manage user id's for web service connection only?