Closed Bug 1498056 Opened 6 years ago Closed 6 years ago

Using configuration profile to set Proxy policy does not respect SocksVersion

Categories

(Firefox :: Enterprise Policies, defect, P1)

64 Branch
Unspecified
macOS
defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox64 --- affected

People

(Reporter: StefanG_QA, Assigned: spohl)

References

Details

Attachments

(4 files)

STR:
1. Create a configuration profile using the below example:

<key>EnterprisePoliciesEnabled</key>
<true/>	
<key>Proxy</key>
<dict>
	<key>SocksVersion</key>
	<string>4</string>
	<key>Mode</key>
	<string>manual</string>
	<key>HTTPProxy</key>
	<string>proxy.softvision.com:8080</string>
	<key>Locked</key>
	<true/>
</dict>
2. Install the Configuration Profile
3. Navigate to about:preferences
4. Under Network settings click on 'Settings'
5. Verify the fields aren't editabled and are populated as follow:
  - Manual proxy configartion is selected
  - HTTP Proxy is set to: 'proxy.softvision.com' port:8080
  - SOCKS v4 is selected

AR: SocksVersion is not properly set. SOCKS v5 is selected
ER: SocksVersion should be respected. 'SOCKS v4' should be selected
Oh, there's a bug in the configuration:

<string>4</string> should be <integer>4</integer>. Can you check if that works in that case?
I've tried changing the value type but I see the same result. Here is the  configuration profile with <integer>4</integer>.
Does this reproduce with JSON policies?
Flags: needinfo?(stefan.georgiev)
Attached file policies.json
This is not reproduced using the attached json file.
Flags: needinfo?(stefan.georgiev)
Blocks: 1445943
No longer depends on: 1445943
Whiteboard: config-profiles-only
Stephen, could you take a look to see if the parser is having problems reading <integer> items? Or if I advised comment 3 incorrectly?

If there's not a simple fix for this I'm thinking of working around it by supporting both integer or string parameters to SocksVersion
Flags: needinfo?(spohl.mozilla.bugs)
Priority: -- → P1
Felipe, Is this a blocker for bug 1445943 (Enterprise Policies Support for MacOS) in Firefox 64?
Flags: needinfo?(felipc)
Yeah, I think so. If we don't manage to find a fix in time, we should at least do the workaround described in comment 6 so that the Proxy policy can be used.
Flags: needinfo?(felipc)
This is due to a mistake in the configuration profile. SOCKSVersion was not capitalized properly (`SocksVersion` instead of `SOCKSVersion`). Note that it was spelled correctly in the policies.json, which is why this seemed to only affect configuration policies and not JSON policies.

If we want to make the parser more tolerant for capitalization, we should file a separate bug.
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(spohl.mozilla.bugs)
Resolution: --- → INVALID
Corrected configuration profile.
Assignee: nobody → spohl.mozilla.bugs
Whiteboard: config-profiles-only
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: