Bug 11595 - O2 website redirect prevents sending a SMS
: O2 website redirect prevents sending a SMS
Status: RESOLVED FIXED
Product: www2sms
Providers
: unspecified
: All Maemo
: Unspecified critical (vote)
: ---
Assigned To: Bjoern Olausson
: general
:
:
:
:
  Show dependency tree
 
Reported: 2010-11-19 12:10 UTC by Falk Wilamowski
Modified: 2010-11-19 13:29 UTC (History)
1 user (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Falk Wilamowski (reporter) 2010-11-19 12:10:19 UTC
SOFTWARE VERSION:
(1.2.1)

EXACT STEPS LEADING TO PROBLEM: 
1. Send a short message over O2 Germany provider 
2. 
3. 

EXPECTED OUTCOME:
message will be sent

ACTUAL OUTCOME:
A message "Step 5: Redirect failed, please try again" appears always

REPRODUCIBILITY:
(always)
Comment 1 Bjoern Olausson 2010-11-19 12:20:59 UTC
This is the redirection code which bothers me:

<html>
<body onload="document.forms[0].submit()">
    <!-- Comment, for mobile appstore -.- --> 
    <!-- Bitte clicken Sie hier falls Sie nich augenblicklich zu --> 
    <form action="https://www.o2.de/login/cadd" method="post">
        <input type="hidden" name="cv"
value="P=44809+4527+1417+44020+18764+5142+19889+31432+60124+30932+20566+37988+52298+17891+17005+46849+15111+63061+21410+11232+6145+32936+59162+45428&L=24560+10720+30180+28600+63921+27199+65087+7682&A=6145+32936+59162+45428&S=6145+32936+59162+45428&T=58051+18797+50179+16442+803+11883+17385+20409+36181+51016+64762+34042&X=29410+35866+26620+445&U=26144+4765+44648+13609&D=31626+37659+57393+46621+61061+23383+55712+21332+18153+698+18649+53948&C=1113+4592+45432+34300+6145+32936+59162+45428&K=41873+19601+60543+21470&Z=MCwCFEs3sWNmfyyrSA8reOOYiW26honHAhQul0pIgFM0ureoeE1OBA8jsPVq+Q=="
/>
        <input type="hidden" name="target" value="https://o2online.de" />
        <noscript>
            <div class="cntDefault">
                <br />
                <h4>Bitte klicken Sie hier, falls Sie nicht augenblicklich
weitergeleitet werden.</h4>
                <div class="defaultBtn submit rght" id="Crosslogin">
                    <input type="submit" class="inputBtn" name="_eventId_login"
value="Weiter" />
                </div>
              </div>      
        </noscript>
    </form>
</body>
</html>

I am on it.

Cheers
Bjoern
Comment 2 Bjoern Olausson 2010-11-19 12:35:38 UTC
Replace the code with:
            #------------------------------------
            # Check for a redirect
            #------------------------------------
            for link in br.links(text_regex="SMS"):
                print link
            if re.search("weitergeleitet", response):
                return error(self, MainWindow, 'Redirection failed', 'Step 5:
Redirection failed, please try again')


With the following code and it will work:

            #------------------------------------
            # Check for a redirect
            #------------------------------------
            if re.search("weitergeleitet", response):
                try:
                    br.select_form(nr = 0)
                    br.submit(nr=0)
                except Exception, e:
                    print e
                    return error(self, MainWindow, e, 'Step 5: Redirection
failed, please try again')


Cheers
Bjoern
Comment 3 Bjoern Olausson 2010-11-19 13:29:34 UTC
Fixed in www2sms-1.3.0

Cheers
Bjoern