Quantcast
Channel: Optimizely Search & Navigation
Viewing all 6894 articles
Browse latest View live

Add the "Submitted from" value to email sent by Forms?

$
0
0

Hi!

In the Forms data there is a column called "Submitted from". Is it possible the get that value in the email that is sent?
Or how can you otherwise make sure that you know from which page the form was posted?

Thanks!

/Kristoffer


Authentication from both SSO SAML IDP for certain users, Episerver for the rest and ADFS for backend edit view

$
0
0

I am trying to implement SAML 2.0 identity authentication of commerce members from IDP. My requirement is to authenticate users from few countries from IDP and the rest from EPiServer. I have separte adfs authentication for backend/edit-view. How to achieve this?

Intercept private NormalizeData of EPiServer.Forms CSVDataExporter

$
0
0

Hi all,

what would be the correct way to intercept NormalizeData method (which is private) of CSVDataExporter class to add additional normalization, without creating additional option for form submissions export ("Exaport as...")?

Server unavailable when search query with sorting runs

$
0
0

We have a search in our website implemented using EPiServer Find. It has a sorting option such as 'Sort by number of views' which is based on a int property. 

Strange thing is this sorting works for most of the times and occationally it fails with following Java ClassCastException error.

EPiServer.Find.ServiceException: 'The remote server returned an error: (503) Server Unavailable.
ReduceSearchPhaseException[Failed to execute phase [query], [reduce] ]; nested: ClassCastException[java.lang.Double cannot be cast to java.lang.Long]; '

Anyyone has a clue why this server error occurs randomly? 

Path to uploaded documents in episerver

$
0
0

This might be a easy question :)

When uploading a document for a specific page lets say its a image with name "i love cats.png"

the link to the image will be something like this:
/contentassets/ec231023da3a4ea695dc3a09987io38f/i-love-cats.png

if these a way change this to be instead encoded like:
/contentassets/ec231023da3a4ea695dc3a09987io38f/i%20love%20cats.png

Is these a setting for this somewhere that i cannot find :)?

Which validator do I used to exclude SelectionElementBlock multiselect?

$
0
0

I only want to allow the required validator for a custom and remove multiselect as an Editor option for an element based on SelectionElementBlock.

[AvailableValidatorTypesAttribute(Include = new Type[] { typeof(RequiredValidator)},     Exclude = new Type[] { typeof(???)})]

Problem with new types of Locale

$
0
0

We have a problem with our site running on the latest Episerver in combination with using it on a recent Android machine (Android 9 Pie), which recently support new types of locale:

https://stackoverflow.com/questions/35901230/which-are-the-new-android-n-languages

Using these types of language settings like 'en_NL' is now allowed which was before not possible. However, Episerver crashes on this type of language setting, whilst it's officially supported in the new Android.

Anyone got any idea?

Thanks in advance,

Ron

PrincipalInfo.Current.IsPermitted() for anonymous users

$
0
0

Hello,

I defined couple of virtual roles and some permission types in the system I am working on. The virtual roles are there in order to assign permissions to the roles using Permissions for Functions. After doing these I can assign specific permissions for the user role. 

<virtualRolesaddClaims="true">       
    <providers>
        (Other Episerver roles)

        <addname="CustomRole"type="EPiServer.Security.MappedRole, EPiServer.Framework"roles="CustomRole"mode="Any" />
    </providers>     
</virtualRoles>

The virtual roles are assigned to CurrentPrinciple under runtime by adding a Claim to the user. The claim is defined as:

public static ClaimsIdentity CustomRole => new ClaimsIdentity(new[]
{    new Claim(ClaimTypes.Role, "CustomRole")
});

And added to user by 

var user = EPiServer.Security.PrincipalInfo.CurrentPrincipal as ClaimsPrincipal;
user?.AddIdentity(CustomRole);

I can then query the database with 

PrincipalInfo.Current.IsPermitted(CustomPermissions.Permission)

and it works as expected as long as I am logged in as Episerver admin. However, IsPermitted function returns always false if the user is anoynmous even though the user has the claim "CustomRole". 

Am I missing something in order to use IsPermitted function for anonymous users?

Thanks in advance.


Run Episerver in Docker with microsoft/dotnet

$
0
0
We are running Episerver CMS on Windows Server, but would like it to run in a Linux container instead.
We have several dotnet core applications running on the Docker image microsoft/dotnet already and see both performance and cost benefits already, as well as much better operability.
Is there any chance that Episerver CMS will run on i.e. microsoft/dotnet container in Linux? 

Using EPiServerProfile store, Tracking and recommendations in a non-EPiServer application

$
0
0

Hi,

Can I use the EPiServer recommendations using EPiServer Perform and profile store in a non EPiServer application? I'm trying to achieve product recommendation in an e-commerce website built on top of ASP.NET MVC using EPiServer recommendations. So I thought of creating a ASP.NET WebAPI which will send the data to EPiServer recommendation engine and will gather the recommendations from EPiServer perform and send it back to my MVC application. 

 Is this possible to achieve? If so  please guide me on how I can achieve this.  

Questionmark in text when browsing but not in EpiserverCMS view

$
0
0

I have a problem with the site I am working on where pages in russian and latvian sometimes renders incorrectly and show a questionmark in their XhtmlString properties. In CMS when editing it looks fine but when browsing there are errors in the text. The property is renderd whith PropertyFor() and webconfig specifies encoding="utf-8".

The site is in CMS 11 and on DXC environment.

Any suggestions about the cause of this and howe to solve it?

Email validation in forms

$
0
0

I have a problem with the following is being logged "[..namespace...] : Could not send email because the specified recipient email is not a valid email address in the block with ID 44164".

It seems that the frontend validation is not as strong as the backend. You can write "something@something.dk2" in the frontend, but in the backend you will get the error message.

The backend validation (System.ComponentModel.DataAnnotations) EmailAddressAttribute IsValid regex is the following:

^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?$

Whereas the AvailableValidatorTypes EmailValidator on the block is only:

(^$)|(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)

Is there a way to make the two validations the same so the user does not insert a invalid email?

[12.15.0] Double tax added?

$
0
0

Hi,

I'm experiencing a very odd behavior in EPiServer Commerce...

Sometimes, very infrequently, an extra tax value is added to the cart. An example is a subscription for a publication for 149kr, which includes 6% sales tax. An additional 6% sales tax is added, for a total of 157,94kr. I haven't been able to reproduce this, neither on the production site, nor in the development environment.

In the code, I leave all tax handling to EPiServer Commerce (and the prices in the (single) market includes tax). I have, however, overriden DefaultTaxCalculator.CalculateShippingTax(ILineItem, IMarket, IOrderAddress, Mone) to always return 0. Since we never add shipping cost for a line item, this shouldn't cause any problems.

I haven't been able to find anything consistent about the (very few) problematic orders. None of the orders contain the same variations (though all of the orders only contain 1 variation), they used different payment methods, they all live in the same country (Sweden), no additional shipping fees have been added.

Has anyone else experienced this?

Any tips on how to try to track this down?

Error trying to fetch more than 100 items

$
0
0
We are using an on premise find solution. We get the following error on our production server, but the same query and database works on our test environment. Does anybody know what could cause this?
The index is set to return 1000 items. Could this be some kind of setting on the find server itself?

System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> EPiServer.Find.ServiceException: The remote server returned an error: (403) Forbidden. Your account is not authorized to return more than 100 hits ---> System.Net.WebException: The remote server returned an error: (403) Forbidden. at System.Net.HttpWebRequest.GetResponse() at EPiServer.Find.Connection.JsonRequest.GetResponseStream() at EPiServer.Find.Api.Command.GetResponse[TResult](IJsonRequest request) --- End of inner exception stack trace --- at EPiServer.Find.Api.Command.GetResponse[TResult](IJsonRequest request) at EPiServer.Find.Api.SearchCommand`1.Execute() at EPiServer.Find.Client.Search[TResult](SearchRequestBody requestBody, Action`1 commandAction) at EPiServer.Find.SearchExtensions.GetProjectedResult[TResult](ISearch`1 search, SearchContext context) at EPiServer.Find.SearchExtensions.GetResult[TResult](ISearch`1 search) at EPiServer.Find.Cms.SearchRequestExtensions.GetContentResult[TContentData](ITypeSearch`1 search, Int32 cacheForSeconds, Boolean cacheForEditorsAndAdmins)

DateTime values in Commerce Manager displayed in UTC

$
0
0

Version 12.11

Datetime field values on the Commerce Manager UI seem to display in UTC time. A good example is when viewing purchase orders, the Created datetime is displayed in UTC.

Is there a setting or code configuration to ensure Datetime is displayed in the local timezone ?


X-Forwarded-Proto support for when behind load balancer.

Customize promotions engine

$
0
0

Hi,

I am working on Commerce 12.15.0, we have a requirment to calculate the promotions on Regular price and not the placed price. For example:

SKU 001 has a Regular Price $10 and Sale Price $8. Upon entering a valid coupoun the discount is currently applied on the placed price which is $8 by default. But the client wants to apply the discount on Regular price and then honor the lowest price between the two (Discounted Regular Price and Sale Price). So if the Discount is 50% off, then the Discount is applied to regular price which makes it $5 and then compare the Discounted Regular Price and Sale Price and take the lowest price between the two.

So should I have my own implementaton of the IPromotionEngine interface or should I create a new promotions processor? This is my first time working with promotions, I apprecite any ideas on how to approach this.

Cannot Create Blocks

$
0
0

We are using EPiServer 7.5 and suddenly we have got to know that block creation was not possible with the site ("New Block" option is disabled). We suspect this is something to do with database setting/value, but that is not 100% sure.

How to tell if IContent is an asset or a page link?

$
0
0

Basically, I have a LinkItemCollection property on a block, and when it's displayed I'd like to add special HTML if it's an external link or if it's a file (pdf or word file or similar) rather than an internal episerver page. 

I already have an "IsInternal()" method that examines the Href and historically works well, but struggling to find a method to tell the difference between different internal links, page vs image vs pdf etc.

EpiServer.Find nuget migration to .NET standard

$
0
0

Hello,

I would like to ask if there is a possibility to migrate existing EpiServer.Find nuget package from .NET Framework to .NET Standard (or expose additional target to .NET Core).

Kind Regards,

Tomasz Sanner

Viewing all 6894 articles
Browse latest View live