url pathing relative , differences between mono/windows?

Discussion about the open-source Phalanger [?] project.

url pathing relative , differences between mono/windows?

Postby tleslie » August 15th, 2012, 7:23 am

I have phalanger working in a mvc3 environment (as the view engine) on both
mono/linux and windows.
One issue i have is, in the php file i will have a
<form action="<url>" .....>
now i have tried every possiblity, and no one solution works on both platforms,
i.e. if i have:
action="file.php" : on windows it works, and sticks file.php onto the relative path
which includes the contoller, i.e. file.php => Home/file.php
On linux the file.php => http://<domain>.com/phalanger/file.php - so it leaves out the controller, so it doesn't appear to be building off a relative path.

If i put action="Home/file.php" on linux it works, on windows i get .../Home/Home/file.php

if i action="/Home/file.php" on windows it works, on linux, it doesn't work, because it doesn't put the /planger in front.

Now one way i can get this it work is if i can get Phalanger to act on files in the document root, and not have to have the "/planger" alias for apache.
If i try to do this i get a node :machine error message.

I wonder where the pathing bug is? on Mono ? on Phalanger?
Seems to me it may not be on Phalanger, as why would phalanger interp. a url path ref on a form action in php? If it is a mono bug?? but as mentioned i can get
around the bug if i can get phalanger to act on document root,
So if someone knows how to set that up?

-tl
tleslie
 
Posts: 32
Joined: August 3rd, 2012, 4:42 am

Re: url pathing relative , differences between mono/windows?

Postby tleslie » August 15th, 2012, 9:49 am

Scratch this, it was to do with the returnUrl of forms auth in windows,
so I don't think it has anything to do with Phalanger.
-tl
tleslie
 
Posts: 32
Joined: August 3rd, 2012, 4:42 am

Re: url pathing relative , differences between mono/windows?

Postby Jakub Misek » August 15th, 2012, 1:46 pm

Ok :)
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 17 guests

cron

User Control Panel

Login

Who is online

In total there are 17 users online :: 0 registered, 0 hidden and 17 guests (based on users active over the past 5 minutes)
Most users ever online was 399 on April 19th, 2024, 11:49 pm

Users browsing this forum: No registered users and 17 guests