-
Bug
-
Resolution: Fixed
-
Low
-
5.1.0, 5.0.5
-
None
-
Severity 2 - Major
-
Summary
Configuring syntax highlighting for custom file extensions does not take effect
Steps to Reproduce
- In bitbucket.properties add an entry for extension e.g. for .csproj syntax.highlighter.application/xml.extensions=csproj
- Restart Bitbucket server
- Add a file with .csproj extension and some XML content
- Browse the file
Expected Results
Content is highlighted as https://codemirror.net/mode/xml/index.html
Actual Results
Content is not highlighted
Note: This issue has also been seen to affect standard file extension detection, where the wrong syntax highlighting may be seen to be applied to standard file extensions (e.g. Objective-C may have Mathematica highlighting incorrectly applied)
- is duplicated by
-
BSERV-10054 BitBucket server: configuration of syntax highlighting for file extensions not working
- Closed
- mentioned in
-
Page Failed to load
[BSERV-9915] Configuring syntax highlighting for custom file extensions not working
Workflow | Original: Stash Workflow - Restricted [ 2407044 ] | New: JAC Bug Workflow v3 [ 3135269 ] |
Symptom Severity | Original: Major [ 14431 ] | New: Severity 2 - Major [ 15831 ] |
Assignee | Original: Kristy [ khughes@atlassian.com ] | New: Paul Thompson [ pathompson ] |
Assignee | Original: Paul Thompson [ pathompson ] | New: Kristy [ khughes@atlassian.com ] |
Description |
Original:
h3. Summary
Configuring syntax highlighting for custom file extensions does not take effect h3. Steps to Reproduce # In {{bitbucket.properties}} add an entry for extension e.g. for .csproj {{syntax.highlighter.application/xml.extensions=csproj}} # Restart Bitbucket server # Add a file with .csproj extension and some XML content # Browse the file h3. Expected Results Content is highlighted as https://codemirror.net/mode/xml/index.html h3. Actual Results Content is not highlighted Note: This issue has also been seen to affect standard file extension detection, where the wrong syntax highlighting may be seen to be applied. |
New:
h3. Summary
Configuring syntax highlighting for custom file extensions does not take effect h3. Steps to Reproduce # In {{bitbucket.properties}} add an entry for extension e.g. for .csproj {{syntax.highlighter.application/xml.extensions=csproj}} # Restart Bitbucket server # Add a file with .csproj extension and some XML content # Browse the file h3. Expected Results Content is highlighted as https://codemirror.net/mode/xml/index.html h3. Actual Results Content is not highlighted ---- Note: This issue has also been seen to affect standard file extension detection, where the wrong syntax highlighting may be seen to be applied to standard file extensions (e.g. Objective-C may have Mathematica highlighting incorrectly applied) |
Description |
Original:
h3. Summary
Configuring syntax highlighting for custom file extensions does not take effect h3. Steps to Reproduce # In {{bitbucket.properties}} add an entry for extension e.g. for .csproj {{syntax.highlighter.application/xml.extensions=csproj}} # Restart Bitbucket server # Add a file with .csproj extension and some XML content # Browse the file h3. Expected Results Content is highlighted as https://codemirror.net/mode/xml/index.html h3. Actual Results Content is not highlighted |
New:
h3. Summary
Configuring syntax highlighting for custom file extensions does not take effect h3. Steps to Reproduce # In {{bitbucket.properties}} add an entry for extension e.g. for .csproj {{syntax.highlighter.application/xml.extensions=csproj}} # Restart Bitbucket server # Add a file with .csproj extension and some XML content # Browse the file h3. Expected Results Content is highlighted as https://codemirror.net/mode/xml/index.html h3. Actual Results Content is not highlighted Note: This issue has also been seen to affect standard file extension detection, where the wrong syntax highlighting may be seen to be applied. |
Link |
New:
This issue is duplicated by |
Remote Link | Original: This issue links to "Page (Extranet)" [ 313808 ] |
Remote Link | New: This issue links to "Page (Extranet)" [ 313808 ] |
Fix Version/s | New: 5.3.0 [ 72810 ] | |
Fix Version/s | New: 5.0.7 [ 73054 ] | |
Fix Version/s | New: 5.1.5 [ 73055 ] | |
Fix Version/s | New: 5.2.3 [ 73056 ] | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: To be reviewed [ 10026 ] | New: Closed [ 6 ] |