Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 error when loading Content Type Icons #18

Open
rajambalj opened this issue Dec 6, 2023 · 6 comments
Open

500 error when loading Content Type Icons #18

rajambalj opened this issue Dec 6, 2023 · 6 comments

Comments

@rajambalj
Copy link

rajambalj commented Dec 6, 2023

All of a sudden my content type icon urls changed from Geta_Epi_ThumbnailIcon to Geta_Optimizely_ContentTypeIcons. Also it was throwing 500 error.

input is null. But I have all the required startup code with the ForegroundColor and BackgroundColor. It just stopped all of a sudden.

Stack trace is as follows.

System.Text.RegularExpressions.ThrowHelper.ThrowArgumentNullException(ExceptionArgument arg)
System.Text.RegularExpressions.Regex.Match(string input)
Geta.Optimizely.ContentTypeIcons.Controllers.ContentTypeIconController.CheckValidFormatHtmlColor(string inputColor)
Geta.Optimizely.ContentTypeIcons.Controllers.ContentTypeIconController.Index(ContentTypeIconSettings settings)
lambda_method489(Closure , object , object[] )
Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
WebEssentials.AspNetCore.OutputCaching.OutputCacheMiddleware.InvokeAsync(HttpContext context)
Geta.NotFoundHandler.Infrastructure.Initialization.NotFoundHandlerMiddleware.InvokeAsync(HttpContext context, RequestHandler requestHandler)
Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

@degborta
Copy link

@rajambalj Can you show me your startup code and also an example of the attribute you use on a content type that is failing?

@mp3duck
Copy link

mp3duck commented Dec 11, 2023

I'm facing a similar issue. It occurred after we moved our DXP to use Opti ID.

@rajambalj
Copy link
Author

rajambalj commented Dec 11, 2023

@degborta Here it is.

image

image

image

Also we are using Azure AD to login to Optimizely.

@degborta
Copy link

Ok thanks! can you also provide me with the generated url to the image @rajambalj ? Should look something like this:
/Geta_Optimizely_ContentTypeIcons?BackgroundColor=02423F&ForegroundColor=ffffff&Width=120&Height=90&FontSize=40&Character=61595&CustomFontName=&EmbeddedFont=fa5%2fwebfonts%2ffa-brands-400.ttf&UseEmbeddedFont=True&Rotate=None

@rajambalj
Copy link
Author

rajambalj commented Dec 12, 2023

@degborta
Geta_Optimizely_ContentTypeIcons?BackgroundColor=%23bf1238&ForegroundColor=%23ffffff&Width=120&Height=90&FontSize=40&Character=62566&CustomFontName=&EmbeddedFont=fa5%2fwebfonts%2ffa-solid-900.ttf&UseEmbeddedFont=True&Rotate=None

I even tried with removing those %23 also. It lead me to that null reference exception I mentioned above. (tried opening in new page)

@adayinthelifeofapro
Copy link

We are also facing a similar issue and the same happened to us when switching to use Opti ID for CMS logins, if I follow one of the image urls I get the following message:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants