An unescaped ampersand in project path
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Bắt đầu tại GetPowerMillParameterXML, đặc biệt là phần xử lý response ngay trước XmlDocument.LoadXml. Tái hiện trường hợp project_pathname(false) với dấu ampersand trong path được trả về, sau đó xác minh rằng XML kết quả được phân tích thành công mà không xảy ra XmlException.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
error inside:
public XmlDocument GetPowerMillParameterXML(string getParameterString)
{
var xmlResponse = new XmlDocument();
var response = _powerMILL.GetParameterXML(getParameterString);
if (string.IsNullOrWhiteSpace(response))
{
return null;
}
xmlResponse.LoadXml(response);
return xmlResponse;
}
getParameterString="project_pathname(false)"
print par $project_pathname(false) = X:/XXXXX/3723, TEST RIGS & MOCK-UPS/3723-5602,JIG,C CHANNEL
& - causes System.Xml.XmlException: An error occurred while parsing EntityName. Line 1, position 64.
================================================================
************** Exception Text **************
System.Xml.XmlException: An error occurred while parsing EntityName. Line 1, position 64.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseEntityName()
at System.Xml.XmlTextReaderImpl.ParseEntityReference()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at CallSite.Target(Closure , CallSite , XmlDocument , Object )
at Autodesk.ProductInterface.PowerMILL.PMAutomation.GetPowerMillParameterXML(String getParameterString)
at Autodesk.ProductInterface.PowerMILL.PMProject.get_Directory()
at PowerMill_Tools.Form1.btnReloadLists_Click(Object sender, EventArgs e) in \xxxx\Form1.vb:line 1278
================================================================
PS C:\Users\Artur.Boszczyk> [System.Reflection.Assembly]::GetAssembly([System.Xml.XmlDocument]).GetName().Version
Major Minor Build Revision
4 0 0 0
================================================================
Autodesk PowerMill Ultimate 2025
Version: 2025.0.1.2025012
Windows 11 25H2
- Ngôn ngữ chính
- C#
- Star
- 52
- Fork
- 50
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Autodesk/PowerShapeAndPowerMillAPI
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Autodesk/PowerShapeAndPowerMillAPI#34 · 3 bình luận ·
Tất cả issue của Autodesk/PowerShapeAndPowerMillAPI
Issue tương tự
-
CS0162 "Unreachable code detected" warning from a MSBuildTemp .tmp file in every game project Đang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
Type: enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
apache/arrow-adbc#4809 ·
-
type/automation type/tech-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
microsoft/vscode-azurefunctions#5197 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
microsoft/microsoft-ui-reactor#1274 ·