Activities of "ademaygun"

  • Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
  • Steps to reproduce the issue:

In our ABP.io v8 Angular UI application, we are experiencing the following error when some users log in: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.

Upon investigation, we found that in the getFromToken function, the access token payload is decoded using atob. When the payload length is not a multiple of 4 (due to missing Base64 padding =), atob throws this error. This happens especially when the preferred_username claim contains an email (e.g., abc@de.com).

Current Code:(in remember-me.service.ts)

const tokenBody = accessToken.split('.')[1].replace(/-/g, '+').replace(/_/g, '/');
const parsedToken = JSON.parse(atob(tokenBody));

Suggested Fix: Add missing padding before calling atob:

while (tokenBody.length % 4 !== 0) {
  tokenBody += '=';
}

Alternatively, using the jwt-decode library in Angular would be a more reliable approach.

  • Tool 'volo.abp.studio.cli' failed to update due to the following: The settings file in the tool's NuGet package is invalid: Settings file 'DotnetToolSettings.xml' was not found in the package. Tool 'volo.abp.studio.cli' failed to install. Contact the tool author for assistance.
  • Steps to reproduce the issue:
  • dotnet tool install -g Volo.Abp.Studio.Cli (on ubuntu)

Abp Version 9.3

Specified module 'app' does not exist. Looked in the following directories: /src/app/book /src/app/app /src/app /src

  • Exception message and full stack trace:
  • Steps to reproduce the issue:
  • Create new solution via Abp Studio 1.2.2
  • yarn ng generate module author --module app --routing --route authors (Tutorial)
  • Steps to reproduce the issue:
  • Login with admin
  • Go to Settings ->Account -> External providers enable google provider
  • Passive a user that you can log in with an external provider(google) and try to log in with that user via Google.

I activated the Google external provider in one of my projects. If the user logs in with a local login when isActive=false, the warning "You are not allowed to log in! Your account is inactive or needs to confirm your email/phone number" is given. If the same user logs in with Google, they stay on the login page but the same warning message should come but it does not.

Hello,

I am currently working on customizing the MVC Register page in my ABP Framework project. I have added a custom JavaScript file named cregister.js to handle additional client-side logic. However, when I deploy the project, I encounter the following error:

Volo.Abp.AbpException: Could not find file '/Pages/Account/cregister.js'

  • I have created the cregister.js file and placed it in the /Pages/Account/ directory.

  • I have updated the Register.cshtml file to include the script bundle configuration as follows: @section scripts { <abp-script-bundle name="@typeof(Volo.Abp.Account.Public.Web.Pages.Account.RegisterModel).FullName"> <abp-script type="@typeof(ZxcvbnScriptContributor)"/> <abp-script src="/Pages/Account/PasswordComplexityIndicator.js"/> <abp-script src="/scripts/cregister.js"/> </abp-script-bundle> } }

  • I have also configured the bundle in the HttpApiHostModule.cs file as follows:

   Configure<AbpBundlingOptions>(options =>
    {
        options
            .ScriptBundles
            .Configure(typeof(RegisterModel).FullName, bundle => {
                bundle.AddFiles(
                    "/Pages/Account/cregister.js"
                );
            });
    });

Actually, according to this link, I shouldn't need a bundle configuration for a single file. I don't get any errors while debugging, but I get this error on the server?

  • ABP Framework version: v9.0.0
  • UI Type: MVC
  • Database System: EF Core
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • No Exception
  • Steps to reproduce the issue:
    • Create an Abp Project
    • Select "Require confirmed email" option in Administration -> Settings -> Sign in Settings
    • Logout and Register for a new user

In an ABP application where email verification is mandatory, when a user clicks the 'verify' button during registration, a confirmation token email is sent from confirmuser.js. Then, the confirmation status is checked every 3 seconds using setInterval. However, there’s currently no timeout mechanism. Instead, it might be better to use WebSocket or setTimeout (for example, checking up to 20 times every 3 seconds). Additionally, if a 'Resend' button is displayed when the timeout expires, users can resend the confirmation email, creating a more flexible and user-friendly experience. Thanks.

  • ABP Framework version: v9.0.0
  • UI Type: Angular
  • Database System: EF Core ( PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace: No Exception
  • Steps to reproduce the issue: No issue

I need to make SMS (ISmsSender implementation) and other implementations that call API in one of my applications. In which existing project should I create the such concrete classes that require these operations or should I add a new project (Class library) for these operations?

  • ABP Framework version: v9.0.0
  • UI Type: Angular
  • Database System: EF Core
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I created my project via Abp Studio. But SampleDomainTests not appear in my Test Explorer, so I cannot run unit test. I think Abp studio is generating the test code incorrectly.

using System.Threading.Tasks;
using Shouldly;
using Volo.Abp.Identity;
using Volo.Abp.Modularity;
using Xunit;

namespace Ekol.Abc.Samples;

/* This is just an example test class.
 * Normally, you don't test code of the modules you are using
 * (like IdentityUserManager here).
 * Only test your own domain services.
 */
public abstract class SampleDomainTests<TStartupModule> : AbcDomainTestBase<TStartupModule>
    where TStartupModule : IAbpModule
{
    private readonly IIdentityUserRepository _identityUserRepository;
    private readonly IdentityUserManager _identityUserManager;

    protected SampleDomainTests()
    {
        _identityUserRepository = GetRequiredService<IIdentityUserRepository>();
        _identityUserManager = GetRequiredService<IdentityUserManager>();
    }

    [Fact]
    public async Task Should_Set_Email_Of_A_User()
    {
        IdentityUser adminUser;

        /* Need to manually start Unit Of Work because
         * FirstOrDefaultAsync should be executed while db connection / context is available.
         */
        await WithUnitOfWorkAsync(async () =>
        {
            adminUser = await _identityUserRepository
                .FindByNormalizedUserNameAsync("ADMIN");

            await _identityUserManager.SetEmailAsync(adminUser, "newemail@abp.io");
            await _identityUserRepository.UpdateAsync(adminUser);
        });

        adminUser = await _identityUserRepository.FindByNormalizedUserNameAsync("ADMIN");
        adminUser.Email.ShouldBe("newemail@abp.io");
    }
}

  • ABP Framework version: v8.1.1
  • UI Type: Angular
  • Database System: EF Core
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:
  • Create a new solution via Abp Suite or Abp Studio
  • browse localhost:4200 not switch "remember me" and log in
  • close the browser (not tab)
  • open the browser and open localhost:4200 (Shouldn't be logged in but logged in)

The "remember me" feature, whether it is authorization code or resource owner password, does not work properly in Angular. It is said that work is being done here, but it has not been fixed.

Question
  • ABP Framework version: v8.1.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Volo.Abp.BusinessException: Kiracı bulunamadı! at Volo.Abp.MultiTenancy.TenantConfigurationProvider.GetAsync(Boolean saveResolveResult) at Volo.Abp.OpenIddict.Controllers.TokenController.HandlePasswordAsync(OpenIddictRequest request) at Volo.Abp.OpenIddict.Controllers.TokenController.HandleAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.

HEADERS

Accept: / Accept-Encoding: gzip, deflate, br Accept-Language: en Cache-Control: no-cache Connection: keep-alive Content-Length: 81 Content-Type: application/x-www-form-urlencoded Cookie: .AspNetCore.Culture=c%3Dtr%7Cuic%3Dtr; __tenant=39f7b3e6-b1a7-61af-ec9f-cc85613d2ec4 Host: localhost:44397 User-Agent: PostmanRuntime/7.40.0 Postman-Token: bb994fdb-b047-4a2f-b267-fe49fac1dbe8

  • Steps to reproduce the issue:
  • Create a new project via Abp.Suite
  • disable multitenancy
  • try to get token from postman

HostModule:( I don't use Multitenancy)

        //if (MultiTenancyConsts.IsEnabled)
        //{
        //    app.UseMultiTenancy();
        //}

When I try to get a token from Postman, I get the error "tenant not found". But I don't use Multitenancy feature. (Cookies is cleaned)

Showing 1 to 10 of 36 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 12, 2025, 10:36
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.