Activities of "yinchang"

after updated version to 0.6.8 Volo.Abp.Studio.Cli is broken

  • ABP Framework version: v8.0.4
  • UI Type: MVC
  • Database System: SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace: Image file cant display
  • Steps to reproduce the issue: Step 1. Follow reference : https://docs.abp.io/en/abp/latest/Modules/Docs

Step 2.Add Abp document, It's works fine

Step3. Add new Project(It's private repository in GitHub), markdown file can pull successfully but image can't display

I'm sure that i already upload img(in github website can see those image) to github and repository is pravite( i can't make my project to be public) here is my image link like below:

![further-remote](../images/further-remote.png)

PS: I know i can host another static web to accese image,but it's seem to be duplicate

Hello yinchang,

Please try by adding following code to MyApp\aspnet-core\src\MyApp.AuthServer\wwwroot\global-styles.css

:root .lpx-theme-dark .lpx-login-bg { 
    background-image: url('/LeptonX/images/login-pages/login-bg-img-dark.svg') !important; 
} 
:root .lpx-theme-light .lpx-login-bg { 
    background-image: url('/LeptonX/images/login-pages/login-bg-img-light.svg') !important; 
} 
:root .lpx-theme-dim .lpx-login-bg { 
    background-image: url('/LeptonX/images/login-pages/login-bg-img-dim.svg') !important; 
} 

Please do let us know if this solution has worked for you?

Awaiting for your response.

Thank You, Anjali

this solution work. Will you fix this issue for next version ?

  • ABP Framework version: v7.3.2

  • Template Type: Application Template

  • UI Type: Angular

  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB

  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

  • Exception message and full stack trace: backgroud svg is missing in production mode

  • Steps to reproduce the issue: 1.create application though abp suite

2.modify launchSettings.json in AuthServer project

3.Press F5 to run AuthServer project ,background image is missing

PS. If i Switch to Develop ,it work

Hi, the same problem with my, but I try to add a 'generator' of Nx to wrap schematic of abp, It works fine because of ignore angular.json check. You can ref below simple code ,thanks

import {
  Tree,
  moveFilesToNewDirectory,
  generateFiles,
  joinPathFragments,
  visitNotIgnoredFiles,
  ProjectConfiguration
} from '@nrwl/devkit';
import { wrapAngularDevkitSchematic } from '@nrwl/devkit/ngcli-adapter';

export default async function (host: Tree, schema: any) {
  let module=schema.module;
  let application=schema.application;
  let directory=schema.directory;
  let projectType=schema.projectType;
  let appPath=application;//.replace('-','\\');
  let runAngularLibrarySchematic = wrapAngularDevkitSchematic(
    '@abp/ng.schematics',
    'proxy-add'
  );

  await runAngularLibrarySchematic(host, {
    module: module,
    source: application,
    target: application
  });

  if(projectType==='lib'){
    await removeProject(host,`libs\\${directory}\\${module}\\proxy\\src\\proxy`);
    moveFilesToNewDirectory(
      host,
      `apps\\${appPath}\\src\\app\\proxy`,
      `libs\\${directory}\\${module}\\proxy\\src\\proxy`
    );
  }

  if(projectType==='app'){
    moveFilesToNewDirectory(
      host,
      `apps\\${appPath}\\src\\app\\proxy`,
      `apps\\${appPath}\\src\\app\\${module}\\proxy`
    );
  }
 

  return () => {
    console.log(`proxy added '${module} to ${module} success at ${application}`);
  };
}

export function removeProject(tree: Tree, path: string) {
  visitNotIgnoredFiles(tree, path, (file) => {
    tree.delete(file);
  });
  //tree.delete(path);
}


  • ABP Framework version: v6.0.1
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:below
  • Steps to reproduce the issue:"
  1. abp new FS -t app-pro -u mvc --tiered
  2. cd aspnet-core\etc\build and run build-images-locally.ps1
  3. cd aspnet-core\etc\docker and fix docker-compose.yml typo fs-authserver to identity-server
  4. runrun-docker.ps1
  5. go to https://localhost:44353/ and try to login with admin 1q2w3E* will get error:
  6. check log:
2022-11-22 12:23:23 [04:23:23 ERR] An unhandled exception has occurred while executing the request.
2022-11-22 12:23:23 System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'http://fs-identity-server/.well-known/openid-configuration'.
2022-11-22 12:23:23    at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsyncInternal(AuthenticationProperties properties)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsync(AuthenticationProperties properties)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.ChallengeAsync(AuthenticationProperties properties)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Authentication.AuthenticationService.ChallengeAsync(HttpContext context, String scheme, AuthenticationProperties properties)
2022-11-22 12:23:23    at FS.Web.Pages.IndexModel.OnPostLoginAsync() in C:\Works\11111\FS7\aspnet-core\src\FS.Web\Pages\Index.cshtml.cs:line 15
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.NonGenericTaskHandlerMethod.Execute(Object receiver, Object[] arguments)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync()
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync()
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Rethrow(PageHandlerExecutedContext context)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeInnerFilterAsync()
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextResourceFilter()
2022-11-22 12:23:23 --- End of stack trace from previous location ---
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
2022-11-22 12:23:23 --- End of stack trace from previous location ---
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
2022-11-22 12:23:23    at Volo.Abp.AspNetCore.Serilog.AbpSerilogMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
2022-11-22 12:23:23 --- End of stack trace from previous location ---
2022-11-22 12:23:23    at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
2022-11-22 12:23:23    at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
2022-11-22 12:23:23    at Volo.Abp.AspNetCore.MultiTenancy.MultiTenancyMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
2022-11-22 12:23:23 --- End of stack trace from previous location ---
2022-11-22 12:23:23    at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
2022-11-22 12:23:23    at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
2022-11-22 12:23:23 --- End of stack trace from previous location ---
2022-11-22 12:23:23    at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
Answer

@yorytang: It's fine in v4.3.0

hi

You can create a subclass to replace FileDescriptorAppService. And overide DownloadAsync method to use AllowAnonymous attribute.

https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Overriding-Services

Hi: Thank you,It's work

  • ABP Framework version: 4.2.2
  • UI type: don't care
  • DB provider: don't care
  • Tiered (MVC) or Identity Server Separated (Angular): don't care

HI: I have a question: When I use FileManagement module, for execute DownloadAsync method in FileDescriptorAppService it need FileManagement.FileDescriptor permission, but I want to let it can be executed without any permission,everyone can use it to download file, I had already read doc about overriding-a-permission-by-a-custom-policy but i don't know how to ignore exist policy for a appservice.

Can you tell me how to do? thank you.

It seems to be related to gmail security , I sent an email to info@abp.io .please check it.

Showing 1 to 10 of 17 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35