Skip to content

Bug report: spo theme list writes blank lines #2700

@pschaeflein

Description

@pschaeflein

Description

m365 spo theme list writes blank lines instead of theme information

Including the -o json parameter displays the theme information

Steps to reproduce

Ensure tenant has a custom theme

Run the command m365 spo theme list

Expected results

A list of installed themes

Actual results

image

Diagnostics

Executing command spo theme list with options {"options":{"debug":true}}
SPO URL previously retrieved https://dev.sharepoint.com. Returning...
Retrieving themes from tenant store...
Request:
{
"url": "https://dev-admin.sharepoint.com/_api/thememanager/GetTenantThemingOptions",
"method": "post",
"headers": {
"common": {
"Accept": "application/json, text/plain, /"
},
"delete": {},
"get": {},
"head": {},
"post": {
"Content-Type": "application/x-www-form-urlencoded"
},
"put": {
"Content-Type": "application/x-www-form-urlencoded"
},
"patch": {
"Content-Type": "application/x-www-form-urlencoded"
},
"user-agent": "NONISV|SharePointPnP|CLIMicrosoft365/3.13.0",
"accept-encoding": "gzip, deflate",
"accept": "application/json;odata=nometadata",
"authorization": "Bearer ey..."
},
"responseType": "json",
"decompress": true
}
Response:
{
"status": 200,
"statusText": "OK",
"headers": {
"cache-control": "private, max-age=0",
"transfer-encoding": "chunked",
"content-type": "application/json;odata=nometadata;streaming=true;charset=utf-8",
"expires": "Thu, 26 Aug 2021 20:26:06 GMT",
"last-modified": "Fri, 10 Sep 2021 20:26:06 GMT",
"vary": "Origin,Accept-Encoding",
"p3p": "CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"",
"x-sharepointhealthscore": "1",
"x-sp-serverstate": "ReadOnly=0",
"dataserviceversion": "3.0",
"spclientservicerequestduration": "74",
"x-aspnet-version": "4.0.30319",
"sprequestguid": "0639ee9f-900a-1000-1516-3464ec1b4c6b",
"request-id": "0639ee9f-900a-1000-1516-3464ec1b4c6b",
"ms-cv": "n+45BgqQABAVFjRk7BtMaw.0",
"strict-transport-security": "max-age=31536000",
"x-frame-options": "SAMEORIGIN",
"content-security-policy": "frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com *.skype.com *.teams.microsoft.us local.teams.office.com *.powerapps.com *.yammer.com *.officeapps.live.com *.office.com *.stream.azure-test.net *.microsoftstream.com;",
"x-powered-by": "ASP.NET",
"microsoftsharepointteamservices": "16.0.0.21625",
"x-content-type-options": "nosniff",
"x-ms-invokeapp": "1; RequireReadOnly",
"x-cache": "CONFIG_NOCACHE",
"x-msedge-ref": "Ref A: DFC2A2F08E4744729D95B44677239F73 Ref B: CH1EDGE1006 Ref C: 2021-09-10T20:26:06Z",
"date": "Fri, 10 Sep 2021 20:26:06 GMT",
"connection": "close"
},
"data": {
"hideDefaultThemes": false,
"themePreviews": [
{
"name": "GraphCallGreenTheme",
"themeJson": "{"isInverted":false,"name":"GraphCallGreenTheme","palette":{"themeLight":"#bff7d5","themeTertiary":"#7aefa7","black":"#000000","neutralSecondary":"#666666","neutralTertiaryAlt":"#c8c8c8","themeSecondary":"#14a94e","themeDarker":"#094c23","primaryBackground":"#fff","neutralQuaternary":"#d0d0d0","neutralPrimaryAlt":"#3c3c3c","neutralPrimary":"#333","themeDark":"#0c602c","themeLighter":"#dffbea","neutralTertiary":"#a6a6a6","neutralQuaternaryAlt":"#dadada","themeLighterAlt":"#effdf4","white":"#fff","neutralSecondaryAlt":"#767676","neutralLighter":"#f4f4f4","neutralLight":"#eaeaea","neutralDark":"#212121","themeDarkAlt":"#0f7c39","neutralLighterAlt":"#f8f8f8","primaryText":"#333","themePrimary":"#10893e"}}"
}
]
}
}

CLI for Microsoft 365 version

3.13.0

nodejs version

14.17.3

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

My guess is that the default property name should be lower-cased.

public defaultProperties(): string[] | undefined {

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions