Coder Social home page Coder Social logo

sitecore / mvp-site Goto Github PK

View Code? Open in Web Editor NEW
63.0 27.0 89.0 25.06 MB

Source code the Sitecore MVP site

Home Page: https://mvp.sitecore.com/

License: Apache License 2.0

PowerShell 1.39% Dockerfile 0.33% C# 9.70% HTML 9.92% CSS 48.29% JavaScript 0.95% SCSS 29.38% Ruby 0.05%

mvp-site's Introduction

Repository Archived

This repository is now marked as 'archived'. All of the sites contained in this repository have now been migrated to XM Cloud. You can find the new repository here: https://github.com/Sitecore/XM-Cloud-Introduction.

The repository will remain available as an example of how to use the technologies shown, but will no longer be upgraded as future versions of those technologies are released.

๐Ÿฅ‡ Sitecore MVP Program Site

This repository for the Sitecore MVP site. It is built using Sitecore 10.2.

๐Ÿ’— Contributions

The Sitecore MVP site is an Open Source project and as such we welcome community contributions, though Sitecore has a "No commitment" approach to this repository. Please read the Code of Conduct and Contribution Guide before participating

โœ‹ PreRequisites

๐Ÿ’ป Initial Setup

  1. ๐Ÿƒโ€โ™‚๏ธ Run the Start-Environment script from an elevated PowerShell terminal

    .\Start-Environment -LicensePath "C:\path\to\license.xml"

    Note: The LicensePath argument only has to be used on the initial run of the script. The license file must be named license.xml, the script copies it to the folder .\docker\license where it also can be placed or updated manually.

    You must use an elevated/Administrator PowerShell terminal
    Windows Terminal looks best but the built-in Windows Powershell 5.1 terminal works too.

  2. โ˜• Follow the on screen instructions.

    Note: that you will be asked to fill in the following values with your Okta developer account details:

    If the wizard is aborted prematurely or if the container build fails then use the -InitializeEnvFile switch to re-run the full wizard.

    .\Start-Environment.ps1 -InitializeEnvFile
  3. ๐Ÿ”‘ When prompted, log into Sitecore via your browser, and accept the device authorization.

  4. ๐Ÿš€ Wait for the startup script to open a browser tab with the Sitecore Launchpad.

  5. ๐Ÿ›‘ To Stop the environment again

    .\Stop-Environment.ps1

๐ŸŽญ Site switches

If you only want to start either the MVP or the SUGCON rendering container(s), you can use one of the following switch args

  • -StartSugconSites
  • -StartMvpSite

If none of these are passed to the script all rendering containers are started.

Example:

.\Start-Environment -StartSugconSites

โš ๏ธ Troubleshooting

If have issues running the site locally, please refer to the Troubleshooting page on the wiki before opening an issue.

mvp-site's People

Contributors

ahmed-ae avatar anderslaub avatar cassidydotdk avatar dependabot[bot] avatar dheerajp avatar guidovtricht avatar joshuahover avatar jst-cyr avatar kayeenl avatar koenheye avatar lentalex627 avatar markvanaalst avatar mrtamasvarga avatar naimae avatar navancommits avatar robearlam avatar sebastiantecsi avatar vadzimpapko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mvp-site's Issues

A parameter cannot be found that matches parameter name 'AllowPrerelease'.

Description

After running of the init.ps1 with the sample parameters I am getting the error
D:\Docker\MVP-Site\init.ps1 : A parameter cannot be found that matches parameter name 'AllowPrerelease'.
At line:1 char:72

  • ... censeXmlPath ".\license.xml" -AdminPassword "b"
  •                                                 ~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [init.ps1], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,init.ps1

Possible Fix

Remove the -AllowPrerelease from lines 49 and 51 of the script

Your Environment

  • Operating System and version (desktop or mobile): Windows 10 1903

Screenshots

image

MVP Application form step 1 - Blank MVP category

Description

Leaving category blank results in error

Expected behavior

Form validation message saying that the category is required

Steps To Reproduce

  1. Go to Application
  2. Leave category field blank
  3. Click on Next
  4. See error

Possible Fix

Enabling form validation?

Your Environment

https://mvp.sitecoredemo.com/Application
Microsoft Edge Version 95.0.1020.44 (Official build) (64-bit)
Windows 10

Screenshots

image

Unable to run the Azure DevOps pipeline: "An image does not exist locally with the tag" while pushing to ACR

Description

While importing the project in Azure DevOps is successful, the pipeline fails to run when pushing the built images to ACR in the build stage itself. This is the error message:

"C:\Program Files\Docker\docker.exe" push <acr_login_name>/mvp-cd:10.1.0-ltsc2019
The push refers to repository [<acr_login_name>/mvp-cd]
An image does not exist locally with the tag: <acr_login_name>/mvp-cd
##[error]The process 'C:\Program Files\Docker\docker.exe' failed with exit code 1
Finishing: Push Images with Latest Tag

Expected behaviour

I'm running the project in Azure DevOps and the pipeline should execute successfully without any errors

Steps To Reproduce

  1. Import the project in Azure DevOps
  2. Populate the environment variables as needed which includes the Azure subscription service endpoint, the ACR endpoints amongst others
  3. Run the pipeline and it fails when pushing the images to ACR

Possible Fix

It seems to me that the images are not being tagged to properly push them to ACR. They should be tagged as follows:
<acr_login_name>/mvp-cd (the same for others)

Your Environment

  • Azure Devops

Screenshots

Screenshot 2021-06-04 at 5 09 02 PM

Screenshot 2021-06-04 at 5 09 11 PM

Service 'solutionBuildOutput' failed to build : Build failed

Description

Running into error as shown below while running up.ps1 script for MVPSite spin-up with docker images for the first time
Error message is below. Also attached screenshot for reference
"Step 14/20 : RUN nuget restore -Verbosity quiet
---> Running in f8125196c5f2

MsBuild timeout out while trying to get project to project references.
The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; nuget restore -Verbosity quiet' returned a non-zero code: 1
ERROR: Service 'solutionBuildOutput' failed to build : Build failed
Waiting for CM to become available...
Invoke-RestMethod : Unable to connect to the remote server
At C:\Dev\MVP-Site\up.ps1:26 char:19

  • ... $status = Invoke-RestMethod "http://localhost:8079/api/http/routers ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand"

Expected behavior

Docker images should spin up with MVP site

Steps To Reproduce

  1. Ran init.ps1 script
  2. Running up.ps1 script

Possible Fix

Your Environment

  • Browser Name and version:
  • Operating System and version (desktop or mobile): Win 10 Pro, Version : 21H1, Ram : 16 GB (desktop)
  • Docker Version: v20.10.7

Screenshots

image

Docker compose failing with devex-mvp-preview network defined

I am running the new DevEx setup simultaneously with this project (for now).

This project has a devex-mvp-preview network defined in its compose file. However, by default the new DevEx has "nat" defined as it's external network, therefore not creating the "devex-mvp-preview" network that this project's compose file tries to attached itself to.

When trying to run this project by either the compose file or the PS script, both ways it fails on the absence of the network.

So I was wondering what the reason is for defining the "devex-mvp-preview" network in the compose file? I get that we can't (or want) to run another instance of traefik if its already running and the PS file comes in handy for that, but I couldn't figure out why the network name has been set to devex-mvp-preview.

Apart from this, when I set the network to "nat" it works like a charm!

No validation of javascript or HTML injection

Description

Text fields are not checking for stripping out HTML or JavaScript. I was able to put in several values that were saved without any errors or stripping. I am not sure if it is being encoded/decoded, but this is usually considered an attack vector. I cannot see what is stored on the backend right now, but that should be checked to see what impact it has on the editor instance, and also what impact it would have to the display version of the application.

Expected behavior

JavaScript and HTML should not be accepted or should be stripped before saving to the database.

Steps To Reproduce

  1. Go to /Application
  2. Advance to the Socials stage
  3. Enter JavaScript value into the Github field. Ex: javascript:alert('Yolo!');
  4. Enter HTML into the Twitter field. Ex:<iframe src="https://twitter.com/StCyrThoughts">This should be fun</iframe>
  5. Press 'Next' button to advance
  6. No validation is done, values appear to be saved

Screenshots

image

Search page should populate title from Sitecore

Is your feature request related to a problem? Please describe.

Title of the page should come from Sitecore

Describe the solution you'd like

Populate


and


from the Sitecore item /sitecore/content/MvpSite/Home/Search "Page Components"

docker.errors.DockerException: Error while fetching server API version:

Description

docker.errors.DockerException: Error while fetching server API version: (2, 'CreateFile', 'The system cannot find the file specified.')
[26416] Failed to execute script docker-compose

Expected behavior

I am creating a POC and expect to install sitcore MVP-Site in my local development machine.

Steps To Reproduce

  1. From PShell execute the .\up.ps1
  2. Error # 1 : docker.errors.DockerException: Error while fetching server API version: (2, 'CreateFile', 'The system cannot find the file specified.')
    [12276] Failed to execute script docker-compose
    Write-Error: Container build failed, see errors above.
    Error # 2 : docker.errors.DockerException: Error while fetching server API version: (2, 'CreateFile', 'The system cannot find the file specified.')
    [26416] Failed to execute script docker-compose
    Waiting for CM to become available...
    Invoke-RestMethod: C:\ResourceFiles\3Chillies\DockerSitecore\MVP-Site-master\up.ps1:26:19

Your Environment

Following are my machine details:
.NET Framework version = 4.8.4084.0
Powershell version = 7.1.3
Windows 10 = Pro
System Type =64-bit x64-based processor
Net.SecurityProtocolType = SystemDefault Ssl3 Tls Tls11 Tls12 Tls13

Screenshots

image

image

Ensure UseHttpsRedirection ignores /healthz route

Currently the UseHttpsRedirection middleware is causing the /healthz route used for liveness probes v in k8s to fail.

We need to ensure that the /healthz route is ignored by the UseHttpsRedirection middleware.

Cannot create container for service id: create .: volume name is too short, names should be at least two alphanumeric characters

Description

Getting bellow error while firing \up.ps1

Starting mvp-site_mssql_1 ... done
Creating mvp-site_cd_1 ... error
Creating mvp-site_id_1 ...

Creating mvp-site_id_1 ... error

ERROR: for mvp-site_id_1 Cannot create container for service id: create .: volume name is too short, names should be at least two alphanumeric characters

ERROR: for cd Cannot create container for service cd: create .: volume name is too short, names should be at least two alphanumeric characters

ERROR: for id Cannot create container for service id: create .: volume name is too short, names should be at least two alphanumeric characters
ERROR: Encountered errors while bringing up the project.
Waiting for CM to become available...
Invoke-RestMethod : Unable to connect to the remote server
At C:\Solutions\MVP-Site\up.ps1:26 char:19

  • ... $status = Invoke-RestMethod "http://localhost:8079/api/http/routers ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

Expected behavior

for cd Cannot create container for service cd: create .: volume name is too short, names should be at least two alphanumeric characters.

Steps To Reproduce

  1. Fire \up.ps1

Possible Fix

Your Environment

  • Browser Name and version:
  • Operating System and version (desktop or mobile): Win 10 XP Pro
  • Docker Version: Latest

Screenshots

image

Search page has too many apostrophes

Description

On the MVP search page (/Search) the title reads Sitecore MVP's'. In this case, there should be only one at most, but likely none as to pluralize you would write it as MVPs (since this is not a possessive usage).

Expected behavior

In this case, there should be only one apostrophe at most, but likely none as to pluralize you would write it as MVPs (since this is not a possessive usage).

Steps To Reproduce

  1. Go to '/Search' by clicking on the Search link in the header
  2. See title of the page

Possible Fix

This should likely be a content change, no code fix required

Your Environment

  • Browser Name and version: Chrome 95..4638.69
  • Operating System and version (desktop or mobile): Windows 10 Enterprise Version 10.0.18363 Build 18363
  • Docker Version:

Invoke-RestMethod : Unable to connect to the remote server

Description

ERROR: for solr-init Container "7d4209d666c7" is unhealthy.
ERROR: Encountered errors while bringing up the project.
Waiting for CM to become available...
Invoke-RestMethod : Unable to connect to the remote server
At C:\GIT\3c_vso\twobirds\mainsite_rebuild\docker\up.ps1:50 char:19

  • ... $status = Invoke-RestMethod "http://localhost:8079/api/http/routers ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

Expected behavior

I was not able to complete my installation.

Steps To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Possible Fix

Your Environment

  • Browser Name and version:
  • Operating System and version (desktop or mobile):
  • Docker Version:

Screenshots

image

RequestEntityTooLarge

When i try to serialize sitecore items using sitecore-cli i get below error. could you please help?

Unexpected HttpResponseMessage with code: RequestEntityTooLarge

image

Preferred Name field should not be displayed as 'required'

Description

On the Personal Information form in the application process, the Preferred Name field has an asterisk (*) next to the field label. This indicates to the user that it is required, but many MVP applications will not have a preferred name that is different from their official name.

Expected behavior

The Preferred Name field should not be required, and the label should not have an asterisk indicating that it is required. (Note that it currently doesn't do any validation on the field, but that's a different bug: #104)

Steps To Reproduce

  1. Go to '/Application'
  2. Advance your application to the Personal stage
  3. Note that the Preferred Name field label reads Preferred Name: *

Possible Fix

Remove the * from the field label

Your Environment

  • Browser Name and version: Chrome
  • Operating System and version (desktop or mobile): Desktop
  • Docker Version: N/A

Set up redirects for the MVP lists

Dropdown list for country includes both United States and USA

Description

The dropdown list for "Country/Region/Territory" on Step 3 "Personal" includes values for both "United States" and "USA" which is redundant.

Expected behavior

Only one of "United States" or "USA" should appear

Steps To Reproduce

  1. Go to Step 3 "Personal"
  2. Click on "Country/Region/Territory" dropdown
  3. Scroll down to "United States"
  4. See "United States" with "USA" right below it.

Possible Fix

Remove the "USA" option and normalize previous submissions to use "United States" where "USA" was used.

Your Environment

  • Browser Name and version: Edge 97
  • Operating System and version (desktop or mobile): Windows 11 desktop
  • Docker Version: N/A

Screenshots

image

Selecting Empty MVP Category throws error

Description

When selecting no category (default drop-down option) an error is shown on the screen in an alert popup:

"An error occured while saving your application. Please contact Sitecore Support"

(As a note: 'occured' is a typo and should be spelled 'occurred')

I ran into this when purposefully trying to break it by selecting something, proceeding to the next step, then coming back and attempting to clear it out. I have not tested a flow where I select nothing initially.

Expected behavior

I would expect that if the data model requires a value that the form is set to require the field entry and does not allow the user to proceed (or attempt a save of the form) with an empty value.

Steps To Reproduce

  1. Go to your application (/Application)
  2. Make sure to agree to marketing messaging on the Welcome step
  3. On the 'Category' step, select a category (any value)
  4. Press "Next" to proceed to the Personal stage
  5. Press "Previous" to return to the Category stage
  6. Change the drop-down to the empty 'default' select option in the drop-down.
  7. Press the "Next" button. Error displays.

Possible Fix

I would suggest doing a validation on the drop-down to ensure a value is selected.

Your Environment

  • Browser Name and version: Chrome
  • Operating System and version (desktop or mobile): Desktop
  • Docker Version: N/A

Screenshots

image

'Required' fields on Personal Information form are not validated

Description

Currently, when submitting the Personal Information form, you are allowed to advance even if you do not provide a value for Official First Name, Official Last Name, Preferred Name, Company Name and Mentor, even though the labels for these have an asterisk indicating they are required fields.

Expected behavior

Any field that displays with an asterisk in the field label should have an associated validator that stops the form submission and informs you that the field is required. This should also block it if a 'whitespace-only' value (like a space) is provided.

Steps To Reproduce

  1. Go to /Application
  2. Advance your form to the Personal stage
  3. Ensure that Preferred Name, Company Name, and Mentor have no values.
  4. Press the "Next" button.
  5. The form will advance to the Objectives stage

NOTE: I later tested removing values for official first name, and the same thing happened. Seems to be a form-wide issue of no validation.

Possible Fix

Field validation should be added to ensure empty values are checked for on mandatory fields.

Screenshots

image

Mentor field should not be displayed as 'required'

Description

On the Personal Information form in the application process, the Mentor field has an asterisk (*) next to the field label. This indicates to the user that it is required, but many MVP applications will not have a Mentor.

Expected behavior

The Mentor field should not be required, and the label should not have an asterisk indicating that it is required. (Note that it currently doesn't do any validation on the field, but that's a different bug)

Steps To Reproduce

  1. Go to '/Application'
  2. Advance your application to the Personal stage
  3. Note that the Mentor field label reads Mentor: *

Possible Fix

Remove the * from the field label

Your Environment

  • Browser Name and version: Chrome
  • Operating System and version (desktop or mobile): Desktop
  • Docker Version: N/A

Screenshots

image

Searching for a specific user with first and last name still returns multiple results

Description

I am searching for a specific user with the first name and last name.

Expected behavior

When I am providing specific search parameters, it should return only the person matching the complete search result.

Steps To Reproduce

  1. Go to 'https://mvp.sitecore.com/Directory'
  2. From the searchbox,, search for any MVP example - Maulik, you will find 2 results.
  3. Now search with full name, First name and last name example - Maulik darji. This should give me a single result.
  4. But, It is showing results for 2 Maulik.

Link - https://mvp.sitecore.com/Directory?q=john%20west should return only John west but it shows 9 different persons.

Screenshots

Enter key does not submit search

Description

On the /Search page, hitting "Enter" while focused in the search box does not submit the search.

Expected behavior

While typing in your search keywords, if Enter is pressed, I would expect the search to submit and results to be shown.

Steps To Reproduce

  1. Go to '/Search' by clicking the Search option in the menu
  2. Type in the search box 'aaron'
  3. Hit the 'enter' or 'return' key on your keyboard
  4. Results are not updated

Possible Fix

My guess is that the search keyword box needs to be set as a default form for the page?

Your Environment

  • Browser Name and version: Chrome 95..4638.69
  • Operating System and version (desktop or mobile): Windows 10 Enterprise Version 10.0.18363 Build 18363
  • Docker Version:

No form validation on MVP application form

Description

With the exception of the Confirmation and Submission page there seems to be no form validation on any of the form fields. I am able to go through all steps without entering anything in the form fields. Might be related to #96

Expected behavior

Fields that are required (marked with a *) should either give a message or have some visual reminder that those are required when navigation through all the steps.

Steps To Reproduce

  1. Go to MVP application
  2. Select category
  3. Click on Next (2x)
  4. No form field validation, next step is loaded

Possible Fix

Your Environment

https://mvp.sitecoredemo.com/Application
Microsoft Edge Version 95.0.1020.44 (Official build) (64-bit)
Windows 10

Create Robots.txt

Robots.txt needs creating to control what pages are/aren't indexed.

Add approval gate for Production deployment

Currently deployment to both staging and production is automated.

We need to add an approval gate so that production deployment requires manual approval once staging has been tested.

Placeholder text for Mentor field has a typo

Description

On the Personal stage, there is a field for Mentor. The placeholder text reads "mentore". This appears to be a typo.

Expected behavior

I would expect this to say something like "mentor name" or "mentor's full name"

Steps To Reproduce

  1. Go to '/Application'
  2. Process your application to the Personal stage
  3. On the Personal Information form, ensure the Mentor field is 'empty' so that placeholder text displays.

Possible Fix

mentor name as a replacement text could work.

Your Environment

  • Browser Name and version: Chrome
  • Operating System and version (desktop or mobile): Desktop
  • Docker Version: N/A

Screenshots

image

CreateAKS.ps1 Script Fails to Execute

Description

When running file CreateAKS.ps1 I get the following error:
BadRequestError: Operation failed with status: 'Bad Request'. Details: Kubernetes Dashboard addon is deprecated for Kubernetes version >= 1.19.0.

Expected behavior

Running this powershell script should not yield errors.

Steps To Reproduce

pwsh CreateAKS.ps1 -Region eastus -ResourceGroup sitecore -AksName sitecore -AcrName sitecoremvpdemo -AzureWindowsPassword XXXXXXXXXX

Add Moosend tracking to the MVP site

Describe the solution you'd like

Please add the following code to the <head> section on the Page Layout

<script>
//load TrackerJS
!function(t,n,e,o,a){function d(t){var n=~~(Date.now()/3e5),o=document.createElement(e);o.async=!0,o.src=t+"?ts="+n;var a=document.getElementsByTagName(e)[0];a.parentNode.insertBefore(o,a)}t.MooTrackerObject=a,t[a]=t[a]||function(){return t[a].q?void t[a].q.push(arguments):void(t[a].q=[arguments])},window.attachEvent?window.attachEvent("onload",d.bind(this,o)):window.addEventListener("load",d.bind(this,o),!1)}(window,document,"script","//cdn.stat-track.com/statics/moosend-tracking.min.js","mootrack");
//tracker has to be initialized otherwise it will generate warnings and won't send tracking events
mootrack('init', 'cf07140d1fcb4286a78a45e159113f28');
// track a view of the current page
mootrack('trackPageView');
</script>

CoreContainer is either not initialized or shutting down

Hello Eveyone,
I am getting below error , when I start the docker command docker-compose up.

2021-08-23 07:01:23.664 ERROR (qtp1629687658-22) [ ] o.a.s.s.SolrDispatchFilter Error processing the request. CoreContainer is either not initialized or shutting down.

2021-08-23 07:01:23.664 WARN (qtp1629687658-22) [ ] o.e.j.s.HttpChannel /solr/admin/info/system => javax.servlet.ServletException: javax.servlet.UnavailableException: Error processing the request. CoreContainer is either not initialized or shutting down.

at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:168)

javax.servlet.ServletException: javax.servlet.UnavailableException: Error processing the request. CoreContainer is either not initialized or shutting down.

at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:168) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335) ~[jetty-rewrite-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.Server.handle(Server.java:505) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) ~[jetty-io-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[jetty-io-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) ~[jetty-io-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) ~[jetty-util-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) ~[jetty-util-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) ~[jetty-util-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) ~[jetty-util-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) ~[jetty-util-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:781) ~[jetty-util-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:917) ~[jetty-util-9.4.19.v20190610.jar:9.4.19.v20190610]

at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]

Caused by: javax.servlet.UnavailableException: Error processing the request. CoreContainer is either not initialized or shutting down.

at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:370) ~[?:?]

at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:351) ~[?:?]

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602) ~[jetty-servlet-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540) ~[jetty-servlet-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) ~[jetty-security-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1711) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1347) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480) ~[jetty-servlet-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1678) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1249) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:152) ~[jetty-server-9.4.19.v20190610.jar:9.4.19.v20190610]

Solution does not illustrate how to overwrite hostName or targetHostName in config files.

Is your feature request related to a problem? Please describe.

I don't understand how to configure a site's properties such as hostName, targetHostname, or database on a per-environment basis while using AKS.

Describe the solution you'd like

I would like this solution to illustrate or explain how this is done.

Additional information

I apologize if this is in the repo, but I've looked and I don't see it.

A hostname of "mvp-cm.sc.localhost" is hardcoded into App_Config/Include/Project.MvpSite.config. This file is baked into the resulting CM and CD container images. I do not see anything in the build process that would change this for a release build, and I do not see anything configured to pump this in as an environment variable.

How do you take the resulting images and use them in an AKS environment as opposed to a local docker one? What are the options for handling this in the real world?

I understand this may not strictly be necessary for the MVP Site itself, but it would be nice if one of the examples addressed this topic.

No length validation on text fields

Description

On the Socials stage of the Application, I put in a value for Stack Exchange that was over 1 million characters. Not only was it not validated, it also seems to have saved correctly. This seems like an easy attack vector for somebody to overflow storage or raise storage billing by dropping in high-volume text directly into the database.

Expected behavior

Fields should have character length requirements and should be validated on the form client-side and server-side. Form should not advance and save extremely large values.

Steps To Reproduce

  1. Go to '/Application'
  2. Advance to a stage with a text field. I used Stack Exchange field on the Socials stage
  3. Create an incredibly large value in something like Notepad++
  4. Copy to the field.
  5. Advance the form.
  6. No error is shown, advances correctly.
  7. Return back to the stage.
  8. Value seems to be stored. Copy/pasting out to Notepad++ shows full value, not trimmed value.

Possible Fix

Field validator for length, along with updates to the labels to indicate limits to the user.

Add example Azure Devops Variables to repo

Is your feature request related to a problem? Please describe.

When reading the file: https://github.com/Sitecore/MVP-Site/blob/master/docker/azure-pipelines.yml, I see many references to variables that are not maintained in code. I would like to deploy this MVP site to learn but am not able to because I don't have examples to follow for how to set up my Azure Devops account that meets the pipeline requirements.

Example of variables being referenced:

  • DOCKER_COMPOSE_ARGS
  • SITECORE_PUBLIC_NUGET_FEED
  • AZURE_SUBSCRIPTION
  • AKS_SERVICE_ENDPOINT

Even if working values for each are not able to be provided, a single file that has all the variables needed with placeholder or example fake values, would be great.

Describe the solution you'd like

Include a azure-variables.yml file along with the azure-pipeline.yml file

Describe alternatives you've considered

Additional information

Community Profiles checkbox is not validated

Description

The checkbox label on the Community Profiles stage reads: By providing the above information I understand and agree that my community contribution via the above channels may be shared with Sitecore Feeds, SitecoreLink, and other Sitecore Community projects.

This implies that a user must accept this in order to proceed. Proceeding forward does not block it, and changing stages changes the text to 'green' (which implies that I have accepted it or that this is a good state).

Also, the text reads as if the providing of the information is the agreement, not clicking the checkbox. Is the checkbox necessary at all? Or is it optional and somebody can opt out? If the latter, then the text needs to be updated.

Expected behavior

This should be validated that it has been selected, if it is mandatory.
If it is not mandatory and an applicant can opt out, then the text should be updated to reflect that "By clicking on this checkbox, I agree that my community contributions...".

Steps To Reproduce

  1. Go to /Application
  2. Advance your application to the Socials stage
  3. Press 'Previous' to return to the previous step (Objectives)
  4. Press 'Next' to return to the 'Socials' stage
  5. The checkbox label will display in green.
  6. Press "Next" to advance
  7. No validation is done of the checkbox

Screenshots

image

Error ID_SERVER_URL Logging into ID Server Error discovering identity provider. Perhaps the authority hostname, https://mvp-id.sc.localhost/, is not valid or it is not serving OpenID metadata (/.well-known/openid-configuration). Push Content

Hi Team,

@robearlam @KoenHeye @markvanaalst @GuidovTricht @jst-cyr @GuidovTricht @jbluemink @navancommits

Please help us to complete Sitecore deployment in AKS.

We need few clarification on Sitecore-AKS-CICD azurepipline.yaml file

As per my knowledge, we don't need to do any Sitecore setup in azure portal. Please correct me if I am wrong .

https://github.com/Sitecore/MVP-Site

we are using free trial subscription for azure portal.we have configured new resources group ACR & AKS in Azure portal

We have used docker/Azurepipline.yaml file to build and deploy in AKS.

fyi. we don't know the value for docker compose file args, so we removed this line dockerComposeFileArgs: '$(DOCKER_COMPOSE_ARGS)' in docker build and push task

Stage 1
CI Build - We are able to build and push image successful

Stage 2
CD Deploy - we are able to deploy successful with below value

1st Deploy application specification (DAS) task failed in deploy stage so I have added below value in Azure build variable after adding value task (DAS) is successful
but I am not sure the below value is right r wrong ? please conform the value.

STAGING_CD_HOST = mvp-cd.sc.localhost ?
STAGING_CM_HOST = mvp-cm.sc.localhost ?
STAGING_HOST = mvp.sc.localhost ?
STAGING_ID_HOST = mvp-id.sc.localhost ?

Stage 3
'Deserialize_Content_to_Staging'
Here we able Install Sitecore CLI

After installation we need to Authenticate the ID, here it's failing due to wrong URL and secret.
Below value we have added in build pipeline please let us know exact value for this its will help for us.

CM_URL = https://mvp-cm.sc.localhost/sitecore/login ???
ID_SERVER_URL = https://mvp-id.sc.localhost ???
SITECORE_MVP_IDENTITY_SECRET = Siteconidentityserver.MVP.local ???

Error
Logging into ID Server
Error discovering identity provider. Perhaps the authority hostname, https://mvp-id.sc.localhost/, is not valid or it is not serving OpenID metadata (/.well-known/openid-configuration).
Push Content
Environment default was not defined. Use the login command to define it

Please find the attachment for Build Log.
logs_338.zip

Many Thanks

Add a Country Facet

Is your feature request related to a problem? Please describe.

Can't filter the list by country

Describe the solution you'd like

Add a country facet in the searchable dropdown component to the left pane, so the user can either pick the country from the list or start typing with a real-time list filter.

Remove Customer Core Profile from the Application form

Description

Customer Core has been closed unfortunately.

Expected behavior

There should be no Customer Core Profile for anyone, so shoul d not ask for that.

Possible Fix

Please remove the Customer Core Profile field from the Form.

Green check marks being displayed next to empty fields on Objectives stage

Description

After stepping through the Application form to the Socials stage, I went back and noticed a green checkmark next to empty fields on the Objectives stage that I do not believe were there the first time through the form.

Expected behavior

The green checkmark should be obvious as to what it indicates, and if indicating a 'saved value' should not be used when no value has been provided.

Steps To Reproduce

  1. Go to '/Application'
  2. Advance your form to the Socials stage without entering any new values on Personal/Objectives stages
  3. Press 'Previous' to go back to Objectives stage
  4. Green checkmarks are shown.

Your Environment

  • Browser Name and version: Chrome
  • Operating System and version (desktop or mobile): Desktop
  • Docker Version: N/A

Screenshots

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.