Stop access to deleted version

65 views
Skip to first unread message

Deepak Singh

unread,
Feb 17, 2016, 10:07:43 AM2/17/16
to google-a...@googlegroups.com
Hi,

We have deleted a version from app engiene but still the request to version-dot.appid.appspot.com is accessible with the current default version. 

 We want this deleted version url should respond as 404. How to get this done ?

--
Deepak Singh

Stefano Ciccarelli

unread,
Feb 17, 2016, 10:27:08 AM2/17/16
to google-a...@googlegroups.com
You can't.

https://cloud.google.com/appengine/docs/java/modules/routing#soft_routing
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAF6cnzY%2BTg91i3igDN-D_bYzs1fG%2BbS9_7BWq%3Dyvk5Qs16p6pQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
Stefano Ciccarelli 
GAE Application Division 
/ Director 
stefano.c...@mmbsoftware.it 

M.M.B. s.r.l. 
via Granarolo, 177/7 - 48018 Faenza (RA) - Italy 
tel. +39.0546.637711 - fax +39.0546.46077 
www.mmbsoftware.it - in...@mmbsoftware.it

Le informazioni contenute in questa comunicazione sono riservate e destinate esclusivamente alla/e persona/e o all'ente sopra indicati. E' vietato ai soggetti diversi dai destinatari qualsiasi uso, copia, diffusione di quanto in esso contenuto sia ai sensi dell'art. 616 c.p., sia ai sensi del DL n. 196/03. Se questa comunicazione Vi e' pervenuta per errore, Vi preghiamo di rispondere a questa e-mail e successivamente cancellarla dal Vostro sistema.

Barry Hunter

unread,
Feb 17, 2016, 10:32:56 AM2/17/16
to google-appengine
Well the code in the default version could check the hostname, and if it doesn't match its own version, sends a 404. 

Deepak Singh

unread,
Feb 17, 2016, 10:40:15 AM2/17/16
to google-a...@googlegroups.com
Can it be done with dispatch.xml and routing that version to a module that does not exist and thus 404 ?


For more options, visit https://groups.google.com/d/optout.



--
Deepak Singh

Deepak Singh

unread,
Feb 17, 2016, 10:41:24 AM2/17/16
to google-a...@googlegroups.com
Hi Barry,

Host for the incoming request ? Could you pls explain a bit. 
--
Deepak Singh

Barry Hunter

unread,
Feb 17, 2016, 10:48:54 AM2/17/16
to google-appengine
The 'Host' HTTP header. It gives you hostname (ala domain) used for the request. 


Not experienced in Java to suggest where in your handler to include this check, but there should be somewhere. 


Robert Fox

unread,
Feb 17, 2016, 4:33:49 PM2/17/16
to Google App Engine
From java...  request.getServerName()
Reply all
Reply to author
Forward
0 new messages