-
Notifications
You must be signed in to change notification settings - Fork 78
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
XMLNS URL For Salesforce Custom Tag Declarations Needs To Be Changed To 'https' #3148
Comments
Hello @Richman7 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. A few more things to check:
Thank you! |
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Below is the CLI version info, as requested. The CLI version is controlled by the client, so we are a few versions behind. However, I searched for similar issues, and was unable to locate any, so the version shouldn't have an impact until a fix is implemented.
|
Hello @Richman7 👋 It looks like you're using an outdated version of Salesforce CLI. Moving to After you move to the latest version of |
Adding version from another machine with the latest version, and confirmed that a retrieval of the CustomLabels metadata resulted in the same output as identified.
|
Hello @Richman7, this is not something that we will be able to correct. Even if we changed the url in the CLI generated files, the server will still create these files with the However, I believe this error you are seeing can be configured within the Redhat XML vscode extension with the following setting: |
I was sincerely hoping that disabling/bypassing validation is not the fix. Do you know what team in Salesforce is in charge of the functionality of generating the XML? I always assumed since the CLI can convert between mdapi and source, that it was the CLI doing this, but I'll gladly address this with the team that has direct control over this. |
Sorry I don't have a better answer for you. I don't know which team this would be. You are welcome to open a Salesforce Support Case to try to get redirected to them. If I had to guess, this will be a difficult thing to get changed since a URI to valid schema is not the goal of these namespaces
(source) |
Adding a potentially better solution to allowing the Redhat XML plugin in VS Code to validate against the Salesforce schema as available through the https variant of the namespace URI, instead of suppressing the validation. There are a few ways to go about this, but using a catalog file seemed to be the most consistent solution between a Mac and a Windows machine. See documentation for full details and alternate solutions. The catalog solution is a two-step process:
|
Very cool @Richman7, thank you for digging into this and providing a better workaround 💯 |
Everywhere Salesforce generates an XML file, the declaration of the parent custom tag is pointed at a URL that defines the declarations of these custom tags that (mostly?) doesn't include the 's'. The result is that XML tools (VS Code/XML plugin) cannot find the declarations, and raise an error. Here is an example from the CustomLabels xml file:
<CustomLabels xmlns="http://soap.sforce.com/2006/04/metadata">
When the URL is changed to https, it does successfully find the declarations:
<CustomLabels xmlns="https://soap.sforce.com/2006/04/metadata">
Suggested fix: Everywhere Salesforce generates XML files, ensure that the URL includes https.
The text was updated successfully, but these errors were encountered: