[Wapt] Mot de passe dépôt de model

Hubert TOUVET htouvet at tranquil.it
Wed Nov 4 17:15:04 CET 2015


C'est un bug dans la console.
Le wget qui est fait n'a pas le BasicAuth autorisé.
Correctif dans les versions >= 1.3.3

hash git 7db7692..780577c

  wapt-get/waptcommon.pas | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/wapt-get/waptcommon.pas b/wapt-get/waptcommon.pas
index 7e6c2ca..cf816f8 100644
--- a/wapt-get/waptcommon.pas
+++ b/wapt-get/waptcommon.pas
@@ -214,6 +214,8 @@ begin
    http.Request.AcceptLanguage := StrReplaceChar(Language,'_','-')+','+ 
FallBackLanguage;
http.Request.UserAgent:=ApplicationName+'/'+GetApplicationVersion+' 
'+http.Request.UserAgent;

+  http.Request.BasicAuthentication:=True;
+
    ssl := copy(fileURL, 1, length('https://')) = 'https://';
    if (ssl) then
    begin



Le 04/11/2015 14:36, Fonteneau Simon a écrit :
> Désolé je fais un petit up î
>
> J'aurais simplement voulue savoir si c'était un "bug" wapt ry ou 
> problème de configuration.
>
> Sachant que le problème n'est présent que dans la console
>
> Simon
>
>
>
> Le 21/10/2015 00:32, Fonteneau Simon a écrit :
>> J'ai parlé un peu vite.
>>
>> Je parviens a récupérer le fichier Package mais je ne parviens pas a 
>> télécharger les packages.
>>
>> Cela me génère une erreur 401 dans apache Et dans la console, bad 
>> file zip
>>
>> Mais cela semble fonctionner pour le repo principal dans le client
>>
>> repo_url=http://user:password@wapt.mondeptotwapt.org/wapt/
>>
>> Ici la console en mode debug:
>>
>> DEBUG:root:Thread 3632 is connecting to wapt db
>> DEBUG:root:Initialize Wapt database
>> DEBUG:root:DB Start transaction
>> DEBUG:root:DB commit
>> DEBUG:root:Thread 3632 is connecting to wapt db
>> DEBUG:root:Initialize Wapt database
>> DEBUG:root:DB Start transaction
>> DEBUG:root:DB commit
>> DEBUG:root:DB Start transaction
>> DEBUG:root:Remove unknown repositories from packages table and params 
>> ("global")
>> INFO:root:Getting packages from 
>> http://admin:password@waptrsx85.lesfourmisduweb.org/wapt
>> DEBUG:root:Read remote Packages index file 
>> http://admin:password@waptrsx85.lesfourmisduweb.org/wapt/Packages
>> DEBUG:root:Read remote Packages zip file 
>> http://admin:password@waptrsx85.lesfourmisduweb.org/wapt/Packages
>> INFO:requests.packages.urllib3.connectionpool:Starting new HTTP 
>> connection (1): waptrsx85.lesfourmisduweb.org
>> DEBUG:requests.packages.urllib3.connectionpool:"GET /wapt/Packages 
>> HTTP/1.1" 200 1665
>> INFO:root:smp-charlemagneadministratif (6.23-2)
>> INFO:root:smp-allow_cancel_upgrade (1.0.0.0-4)
>> INFO:root:aiz-huewebcam (12.0.58855-2)
>> INFO:root:smp-moteurcharlemagne (19-4)
>> INFO:root:smp-charlemagneoutils (6.22-2)
>> INFO:root:smp-udtemps (21.0.1.0-9)
>> INFO:root:smp-chemsketch (2015.1.29)
>> INFO:root:smp-sismolog (0.0.0.0-6)
>> INFO:root:smp-anagene2 (2.0.0-4)
>> INFO:root:aiz-logicatorforpicmicros (3.7.0-2)
>> INFO:root:smp-ebeamdeviceservice (2.5.0.18-4)
>> INFO:root:smp-framework-windev (19.0.1.0-0)
>> INFO:root:smp-simulairy (0.0.0-18)
>> INFO:root:smp-charlemagnenote (6.22-1)
>> INFO:root:smp-melodyplayer (6.3.3-2)
>> INFO:root:smp-charlemagneviescolaire (6.23-2)
>> DEBUG:root:Storing last-modified header for repo_url 
>> http://admin:password@waptrsx85.lesfourmisduweb.org/wapt : 
>> 2015-09-18T10:41:47
>> DEBUG:root:DB commit
>> DEBUG:root:store status in DB
>> DEBUG:root:DB Start transaction
>> DEBUG:root:DB commit
>> DEBUG:root:Thread 3632 is connecting to wapt db
>> DEBUG:root:Initialize Wapt database
>> DEBUG:root:DB Start transaction
>> DEBUG:root:DB commit
>> DEBUG:root:Thread 3632 is connecting to wapt db
>> DEBUG:root:Initialize Wapt database
>> DEBUG:root:DB Start transaction
>> DEBUG:root:DB commit
>> DEBUG:root:DB Start transaction
>> DEBUG:root:Remove unknown repositories from packages table and params 
>> ("global")
>> INFO:root:Getting packages from 
>> http://admin:password@waptrsx85.lesfourmisduweb.org/wapt
>> DEBUG:root:Read remote Packages index file 
>> http://admin:password@waptrsx85.lesfourmisduweb.org/wapt/Packages
>> DEBUG:root:Read remote Packages zip file 
>> http://admin:password@waptrsx85.lesfourmisduweb.org/wapt/Packages
>> INFO:requests.packages.urllib3.connectionpool:Starting new HTTP 
>> connection (1): waptrsx85.lesfourmisduweb.org
>> DEBUG:requests.packages.urllib3.connectionpool:"GET /wapt/Packages 
>> HTTP/1.1" 200 1665
>> INFO:root:smp-charlemagneadministratif (6.23-2)
>> INFO:root:smp-allow_cancel_upgrade (1.0.0.0-4)
>> INFO:root:aiz-huewebcam (12.0.58855-2)
>> INFO:root:smp-moteurcharlemagne (19-4)
>> INFO:root:smp-charlemagneoutils (6.22-2)
>> INFO:root:smp-udtemps (21.0.1.0-9)
>> INFO:root:smp-chemsketch (2015.1.29)
>> INFO:root:smp-sismolog (0.0.0.0-6)
>> INFO:root:smp-anagene2 (2.0.0-4)
>> INFO:root:aiz-logicatorforpicmicros (3.7.0-2)
>> INFO:root:smp-ebeamdeviceservice (2.5.0.18-4)
>> INFO:root:smp-framework-windev (19.0.1.0-0)
>> INFO:root:smp-simulairy (0.0.0-18)
>> INFO:root:smp-charlemagnenote (6.22-1)
>> INFO:root:smp-melodyplayer (6.3.3-2)
>> INFO:root:smp-charlemagneviescolaire (6.23-2)
>> DEBUG:root:Storing last-modified header for repo_url 
>> http://admin:password@waptrsx85.lesfourmisduweb.org/wapt : 
>> 2015-09-18T10:41:47
>> DEBUG:root:DB commit
>> DEBUG:root:store status in DB
>> DEBUG:root:DB Start transaction
>> DEBUG:root:DB commit
>> Traceback (most recent call last):
>>   File "<string>", line 1, in <module>
>>   File "C:\wapt\waptdevutils.py", line 228, in 
>> duplicate_from_external_repo
>>     oldname = 
>> PackageEntry().load_control_from_wapt(package_filename).package
>>   File "C:\wapt\waptpackage.py", line 344, in load_control_from_wapt
>>     myzip = zipfile.ZipFile(fname,'r',allowZip64=True)
>>   File "C:\wapt\lib\zipfile.py", line 714, in __init__
>>     self._GetContents()
>>   File "C:\wapt\lib\zipfile.py", line 748, in _GetContents
>>     self._RealGetContents()
>>   File "C:\wapt\lib\zipfile.py", line 763, in _RealGetContents
>>     raise BadZipfile, "File is not a zip file"
>> zipfile.BadZipfile: File is not a zip file
>>
>>
>> Simon
>>
>>
>>
>>
>>
>>
>>
>> Le 18/09/2015 10:04, Fonteneau Simon a écrit :
>>> Je viens de tester, je confirme pour les intéresser que ça 
>>> fonctionne parfaitement bien.
>>>
>>> l'adresse du dépôt devient donc :
>>>
>>> http://user:password@wapt.mondeptotwapt.org/wapt/
>>>
>>>
>>> J'ai même pu faire un système d’envoi de paquet en php avec 
>>> regénération du fichier Packages automatique.
>>>
>>> Ça va permettre a notre communautés réseaux85 de déposer leur propre 
>>> paquet sur le serveur de model de paquet wapt.
>>>
>>> Merci !!!
>>>
>>> Simon
>>>
>>>
>>>
>>>
>>>
>>> Le 17/09/2015 16:58, Fonteneau Simon a écrit :
>>>> C'est pas grave c'est exactement ce que je souhaitais ;-)
>>>>
>>>> Merci
>>>>
>>>> Simon
>>>>
>>>>
>>>>
>>>> Le 17/09/2015 16:23, Hubert TOUVET a écrit :
>>>>> Il doit être possible de configurer le Apache pour...
>>>>> avec le module auth_basic
>>>>> http://httpd.apache.org/docs/2.2/fr/howto/auth.html
>>>>>
>>>>> mais le mot de passe apparaître en clair dans l'url sur le poste 
>>>>> qui a la console...
>>>>>
>>>>>
>>>>> Le 17/09/2015 16:05, Fonteneau Simon a écrit :
>>>>>> Bonjour
>>>>>>
>>>>>> Est t'il possible aujourd'hui de mettre un mot de passe sur un 
>>>>>> dépôt wapt (un dépôt de model de paquet) ?
>>>>>>
>>>>>> Simon
>>>>>> _______________________________________________
>>>>>> WAPT mailing list
>>>>>> WAPT at lists.tranquil.it <mailto:WAPT at lists.tranquil.it>
>>>>>> http://lists.tranquil.it/listinfo/wapt
>>>>>
>>>>
>>>
>>
>
>
>
> _______________________________________________
> WAPT mailing list
> WAPT at lists.tranquil.it
> http://lists.tranquil.it/listinfo/wapt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20151104/cf4f0174/attachment-0001.html>


More information about the WAPT mailing list