"The 'c' parameter is not alphabetical only" error when picking a page theme in IIS

Bug #1362182 reported by paulleslie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Son Nguyen
15.10
Fix Released
Undecided
Unassigned

Bug Description

When selecting a theme in Mahara 1.9.2, the following error appears: Mahara: Invalid Parameter A required parameter is missing or malformed. The 'c' parameter is not alphabetical only.

OSX
MySQL
Chrome

Revision history for this message
Son Nguyen (ngson2000) wrote :

Hi

Do you get the error on Linux?

Thanks
Son

Revision history for this message
paulleslie (3-paul) wrote :

We are using a windows IIS server. I get the error in any browser on windows and MAc machines.

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Did you make any customizations to your Mahara installation?

Revision history for this message
paulleslie (3-paul) wrote :

No, we have not. The only other issue at the moment is that the server certificate (for https) is not correct and whenever anyone accesses the site, they get a warning message that the site is not secure.

I have turned off several features including most access to the file and image upload modules to force all users to use external cloud storage.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/3713

Changed in mahara:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Son Nguyen (ngson2000)
milestone: none → 15.04.0
Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 15.04.0 → 1.9.4
summary: - The 'c' parameter is not alphabetical only
+ "The 'c' parameter is not alphabetical only" error when picking a page
+ theme in IIS
Revision history for this message
Aaron Wells (u-aaronw) wrote :

Hi Paul,

I'm unable to replicate this problem with the Apache web server, so it looks like it's an IIS or Windows issue. We don't officially support running Mahara on IIS or Windows (see https://wiki.mahara.org/index.php/System_Administrator%27s_Guide/Requirements for supported platforms), but I'm willing to submit a patch to fix this problem if it doesn't take too much effort.

If you're still having this issue, can you tell me what URL you see after you pick a theme for a page? For instance, after I choose a theme, my page gets reloaded with a URL like this:

https://vegas.wgtn.cat-it.co.nz/mahara/htdocs/view/blocks.php?id=6&c=fileimagevideo&new=1

The important part there is the "c=fileimagevideo". The part after it is meant to be limited to alphabetical characters. If you're getting that error even though it's alphabetical, then that indicates it's a problem in how your implementation is handling our param_alpha() function (probably a problem with preg_match(), specifically).

On the other hand, if your value there is not alphanumeric, that'd mean it's an entirely different problem.

Cheers,
Aaron

Changed in mahara:
status: In Progress → Incomplete
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 1.9.4 → 1.9.5
Aaron Wells (u-aaronw)
Changed in mahara:
status: Incomplete → Invalid
Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 1.9.5 → none
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/3713
Committed: http://gitorious.org/mahara/mahara/commit/2aae0f4e302a59839f106a59e58f4180a87c0641
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 2aae0f4e302a59839f106a59e58f4180a87c0641
Author: Son Nguyen <email address hidden>
Date: Wed Sep 24 09:24:46 2014 +1200

Set the default category if the 'c' parameter is missing. Bug 1362182

Change-Id: I60c9b6b5547dc3d460044fff45192f15e176d50f

Revision history for this message
Robert Lyon (robertl-9) wrote :

The problem existed if the json reply was off.

The fix that Son offered is ok to fix the problem so have merged it

Changed in mahara:
milestone: none → 15.10.0
status: Invalid → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.