View Issue Details

IDProjectCategoryView StatusLast Update
0002964SkyChart1-Softwarepublic26-11-27 13:20
ReporterThierry Assigned ToPatrick Chevalley  
PrioritynormalSeveritymajorReproducibilityalways
Status assignedResolutionopen 
PlatformPCOSWindows 11 ProOS Version26H2
Summary0002964: Invalid Windows file URI generated in SAMP messages
DescriptionWhen SkyChart sends a VOTable to TOPCAT via SAMP on Windows, the generated file URL contains Windows backslashes.

TOPCAT reports the following error:

`java.net.MalformedURLException: Bad URI: file://C:\Users\Thierry Rahou\AppData\Local\Skychart\vo\vo_samp_B_vsx_vsx.xml`

The backslashes make the file URI non-conformant to URI syntax (RFC 3986).

This prevents TOPCAT from loading the VOTable sent by SkyChart.

The issue was identified and discussed with Mark Taylor (TOPCAT developer), who recommended reporting it as a SkyChart bug.
Additional InformationSkyChart version 4.2.1, running on Windows 11 Pro 26H2 (64-bit)
TagsNo tags attached.

Activities

Patrick Chevalley

26-11-23 17:58

administrator   ~0009993

Thank you, I better understand now than with the previous message.
I never remark the problem because on Linux it use the right path character, and probably not many people send data back from Skychart to Topcat.

I fix it but I need your confirmation because I cannot test on Windows right now.
Please install the test version 4.3-5060 from https://vega.ap-i.net/pub/skychart/daily_build/ and report here how it work, because I am still not sure about the C:

The change: https://github.com/pchev/skychart/commit/c05de8eefa123860ce3358e6391a7111e12beb8d

Thierry

26-11-23 21:14

reporter   ~0009994

Hello Patrick,

Thank you for your fix and your follow-up.

The tests have isolated the problem:

- SkyChart → Aladin: sending an individual object works correctly.
- SkyChart → TOPCAT/Aladin: sending a complete VOTable does not work.

The SAMP connection itself is operational. The problem concerns the transmission of catalogue tables.

We have therefore confirmed that the issue is specifically related to table transfer, not to SAMP communication in general.

The problem still occurs with SkyChart 4.3-5060. Sending an individual object from SkyChart to Aladin works correctly, but sending a complete VOTable still fails.

Unfortunately, I cannot attach screenshots to this Mantis report.

Best regards,
Thierry
SAMP SkyChart-Aladin.png (154,512 bytes)   
SAMP SkyChart-Aladin.png (154,512 bytes)   

Patrick Chevalley

26-11-24 11:03

administrator   ~0009995

OK, so probably because of the drive letter, it is weird we still use this DOS path...

I make a change for that, please try the version 4.3-5061 : https://vega.ap-i.net/pub/skychart/daily_build/

Thierry

26-11-24 12:08

reporter   ~0009996

Hello Patrick,

Thank you for your proposed fix and for your follow-up.

I have tested the corrected version 4.3-5060 on Windows 11.

Unfortunately, the VOTable transfer problem still occurs.

The TOPCAT log reports the following error when SkyChart attempts to send a VOTable:

**GCVS catalogue:**
```text
WARNING: Notify handler failed table.load.votable
java.net.MalformedURLException: Bad URI:
file://C:/Users/Thierry Rahou/AppData/Local/Skychart/vo/vo_star_B_gcvs_gcvs_cat.xml
```

**VSX catalogue:**
```text
WARNING: Notify handler failed table.load.votable
java.net.MalformedURLException: Bad URI:
file://C:/Users/Thierry Rahou/AppData/Local/Skychart/vo/vo_samp_B_vsx_vsx.xml
```

The backslashes have been replaced with forward slashes, but the generated file URI is still rejected by TOPCAT.

The problem therefore persists with both the GCVS and VSX catalogues.

I am attaching screenshots showing the tests and the corresponding error messages.

The SAMP connection is operational. The issue remains specifically with VOTable transfer.

Thank you for your continued work on this issue.

Best regards,

Thierry
LOGS de Topcat.txt (1,135 bytes)   
LOGS de Topcat :

11:59  24/11/2026

4809: CONFIG: POST /xmlrpc-2 --> 200 OK (null.null)
4810: WARNING: Notify handler failed table.load.votable (null.null java.net.MalformedURLException: Bad URI: file://C:/Users/Thierry Rahou/AppData/Local/Skychart/vo/vo_samp_B_vsx_vsx.xml)
4811: CONFIG: POST /xmlrpc --> 200 OK (null.null)


4962: CONFIG: POST /xmlrpc-2 --> 200 OK (null.null)
4963: WARNING: Notify handler failed table.load.votable (null.null java.net.MalformedURLException: Bad URI: file://C:/Users/Thierry Rahou/AppData/Local/Skychart/vo/vo_star_B_gcvs_gcvs_cat.xml)
4964: CONFIG: POST /xmlrpc --> 200 OK (null.null)
4965: CONFIG: POST /xmlrpc --> 200 OK (null.null)
4966: CONFIG: POST /xmlrpc --> 200 OK (null.null)
4967: CONFIG: POST /xmlrpc-2 --> 200 OK (null.null)
4968: WARNING: Notify handler failed table.load.votable (null.null java.net.MalformedURLException: Bad URI: file://C:/Users/Thierry Rahou/AppData/Local/Skychart/vo/vo_star_B_gcvs_gcvs_cat.xml)
4969: CONFIG: POST /xmlrpc --> 200 OK (null.null)
4970: CONFIG: POST /xmlrpc --> 200 OK (null.null)
4971: CONFIG: POST /xmlrpc --> 200 OK (null.null)
LOGS de Topcat.txt (1,135 bytes)   
Transfert-voTable-Topcat.png (238,161 bytes)   
Transfert-voTable-Topcat.png (238,161 bytes)   
Transfert-voTable-Aladin.png (233,302 bytes)   
Transfert-voTable-Aladin.png (233,302 bytes)   

Patrick Chevalley

26-11-24 13:29

administrator   ~0009997

Yes, the version 4.3-5060 still has problem with the drive letter.
This is because "C:" do not start with a slash and is considered as a relative path in the URI.
It need to be modified to "∕C:", so "file:///C:" and this is what I change in version 4.3-5061 released today.

Please install the version 4.3-5061 : https://vega.ap-i.net/pub/skychart/daily_build/

Thierry

26-11-24 15:04

reporter   ~0009998

Hello Patrick,

I have tested the new version **SkyChart 4.3-5061** on Windows 11.

Unfortunately, the VOTable transfer to TOPCAT still fails.

The TOPCAT log reports the following error:

`java.net.MalformedURLException: Bad URI: file:///C:/Users/Thierry Rahou/AppData/Local/Skychart/vo/vo_samp_B_vsx_vsx.xml`

I also noticed additional XML-RPC errors:

`org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.`

I have attached the SkyChart Export-Logs file containing these results.

Thank you for your continued work on this issue.

Best regards,

Thierry
SkyChart-4.3-5061-windows-x64-Export-Logs.txt (1,079 bytes)   
Export-Logs

9030: CONFIG: POST /xmlrpc-2 --> 200 OK (null.null)
9031: WARNING: Notify handler failed table.load.votable (null.null java.net.MalformedURLException: Bad URI: file:///C:/Users/Thierry Rahou/AppData/Local/Skychart/vo/vo_samp_B_vsx_vsx.xml)
9032: CONFIG: POST /xmlrpc --> 200 OK (null.null)

9067: CONFIG: POST /xmlrpc-2 --> 200 OK (null.null)
9068: WARNING: Notify handler failed table.load.votable (null.null java.net.MalformedURLException: Bad URI: file:///C:/Users/Thierry Rahou/AppData/Local/Skychart/vo/vo_samp_B_vsx_vsx.xml)
9069: CONFIG: POST /xmlrpc --> 200 OK (null.null)

9100: INFO: XML-RPC fault return (null.null org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 360; The entity name must immediately follow the '&' in the entity reference.)
9101: CONFIG: POST /xmlrpc --> 200 OK (null.null)

9112: INFO: XML-RPC fault return (null.null org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 331; The entity name must immediately follow the '&' in the entity reference.)
9113: CONFIG: POST /xmlrpc --> 200 OK (null.null)

Patrick Chevalley

26-11-25 09:16

administrator   ~0009999

OK, now the problem is the space in the user name.
This is a good way to find bug, but you can avoid many problem by using a short name without space.
I manage to find a Windows computer to test, but using a name with a space the Topcat SAMP Hub refuse to start because of a problem with the lock file. I need to reassign the lock file out of the user home directory.

I make the change to encode the space and tested on Windows, so I am confident this time it work.
Please install the version 4.3-5062 : https://vega.ap-i.net/pub/skychart/daily_build/

Thierry

26-11-27 10:19

reporter   ~0010000

Bonjour Patrick,

J'ai remarqué la mise à disposition de la version **SkyChart 4.3-5064 Windows x64**, datée du 27 novembre 2026.

J'ai comparé rapidement son contenu avec celui de la build 4.3-5061. Les deux archives semblent très proches, avec notamment une légère différence de taille pour `skychart.exe`.

Pourriez-vous nous préciser les modifications apportées dans cette nouvelle build ?

- Quels correctifs ou nouvelles fonctionnalités ont été intégrés ?
- Y a-t-il des évolutions concernant le protocole SAMP ?
- La gestion des chemins et des données sous Windows a-t-elle été améliorée, notamment pour permettre une installation réellement portable, sans dispersion des données dans `AppData` ?

Merci d'avance pour ces précisions et pour votre travail sur SkyChart.

Bien cordialement.

Patrick Chevalley

26-11-27 13:20

administrator   ~0010001

Bonjour Thierry,

La version sur cette page est modifiée automatiquement tous les jours quand il y a une changement du code source.
Il y a un lien vers la liste des dernier changement: https://github.com/pchev/skychart/commits/master/

Par rapport a la 5061 il y a la correction indiquée dans mon message précédent qui corrige l'espace dans le nom d'utilisateur Windows. Est-ce que vous l'avez testée ?

Pour faire une installation portable sans utiliser AppData il faut suivre les instructions de cette page:
https://www.ap-i.net/skychart/fr/documentation/make_a_portable_installation
L'exemple est pour une clé USB, mais vous pouvez faire la même chose dans un dossier de C:.
Ça n'a pas changé depuis plus de 10 ans.

Issue History

Date Modified Username Field Change
26-11-23 14:23 Thierry New Issue
26-11-23 17:58 Patrick Chevalley Assigned To => Patrick Chevalley
26-11-23 17:58 Patrick Chevalley Status new => feedback
26-11-23 17:58 Patrick Chevalley Note Added: 0009993
26-11-23 21:14 Thierry Note Added: 0009994
26-11-23 21:14 Thierry File Added: UNIQUE constraint failed cdc_country.png
26-11-23 21:14 Thierry File Added: SAMP SkyChart-Aladin.png
26-11-23 21:14 Thierry File Added: Le transfert SkyChart- Aladin-TOPCAT rencontre une erreur de traitement XML.png
26-11-23 21:14 Thierry File Added: Le transfert SkyChart → TOPCAT rencontre une erreur lors du traitement XML.png
26-11-23 21:14 Thierry File Added: Le transfert SkyChart → Aladin rencontre une erreur lors du traitement XML.png
26-11-23 21:14 Thierry Status feedback => assigned
26-11-24 11:03 Patrick Chevalley Status assigned => feedback
26-11-24 11:03 Patrick Chevalley Note Added: 0009995
26-11-24 12:08 Thierry Note Added: 0009996
26-11-24 12:08 Thierry File Added: LOGS de Topcat.txt
26-11-24 12:08 Thierry File Added: Transfert-voTable-Topcat.png
26-11-24 12:08 Thierry File Added: Transfert-voTable-Aladin.png
26-11-24 12:08 Thierry Status feedback => assigned
26-11-24 13:29 Patrick Chevalley Note Added: 0009997
26-11-24 15:04 Thierry Note Added: 0009998
26-11-24 15:04 Thierry File Added: SkyChart-4.3-5061-windows-x64-Export-Logs.txt
26-11-25 09:16 Patrick Chevalley Note Added: 0009999
26-11-27 10:19 Thierry Note Added: 0010000
26-11-27 13:20 Patrick Chevalley Note Added: 0010001