U4-2335 - [Regression] YSOD when editing stylesheet property on 6.0.6

Created by Asbjørn Riis-Knudsen 06 Jun 2013, 22:58:57 Updated by Sebastiaan Janssen 21 Jun 2013, 15:01:20

When editing a stylesheet property on 6.0.6 (not 6.1.x) you instead get an error: "The name 'UmbracoUser' does not exist in the current context". This regressed somewhere between 6.0.3 and 6.0.6. Kompileringsfejl Beskrivelse: Der opstod en fejl under kompilering af en ressource, der er påkrævet ved behandling af denne anmodning. Læs følgende detaljer om fejlen, og foretag de nødvendige ændringer af kildekoden.

Fejlmeddelelse om kompileringsfunktion: CS0103: Navnet 'UmbracoUser' findes ikke i den aktuelle sammenhæng

Kildefejl:

Linje 11: Linje 12: Linje 13: <%=umbraco.ui.Text("name", UmbracoUser)%>: Linje 14: Linje 15:

The cause is the fact that this page (EditStyleSheetProperty.aspx) appears to have been backported from 6.1, without the necessary changes to the Umbraco.BasePages.BasePage class.

In 6.0.3 the code in question look like this: <%=umbraco.ui.Text("name", base.getUser())%> Whereas in 6.0.6 it looks like this - but the UmbracoUser property does not exist on the BasePage (which it does in 6.1) <%=umbraco.ui.Text("name", UmbracoUser)%>

Comments

Asbjørn Riis-Knudsen 12 Jun 2013, 17:10:27

This should be a simple fix - but what is best? Reverting the aspx file to the 6.0.3 version - or adding the UmbracoUser property to the BasePage class?


Sebastiaan Janssen 13 Jun 2013, 14:12:37

This is an oversight of the file coming from 6.1.x back to 6.0.6, sorry about that! Can indeed be fixed by going back to base.getUser()


Sebastiaan Janssen 21 Jun 2013, 15:01:16

Fixed in changeset a2da27121e053eddf24da3771d8abc74aacc7272


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.0.6

Due in version: 6.0.7

Sprint:

Story Points:

Cycle: